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: Logged in/logged out switches in Coppermine  (Read 2713 times)

0 Members and 1 Guest are viewing this topic.

Joe Belmaati

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 65
    • http://www.belmaati.com
Logged in/logged out switches in Coppermine
« on: August 29, 2004, 04:45:30 pm »

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
Logged

mstralka

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 178
Re: Logged in/logged out switches in Coppermine
« Reply #1 on: August 29, 2004, 05:13:25 pm »

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:
Code: [Select]
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.
}
Logged
GO IRISH

Joe Belmaati

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 65
    • http://www.belmaati.com
Re: Logged in/logged out switches in Coppermine
« Reply #2 on: August 29, 2004, 06:56:59 pm »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.