The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
PHP Includes
Hello, I need help please
I want to use some PHP Includes in my vbulletin... I've done as instructed (http://www.vbulletin.com/docs/html/m...tes_phpinclude) and I get this error on the forumhome (wich is my chosen template, where i want my news to appear): Code:
Warning: Division by zero in /home/gensosys/public_html/boards/global.php(394) : eval()'d code on line 2 Warning: Unknown(php?): failed to open stream: No such file or directory in /home/gensosys/public_html/boards/global.php(394) : eval()'d code on line 2 Warning: (null)(): Failed opening 'php?' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/gensosys/public_html/boards/global.php(394) : eval()'d code on line 2 Code:
ob_start(); include_once(?news/show_news.php?); $included_file = ob_get_contents(); ob_end_clean(); Code:
$included_file |
#2
|
|||
|
|||
Change include_file to your name that you want like forum_footer.
Also news/show_news.php should be /news/show_news.php' |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|