coppermine-gallery.com/forum

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:

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