Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Link for individual users  (Read 2438 times)

0 Members and 1 Guest are viewing this topic.

zac

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 153
Link for individual users
« 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?
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Link for individual users
« Reply #1 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:
Code: [Select]
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 ...
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 20 queries.