News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

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?