Link for individual users Link for individual users
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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