Advanced CMS integration (user albums + private messaging in e107 )

psygarden

Joined: 2003-03-25
Posts: 128
Posted: Sat, 2007-02-17 23:23

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

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2007-02-17 23:38

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

 
psygarden

Joined: 2003-03-25
Posts: 128
Posted: Sun, 2007-02-18 00:30

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