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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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