Make my own Login/Logout button Make my own Login/Logout button
 

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

Make my own Login/Logout button

Started by dke, December 26, 2007, 12:52:32 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dke

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

Joachim Müller

<?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... :-\

dke

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.

Joachim Müller

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?