News:

CRITICAL UPGRADE CPG RELEASE 1.6.30
Version 1.6.30 removes a serious security issue that could allow unauthorized access to modify your site. Upgrade as soon as possible.

Main Menu

variable for guest/member

Started by galerius, July 12, 2011, 11:20:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

galerius

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

ΑndrĂ©

Please don't double post. Thanks.

You can use the following code to show different content to guests and registered users
if (USER_ID > 0) {
    // registered user
} else {
    // guest
}