addbutton for loggedin users only addbutton for loggedin users only
 

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

addbutton for loggedin users only

Started by atmorell, August 28, 2007, 12:52:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

atmorell

Hello,

I am currently working on my first theme for coppermine. So far I have copied the menu related stuff from the sample theme and created a few links of my own. How do I only display a link when a user is logged in? This is the link I have created:

addbutton($sys_menu_buttons,'My images','{MY_IMAGES_TITLE}','thumbnails.php?album=lastupby&uid='. $USER_DATA['user_id'].'','my_images',$template_sys_menu_spacer);

Problem is that guest with no account also see the link - have searched the forum etc, but have not been able to figeure this out so yet.

Best regards.
Asbjørn.

Nibbler


atmorell