I'd like to get as much information as i can regarding the creation of a module, though i'm assuming that a module without a theme manipulation wouldn't be enough...
What i want to create is an icon next to the album title that enables visitors to message album owners using my CMS (e107) instant messaging system.
It would work along these lines:
Quote:
if an albumowner != administrator
{
<a href ="http://domain.com/sendmessage.php?external_ID> image </a>}
If anyone can tell me how i can create a module that creates a shortcode (or other method) that handles this it would be very much appreciated!!!
Kind regards,
Rik
Posts: 32509
i guess you actually want:
if activeUser == owner of this album AND activeUser != administrator.
right?
you'll have to edit your album.tpl (themes/*/templates/album.tpl for that.
click on the above development link and then on "tpl reference" to find out how to check those things in smarty.
--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 128
Actually, i want all (logged in) users to be able to send message to an album's owner, using the instant messaging system of my cms, for this i need to make the logical statement and then link to that album's owner value for g2_ExternalIdMap
So it's more like:
if activeuser == logged in && albumowner !=administrator(usergroup) {<a href=page.php?<valuefrom g2_ExternalIdMap
for albumowner}
the part that i'm having most difficulty with is finding out how i can adress the g2_ExternalIdMap value for the albumowner