News:

CPG Release 1.6.31
Minor maintenance release
Clean up remaining remnants of the .net CPG website
Improved installer_stub compatibility with various server configurations

Main Menu

Link for individual users

Started by zac, November 04, 2007, 02:04:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

zac

Hi all... I wanted to be able to add a text message that is specific to each logged in user, ie : a link to a separate gallery I am going to make for each album.  Is there a fairly simple way to have a user specific link appear or does this require a major plugin?

Stramm

Not a problem if you use the user id within the link to identify the 'seperate gallery' (as it is done with the user galleries). You can use anycontent for this purpose or of course you can write a plugin.

anycontent example:
if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');

if (USER_ID) {
starttable("100%", "Welcome");
echo "<tr><td class=\"tableb\" ><a href=\"http://www.otherdomain/some_gallery/".USER_ID."\">Open your gallery, ".USER_NAME.".</a></td></tr>";
endtable();
}


or have I misunderstood ...