![]() |
PHP loading at the top of the page when using direct execution?
I can't figure out what in this code is making it break its widget and load at the very top of the page.
It's supposed to take the XKCD info and toss it in a widget, but it breaks out. Here is the code. It's a carbon copy of what gets displayed at http://www.saskforum.ca/xkcd/newest.php HTML Code:
<?php What will it take to make this load within the widget box? --------------- Added [DATE]1273101133[/DATE] at [TIME]1273101133[/TIME] --------------- bump |
nobody?
|
bump, will pay $10 via paypal for anyone who can help lead me to a fix here.
|
ECHO always gets called IMMEDIATELY.
vBulletin is built within variables which are called at the end. Because you are using echo, your widget is being printed first. What you should do instead is call the function through a variable, and then call the variable in the appropriate spot on your page. |
1. create a new php direct execution widget
2. add this code: PHP Code:
|
Thanks! PM me where you'd like the donation sent!
|
All times are GMT. The time now is 07:02 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:
|