![]() |
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:
|
You can't use PHP like that in the template system. your widget is super invalid.
|
Quote:
|
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 |
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.
|
All times are GMT. The time now is 04:55 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|