forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: ian ditch on April 03, 2005, 12:25:29 am

Title: To show a link under each picture only if logged in
Post by: ian ditch 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.
Title: Re: To show a link under each picture only if logged in
Post by: Nibbler on April 03, 2005, 12:53:16 am
you can use:

Code: [Select]
if (USER_ID) { show link }
Title: Re: To show a link under each picture only if logged in
Post by: ian ditch 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