coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: dke on December 26, 2007, 12:52:32 AM

Title: Make my own Login/Logout button
Post by: dke on December 26, 2007, 12:52:32 AM
Hi,

I cannot figure out how to make a button which changes depending on if you're already logged in or not. I don't wish to use the original one in mac osx, can anyone help me out making this button, preferably located where the other buttons are and always visible.

Ive searched but haven't found what i needed
Title: Re: Make my own Login/Logout button
Post by: Joachim Müller on December 26, 2007, 10:19:32 AM
<?php
if (USER_ID) {
  
// do the stuff that the logged in user is suppossed to see
} else {
  
// do the stuff the guest is suppossed to see
}
?>
If you need details, post details. You've been told so before... :-\
Title: Re: Make my own Login/Logout button
Post by: dke on December 26, 2007, 02:30:11 PM
Quote from: GauGau on December 26, 2007, 10:19:32 AM
<?php
if (USER_ID) {
  
// do the stuff that the logged in user is suppossed to see
} else {
  
// do the stuff the guest is suppossed to see
}
?>
If you need details, post details. You've been told so before... :-\

I'm sorry, i though i supplied enough details.

Thanks for the code i can probably figure out how to do it now.
Title: Re: Make my own Login/Logout button
Post by: Joachim Müller on December 27, 2007, 08:58:30 AM
Quote from: dke on December 26, 2007, 02:30:11 PM
I'm sorry, i though i supplied enough details.
Really? Where's the link to your gallery and the zipped content of your custom theme that you're suppossed to attach to your thread when asking for theming support?