[Solved]: {SYS_MENU} links as buttons [Solved]: {SYS_MENU} links as buttons
 

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]

Main Menu

[Solved]: {SYS_MENU} links as buttons

Started by Luk, June 28, 2008, 07:23:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Luk

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.

Luk

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.

steveeh131047

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

Luk