The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
With VB 3.0, I used this php script to display the contents of a custom template:
Code:
<?php require_once("/home/talkbass/public_html/tab/tabscript.php"); // ## Changes Directory so it can accesss vBulletin IF we are outside the forums folder, if not this is not nessary ## chdir("/home/talkbass/public_html/forum/"); // ## Error Reporting ( we use error reporting in php so we can control the display of error messages // ## we will use this because all vBulletin files follow the same error reporting rules) ## error_reporting(E_ALL & ~E_NOTICE); // ## this action here cache's the templates so that everytime their needed a querry wont be needed to run // ## the names in there are just the template names :), there must be a comma after everyone but the last ## $globaltemplates = array('content_tab'); // ## Grabs global.php this grabs vbulletins global.php so we can use the most basic of vBulletins functions ## require_once("./global.php"); // ## this calls to print out one main template ## eval('print_output("' . fetch_template('content_tab') . '");'); TIA! Paul |
#2
|
|||
|
|||
![]()
I've the same problem.
|
#3
|
|||
|
|||
![]()
Difficult to anser without knowing the contents of that file.
|
#4
|
|||
|
|||
![]()
The file is just basic php code, some snippits:
Code:
if ($action==bandlist) { $output = "<b>Bands:</b>"; $output .= "<br><br>"; $tabdir = "/home/talkbass/tab/$letterdir"; if(!($dp = opendir($tabdir))) die ("Cannot open $tabdir"); while($file = readdir($dp)) $filenames[] = $file; closedir($dp); sort($filenames); for($i=0; $i < count($filenames); $i++) { if($filenames[$i] != '.' && $filenames[$i] != '..') $output .= "<a href=\"http://www.talkbass.com/tab/tabview.php?action=songlist&letterdir=$letterdir&band=$filenames[$i]\">$filenames[$i]</a><br>"; } |
#5
|
|||
|
|||
![]()
Try placing the require of your script after the global.php.
|
#6
|
|||
|
|||
![]() Quote:
|
#7
|
|||
|
|||
![]()
bump? Any ideas before I give up?
![]() ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|