How to add 4 random images to my sidebar?
I am using this sidebar hack and was wondering how I could implement 4 random thumbnails from my gallery to this sidebar. Any insite?
|
Untested, but perhaps use this: remove the last eval line from the PHP file and place the remaining PHP atop the Right Column plugin using the global_start hook, and then add the following variable to the right_column template:
Code:
$photoplog_thumbs_vert |
Quote:
|
Again untested, but try this: remove the last eval line from the PHP file and place the remaining PHP in a plugin using the global_start hook, and then add the following variable to the template containing the right column you made:
Code:
$photoplog_thumbs_vert For further details on how to add a plugin, check here. |
Works for me !
|
This is not working for me. I'm not trying to incorperate it to another plugin, just include it on the site in my custom nav. I follow the same process to create a plugin.
I've removed the line and get the following error: Parse error: parse error, unexpected '>' in /sitehere.com/includes/functions.php(5166) : eval()'d code on line 48 Any ideas? =\ |
Whatever you used for the plugin is incorrect:
Quote:
|
This is the code i'm using. I can't find anything wrong with it.
Code:
if (!defined('VB_AREA') || !defined('THIS_SCRIPT') || !defined('DIR')) Thanks again for the help. |
Remove those strange newlines from the PHP code, or do another copy-paste. You cannot have things like the following in code:
Code:
$variable- |
I'll give that a try. For example:
$vbulletin->session->vars['sessionurl'] $vbulletin['sessionurl'] Like that? FYI: The code is directly from the link in this thread, unedited. |
All times are GMT. The time now is 08:43 PM. |
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.