![]() |
Custom PHP Sidebar/Block Issues
I created a custom php block that pulls a random image from a directory on my server.
However, I'm having 2 issues. 1. Its pulling 2 images instead of just one. 2. Its placing the images above the header and not in a sidebar/block. |
Your widget code needs to set $output to the html for your widget instead of using ?> and <?php or echo. Try this:
Code:
$dir = "user-uploads-thumbnails/"; |
All times are GMT. The time now is 05:45 AM. |
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:
|