coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: xx-07 on August 18, 2006, 07:13:23 AM

Title: My Favorites - Show link only if logged in....
Post by: xx-07 on August 18, 2006, 07:13:23 AM
i have spent a fair amount of time searching the forum to try to figure out how we can remove the "My favorites" link for guest and show for logged in...

needless to say... i have not found a solution...

any pointers would be much appreciated!

many thanks
Title: Re: My Favorites - Show link only if logged in....
Post by: Joachim Müller on August 18, 2006, 07:16:53 AM
Menus are being built using different mechanisms, so we need to know what theme you are using. Zip your custom theme and attach it to your posting (using "additional options" when composing your message). A link to your page might help as well.
Title: Re: My Favorites - Show link only if logged in....
Post by: xx-07 on August 18, 2006, 07:09:26 PM
many thanks...

i am using rainy day attchment

http://www.wireservicefree.net/florist_image_exchange/
Title: Re: My Favorites - Show link only if logged in....
Post by: Joachim Müller on August 18, 2006, 08:15:10 PM
Pretty straightforward method: edit themes/rainy_day/theme.php (with a plain-text editor, notepad.exe is fine), finddefine('THEME_IS_XHTML10_TRANSITIONAL',1);and add after it into a new linefunction addbutton(&$menu,$href_lnk,$href_title,$href_tgt,$block_id,$spacer) {
  $menu[]=array($href_lnk,$href_title,$href_tgt,$block_id,$spacer);
}
addbutton($sub_menu_buttons,'{CUSTOM_LNK_LNK}','{CUSTOM_LNK_TITLE}','{CUSTOM_LNK_TGT}','custom_link',$template_sub_menu_spacer);
addbutton($sub_menu_buttons,'{ALB_LIST_LNK}','{ALB_LIST_TITLE}','{ALB_LIST_TGT}','album_list',$template_sub_menu_spacer);
addbutton($sub_menu_buttons,'{LASTUP_LNK}','{LASTUP_TITLE}','{LASTUP_TGT}','lastup',$template_sub_menu_spacer);
addbutton($sub_menu_buttons,'{LASTCOM_LNK}','{LASTCOM_TITLE}','{LASTCOM_TGT}','lastcom',$template_sub_menu_spacer);
addbutton($sub_menu_buttons,'{TOPN_LNK}','{TOPN_TITLE}','{TOPN_TGT}','topn',$template_sub_menu_spacer);
addbutton($sub_menu_buttons,'{TOPRATED_LNK}','{TOPRATED_TITLE}','{TOPRATED_TGT}','toprated',$template_sub_menu_spacer);
if (USER_ID) {
    addbutton($sub_menu_buttons,'{FAV_LNK}','{FAV_TITLE}','{FAV_TGT}','favpics',$template_sub_menu_spacer);
}
addbutton($sub_menu_buttons,'{SEARCH_LNK}','{SEARCH_TITLE}','{SEARCH_TGT}','search','');
Title: Re: My Favorites - Show link only if logged in....
Post by: xx-07 on August 18, 2006, 08:23:25 PM
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimages.google.com%2Fimages%3Fq%3Dtbn%3AFoYiXiTOxe3W-M%3Ahttp%3A%2F%2Fwww.blm.gov%2Futah%2Fvernal%2Fkudos.jpg&hash=49db752efe270f78f8d47f531f2b60eef1c9d442)

easy tweek -

thank you!

xx-07