Adding additional sub menu buttons like Custom link? Adding additional sub menu buttons like Custom link?
 

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

Adding additional sub menu buttons like Custom link?

Started by silverstreak1955, December 29, 2005, 10:53:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

silverstreak1955

Hi all,

I have just installed 1.4 + the paypal mod to allow my freelancers to sell images away from our main community site as its an old nuke/coppermine install at http://www.globalphotosite.info as I couldnt find a viable way to upgrade the platform.

Great to link back to my original site using the new custom link field in 1.4,

But I would like to add another or possible 2 other buttons @  http://chrisedwards.ws/coppermine/index.php

Could anyone tell me how and where to add adittional buttons.

any help appreciated

Chris

ecto

In themes/your theme/theme.php, find the section with the menu buttons:


    addbutton($sys_menu_buttons,'{HOME_LNK}','{HOME_TITLE}','{HOME_TGT}','home',$template_sys_menu_spacer);


Just add buttons there as you see fit..


    addbutton($sys_menu_buttons,'Disney','Go to disney.com','http://www.disney.com/','disneylink',$template_sys_menu_spacer);
    addbutton($sys_menu_buttons,'{HOME_LNK}','{HOME_TITLE}','{HOME_TGT}','home',$template_sys_menu_spacer);


If that section with the buttons isn't in your theme.php file, copy it there from themes/sample/theme.php.

silverstreak1955


Rallemann

What do I have to change, if I want the link to open in a new window?

In older versions I put html code in the file but since 1.43 I am confused.

Can you help me :)

edit:
solved...
I get it on my own -
    addbutton($sys_menu_buttons,'<a href=http://abi07.biz target=_NEW>abi07.biz','Stufenboard abi07.biz','http://www.abi07.biz','abi07',$template_sys_menu_spacer);

ecto

Rallemann, you should read this thread and do it that way. Don't miss to read the article GauGau posted a link to.

IamDeirdre

Thanks, this is just what I was looking for! I've never done javascript, but I'm going to give it a try!  :D
Deirdre