Advanced search  

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]

Pages: [1]   Go Down

Author Topic: My Favorites - Show link only if logged in....  (Read 2882 times)

0 Members and 1 Guest are viewing this topic.

xx-07

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
My Favorites - Show link only if logged in....
« 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
« Last Edit: August 19, 2006, 05:24:24 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: My Favorites - Show link only if logged in....
« Reply #1 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.
Logged

xx-07

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: My Favorites - Show link only if logged in....
« Reply #2 on: August 18, 2006, 07:09:26 pm »

many thanks...

i am using rainy day attchment

http://www.wireservicefree.net/florist_image_exchange/
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: My Favorites - Show link only if logged in....
« Reply #3 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), find
Code: [Select]
define('THEME_IS_XHTML10_TRANSITIONAL',1);and add after it into a new line
Code: [Select]
function 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','');
Logged

xx-07

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: My Favorites - Show link only if logged in....
« Reply #4 on: August 18, 2006, 08:23:25 pm »

(https://forum.coppermine-gallery.net/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
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.