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: [Solved]: {SYS_MENU} links as buttons  (Read 2853 times)

0 Members and 1 Guest are viewing this topic.

Luk

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
[Solved]: {SYS_MENU} links as buttons
« 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.
« Last Edit: June 29, 2008, 01:33:33 am by Joachim Müller »
Logged

Luk

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: {SYS_MENU} links as buttons/images
« Reply #1 on: June 28, 2008, 07:23:54 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.
Logged

steveeh131047

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Posts: 217
Re: {SYS_MENU} links as buttons
« Reply #2 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:

Code: [Select]
    addbutton($sub_menu_buttons,'{ALB_LIST_LNK}','{ALB_LIST_TITLE}','{ALB_LIST_TGT}','album_list',$template_sub_menu_spacer);
to:
Code: [Select]
    addbutton($sub_menu_buttons,'<img src="path_to_image/image.png" />','{ALB_LIST_TITLE}','{ALB_LIST_TGT}','album_list',$template_sub_menu_spacer);
Logged

Luk

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: {SYS_MENU} links as buttons
« Reply #3 on: June 28, 2008, 08:20:51 pm »

thank you :-)
Logged
Pages: [1]   Go Up
 

Page created in 0.047 seconds with 19 queries.