The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Widget Code Fails
I have a bit of code which works well in most places, but I would like it to work in my vb cms widgets. It seems beyond me to get it to work, but maybe someone would like to tell me what is wrong.
I have managed to get it work with an iframe in the widget, but the presentation is poor. PHP Code:
|
#2
|
|||
|
|||
You want to use a PHP Direct Execution type of widget (if you haven't already), then use the "configure" link on the right to enter your php code. The output html needs to be returned in a string called $output instead of using echo or print. The easiest way to do that would be to surround the existing code with ob_start() and ob_end_clean(), like this:
PHP Code:
and as the comment says, put your code there but don't include the first and last lines with the tags. Also, I edited your post to put the code in code tags, and also to remove your database username and password, just in case. |
Благодарность от: | ||
MarkFL |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|