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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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