The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Solved. Please delete.
First off. I am trying to add a custom option into the ModCP. I am able to get the category, but not the option. This is what I have.
if (can_moderate) { construct_nav_group($vbphrase['servercontrol']); construct_nav_spacer(); } $canrestart = false; if (can_moderate) { $canrestart = true; construct_nav_option($vbphrase['server_restart'], 'restart.php'); } Two. I removed all pruning from my forum, but I cannot figure out how to remove the prune button from the ACP. Any ideas? Thank you! |
#2
|
|||
|
|||
It looks like construct_nav_group() creates a group out of the options that have been added up to that point, so I think you want to move that to after the other construct calls.
There doesn't seem to be a simple way to remove the "Prune" option from a plugin. You could edit modcp/index.php and take out the code that adds it. Also, since the controls are kept in $_NAV before being printed out by print_nav_panel(), you might be able to do it from a plugin at hook mod_index_navigation by doing a str replace on $_NAV. ETA: ..oh, it looks like you could also remove the "canmassprune" permission. (I'm assuming you meant the modcp even though you said ACP, but maybe you did mean ACP?) |
#3
|
|||
|
|||
Quote:
Umm. I moved the construct_nav_group() and it did not help. Any other ideas? |
#4
|
|||
|
|||
Quote:
I actually moved the first "if" block last, so I'm not sure where the construct_nav_space() goes. |
#5
|
|||
|
|||
IDK what was wrong. I reloaded to a fresh template and just edited the prune/move options to fit. Alright, thank you!
|
#6
|
|||
|
|||
OK, to remove the prune button you could edit the file includes/xml/cpnav_vbulletin.xml and take out the part for that button, or you could make a plugin at hook admin_index_navigation with code:
Code:
unset($navigation[80]['Threads & Posts']['options'][10]); That obviously depends on exactly the way the xml file is, so it would probably be better (if you go the plugin route) to search all the items looking for the prune button. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|