Link for individual users Link for individual users
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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 ...