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: variable for guest/member  (Read 2011 times)

0 Members and 1 Guest are viewing this topic.

galerius

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
variable for guest/member
« on: July 12, 2011, 11:20:52 am »

Hello,

is there a variable to show "text a" for a guest and "text b" for a registered member ?

I use v1.5.

Many thanks
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: variable for guest/member
« Reply #1 on: July 13, 2011, 04:26:57 pm »

Please don't double post. Thanks.

You can use the following code to show different content to guests and registered users
Code: [Select]
if (USER_ID > 0) {
    // registered user
} else {
    // guest
}
Logged
Pages: [1]   Go Up
 

Page created in 0.036 seconds with 19 queries.