coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: LindaAtl on January 16, 2006, 03:11:42 PM

Title: Ablum List link not working properly
Post by: LindaAtl on January 16, 2006, 03:11:42 PM
Sometimes the link works and sometimes not.  Here's what I've found through testing...

It works when:
You're in 'My Profile'

It doesn't work when:
You're in any level of a photo album.  You just stay where you are rather than going back to the first level list.

I used the script inside sample/theme.php to edit the script for the sub_menu.
  // HTML template for template sub_menu buttons

    // {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);

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

Site is www.allenartwork.com/proofing
user ID: test
pw: test

You can then enter the testing section.

I've converted script read as proofing and proofing center rather than images and albums.

Thanks,
Linda

Title: Re: Ablum List link not working properly
Post by: Blueiris on January 16, 2006, 05:56:06 PM
I think this is basically a misunderstanding of what "Album List" does. "Album List" is not intended to take you back to the "home" or front page of the gallery. If you want your user to go back to the "home" page of the gallery, then use the "Home" link in sys_menu. You can rename that link to "Proofing Center List."

"Album List," now renamed to "Proofing Center List" in your gallery, is working as expected. For example, if I click on "February 2006 Issue," and then click on "Platinum Salon," clicking on "Proofing Center List" takes me up one level to the album list for "February 2006 Issue," which is what it is supposed to do.
Title: Re: Ablum List link not working properly
Post by: LindaAtl on January 16, 2006, 06:21:23 PM
Okay.  I gottcha.  Thanks for the clarification!