coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: zac on November 04, 2007, 02:04:06 AM

Title: Link for individual users
Post by: zac on November 04, 2007, 02:04:06 AM
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?
Title: Re: Link for individual users
Post by: Stramm on November 04, 2007, 08:58:00 AM
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 ...