The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Yeah, the function is called render_navbar_template. You'll need that code. Put it into your file only rename it (render_navbar_template2 perhaps) and then change your other line:
PHP Code:
|
#12
|
|||
|
|||
Eek. Still can't figure it out. Getting this error:
Parse error: syntax error, unexpected T_VARIABLE, expecting '( in "mywebsitestructure" on line 39. Here is the code: Code:
<?php // ####################### SET PHP ENVIRONMENT ########################### error_reporting(E_ALL & ~E_NOTICE); // #################### DEFINE IMPORTANT CONSTANTS ####################### define('THIS_SCRIPT', 'ncsu'); define('CSRF_PROTECTION', true); // change this depending on your filename // ################### PRE-CACHE TEMPLATES AND DATA ###################### // get special phrase groups $phrasegroups = array(); // get special data templates from the datastore $specialtemplates = array(); // pre-cache templates used by all actions $globaltemplates = array('ncsu', ); // pre-cache templates used by specific actions $actiontemplates = array(); // ######################### REQUIRE BACK-END ############################ // if your page is outside of your normal vb forums directory, you should change directories by uncommenting the next line chdir ('/home/college/public_html'); require_once('./global.php'); // ####################################################################### // ######################## START MAIN SCRIPT ############################ // ####################################################################### $navbits = construct_navbits(array('' => 'NCSU')); $navbar = render_navbar_template($navbits); function render_navbar_template2 $navbar2 = render_navbar_template2($navbits); // ###### YOUR CUSTOM CODE GOES HERE ##### $pagetitle = 'NCSU'; // ###### NOW YOUR TEMPLATE IS BEING RENDERED ###### $templater = vB_Template::create('ncsu'); $templater->register_page_templates(); $templater->register('navbar', $navbar); $templater->register('navbar2', $navbar2); $templater->register('pagetitle', $pagetitle); print_output($templater->render()); ?> |
#13
|
||||
|
||||
You didn't create a new function. You need to copy the *whole* function and then change the name of it.
|
#14
|
|||
|
|||
Lynn, thanks for your help. I got it working, miraculously!
|
#15
|
||||
|
||||
Glad you did.
|
#16
|
|||
|
|||
Lynne,
Thanks for the help! Okay so I created a new template navbar2, then I need to place the rendering code INTO that new template? :/ Sorry, again, I am not a coder |
#17
|
||||
|
||||
You put all your html into the new template. The rendering code is going to go into a plugin - most likely some global_* hook location (or into the page if it is a custom page).
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|