My Favorites - Show link only if logged in.... My Favorites - Show link only if logged in....
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

My Favorites - Show link only if logged in....

Started by xx-07, August 18, 2006, 07:13:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xx-07

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

Joachim Müller

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.

xx-07


Joachim Müller

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','');

xx-07

(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