1
Templates & Styles (Requests & Discussions) / [Question] Adding a new button
« on: January 07, 2006, 08:50:36 PM »
How can I place another button before "Lightbox" "eCard" "Download" "Download (Zip)" ?
The button should support languages and shoud also be inactive for unregistered users.
I've found the code for lightbox button in includes/functions.php and tried to write a similar one for my button
but it doesn't work
Here's the code:
Any ideas why itsn't working ?
The button should support languages and shoud also be inactive for unregistered users.
I've found the code for lightbox button in includes/functions.php and tried to write a similar one for my button
but it doesn't work
Here's the code:
Code: [Select]
if ($user_info['user_level'] != GUEST) {
$postit_button = "<img src=\"".get_gallery_image("postit_off.gif")."\" border=\"0\" alt=\"\" />";
}
else {
$postit_button = "<img src=\"".get_gallery_image("postit.gif")."\" border=\"0\" alt=\"\" />"; }
Any ideas why itsn't working ?