Advanced search  

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

Pages: [1]   Go Down

Author Topic: To show a link under each picture only if logged in  (Read 3010 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.025 seconds with 20 queries.