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: To show a link under each picture only if logged in  (Read 3008 times)

0 Members and 1 Guest are viewing this topic.

ian ditch

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
To show a link under each picture only if logged in
« on: April 03, 2005, 12:25:29 am »

I want to show a text link under each picture but only if the user is a member and is logged in?

I have added a normal link in the displayimage file but shows the link to all visitors.
Logged

Nibbler

  • Guest
Re: To show a link under each picture only if logged in
« Reply #1 on: April 03, 2005, 12:53:16 am »

you can use:

Code: [Select]
if (USER_ID) { show link }
Logged

ian ditch

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
Re: To show a link under each picture only if logged in
« Reply #2 on: April 03, 2005, 12:58:19 am »

Ta Nibbler, If did suss it by adding if (USER_ID)  {my link here} but thanks for the reply

Keep up the good work
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.