The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Sidebar PHP returns error
Hello,
I was trying to put a PHP code to the sidebar and an error occurs that says Code:
Parse error: syntax error, unexpected '<' in /home3/xxxxxx/public_html/forum/includes/block/html.php(95) : eval()'d code on line 1 PHP Code:
|
#2
|
||||
|
||||
You can't use PHP like that in the template system. your widget is super invalid.
|
#3
|
|||
|
|||
Any alternatives?
|
#4
|
|||
|
|||
The following reference will help you. You should Google vbulletin.org for further references -- you will find many.
https://www.vbulletin.com/docs/html/..._externalfiles Other: https://vborg.vbsupport.ru/showthread.php?t=230455 https://vborg.vbsupport.ru/showthread.php?t=228078 |
#5
|
|||
|
|||
If you're creating a forum block, you would want to choose "php" as the type, then you should be able to use php. But your php would have to "return" the html as a string instead of outputting it like your code is doing. You could solve that by using ob_start()/ob_end() like in the links tbworld provided, or you could just rewrite the code to build a string instead of using ?> and <?php to include html.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|