The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Help! I've Messed Up. PHP Plugins
I'm new to this, and I've just messed up. I was following these instructions for creating new navigation tabs. https://vborg.vbsupport.ru/showthread.php?t=228313
When i got to the second section, 'Create a plugin', I stupidly changed the existing plugin 'Navbar: Insert CMS Navbar Entry', rather than creating a new plugin. Like I say, this is all new to me. But now my Home page tab has vanished. http://www.theroaringseason.com/forum.php How do I get it back again? Below is the code I've now ended up with after trying to change it. Is there anything obviously wrong I need to correct to get my Home tab back? if (defined('CMS_SCRIPT') AND class_exists('vBCms_Navbar')) { $vbulletin->options['selectednavtab'] = 'vbcms'; $template_hook['navtab_start'] .= vBCms_NavBar::renderView(); } else { if (can_see_cms()) { $template_hook['navtab_start'] .= vB_Template::create('vbcms_navbar_links')->render(); $template_hook['navbar_getnew_menu'] .= vB_Template::create('vbcms_navbar_whatsnew_link')->render(); } } --------------- Added [DATE]1303343496[/DATE] at [TIME]1303343496[/TIME] --------------- Its OK, I've just figured it out. I'm an idiot! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|