is it save to comment addbutton in cpg1.4.8? it looks it is. is it save to comment addbutton in cpg1.4.8? it looks it is.
 

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

is it save to comment addbutton in cpg1.4.8? it looks it is.

Started by tomaash, August 11, 2006, 03:28:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tomaash

I am using cpg 1.4.8. and
I was reading all the threads about removing buttons. none of them recommends comment the actuall line

addbutton($sub_menu_buttons,'{CUSTOM_LNK_LNK}','{CUSTOM_LNK_TITLE}','{CUSTOM_LNK_TGT}','custom_link',$template_sub_menu_spacer);

but I tried it and it seems to work.

So just want to ask if the problems with commenting those lines were fixed and it is save to do it.
Or is it still recommended to use the final_extract plugin?

Thanx

Joachim Müller

No, that's fine. You don't have to use the plugin - it is meant for people who don't understand the code at all. You have found the code line that corresponds to that menu item.
However, it doesn't make sense to remove the custom menu link: you simply leave the custom link empty in coppermine's config and it won't be displayed - there's no need to fiddle with the code to accomplish what you're up to.

Sami

also
Your method is fine if you comment out that line under yourtheme/theme.php and not under theme.inc.php
‍I don't answer to PM with support question
Please post your issue to related board

tomaash

thanx guys.

I just asked because it used to show up some error messages, according to some topics - probably in older versions, so I wasn't sure.

Hope your answer is also good for new users looking the way how to remove a button from the menu.

I guess it would be quite good to update the sticky thread about removing the buttons...

Thank you again.

Joachim Müller

Problem is that there are several possible methods to compose the menu buttons. Your method will work for you (the particular theme desogn you used), but will not work for everybody, as this depends on how the menu is being built in a user's particular custom theme.
That's why it's hard to come up with a comprehensive sticky that will cover all possibilities.