Logged in/logged out switches in Coppermine Logged in/logged out switches in Coppermine
 

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]

Main Menu

Logged in/logged out switches in Coppermine

Started by Joe Belmaati, August 29, 2004, 04:45:30 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Joe Belmaati

Please forgive the broad nature of my question. Is it possible to assign logged in/logged out switches to certain elements in themes/classic/template.html? If so, what are they..?
Sincerely and thank you very much in advance.
Joe Belmaati
Copenhagen Denmark

mstralka

Yes it is possible, but it's not done in template.html.  Depending on what you are trying to "switch", it is probably in themes/yourtheme/theme.php.
Do something like this in the code:

if (USER_ID) {
     //the code that you only want to display to logged in users goes here
} else {
    //the code that logged-out users should see goes here.
}
GO IRISH

Joe Belmaati

Thanks a bunch, I'll give it a whirl! It is some links that I want to wrap the switches around. I'll move them into theme.php