The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Re: http://www.vbulletin.com/forum/showthread.php?t=101325
Create a PHP file with this code. Change the red code appropriately. This will display a page within your forum layout where the page contents are the contents of the template you specify. Code:
<?php // GO TO FORUM DIR chdir('/full/path/to/forum/directory'); // STANDARD VBULLETIN STUFF define('NO_REGISTER_GLOBALS', 1); define('THIS_SCRIPT', 'script_name'); require_once('./global.php'); // GENERIC_SHELL VARS $pagetitle = "Title of Page"; $HTML = ""; // PIECED TOGETHER IN SCRIPT eval('$HTML = "' . fetch_template('name of template') . '";'); eval('print_output("' . fetch_template('GENERIC_SHELL') . '");'); ?> |
#2
|
||||
|
||||
![]()
thanks jake
for some reason the $navbar variable wont work - is there something i have to include in the php code to be able to include the navbar template |
#3
|
||||
|
||||
![]()
Try adding this code before the last eval line:
PHP Code:
|
#4
|
||||
|
||||
![]()
yeah that worked - thanks
|
#5
|
|||
|
|||
![]() Quote:
PHP Code:
|
#6
|
||||
|
||||
![]() Quote:
|
#7
|
||||
|
||||
![]()
Please pardon my ignorance, but what I'm getting from this is that this creates the option to stick any current (or custom) template into an entirely new page with a vBulletin theme. This is all well and good (from my retarded little standpoint), but I'm not too keen on custom making a template w/o guidance. My webmaster and myself are testing this hack and the setup is simple enough but we're having problems adding content. :ermm: It's just that we don't quite understand vB3 yet. Any guidence?
|
#8
|
||||
|
||||
![]() Quote:
PHP Code:
![]() |
#9
|
||||
|
||||
![]()
<a href="http://www.interfans.org/forum/rules.php" target="_blank">http://www.interfans.org/forum/rules.php</a>
I get this error: Warning: chdir(): No such file or directory (errno 2) in /home/interfan/public_html/forum/rules.php on line 4 And what do I have to add in the new template? |
#10
|
||||
|
||||
![]() Quote:
PHP Code:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|