coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Luk on June 28, 2008, 07:23:24 PM

Title: [Solved]: {SYS_MENU} links as buttons
Post by: Luk on June 28, 2008, 07:23:24 PM
Hi, i found in "HTML template for template sys_menu buttons" {HOME_LNK},{MY_GAL_LNK},{MEMBERLIST_LNK},{MY_PROF_LNK},{ADM_MODE_LNK},{USR_MODE_LNK},{UPL_PIC_LNK}... register, faq, login and logout. I know these tags are responsible for showing links from sys_menu on our page. And where should i look if i want to change theyr appearance. I would like place images instead of text for these tags.
Title: Re: {SYS_MENU} links as buttons/images
Post by: Luk on June 28, 2008, 07:23:54 PM
Quote from: Luk on June 28, 2008, 07:23:24 PM
Hi, i found in "HTML template for template sys_menu buttons" {HOME_LNK},{MY_GAL_LNK},{MEMBERLIST_LNK},{MY_PROF_LNK},{ADM_MODE_LNK},{USR_MODE_LNK},{UPL_PIC_LNK}... register, faq, login and logout. I know these tags are responsible for showing links from sys_menu on our page. And where should i look if i want to change theyr appearance. I would like place images instead of text for these tags.
Title: Re: {SYS_MENU} links as buttons
Post by: steveeh131047 on June 28, 2008, 08:00:38 PM
Luk,

For the menu item you want to change, replace the {XXX_LNK} token with your image tag.

So for example to change the album link button, change:

    addbutton($sub_menu_buttons,'{ALB_LIST_LNK}','{ALB_LIST_TITLE}','{ALB_LIST_TGT}','album_list',$template_sub_menu_spacer);

to:
    addbutton($sub_menu_buttons,'<img src="path_to_image/image.png" />','{ALB_LIST_TITLE}','{ALB_LIST_TGT}','album_list',$template_sub_menu_spacer);
Title: Re: {SYS_MENU} links as buttons
Post by: Luk on June 28, 2008, 08:20:51 PM
thank you :-)