View Full Version : How to add 4 random images to my sidebar?
AdyumS
06-26-2006, 01:11 AM
I am using this sidebar hack (http://www.vbulletin.org/forum/showthread.php?t=94495) and was wondering how I could implement 4 random thumbnails from my gallery to this sidebar. Any insite?
Morgan
06-28-2006, 02:15 AM
Untested, but perhaps use this (http://www.vbulletin.org/forum/showthread.php?t=103839): 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:
Content visible to registered users only.
arowana
05-01-2007, 04:55 AM
Content visible to registered users only.
hi.i'm using template edits for a right column on my forumhome.how do insert vertical thumbs in my templates?i do not have the side column hack installed,no global_start hook to edit your above instructions.
Morgan
05-01-2007, 03:48 PM
Again untested, but try this (http://www.vbulletin.org/forum/showthread.php?t=103839): 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:
Content visible to registered users only.
To add a plugin, go to the vB ACP -> Plugins & Products -> Add New Plugin.
For further details on how to add a plugin, check here (www.vbulletin.com/docs/html/main/add_plugin?manualversion=30506500).
AnabolicResourc
03-06-2008, 08:32 AM
Works for me !
mrjangles
03-11-2008, 09:45 PM
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? =\
Morgan
03-12-2008, 10:29 AM
Whatever you used for the plugin is incorrect:
Content visible to registered users only.
Look at the plugin's PHP code and try removing the > character.
mrjangles
03-12-2008, 03:52 PM
This is the code i'm using. I can't find anything wrong with it.
Content visible to registered users only.
I was using the global_complete hook. Not sure if it makes a difference, but now it's under global_start. I'm not getting an error, but when I call $photoplog_thumbs_vert in a template, no images are displayed. This isnt the only plugin doing this. The 1337 thumbs hack for photoplog is doing the same thing. I install it correctly, but when I make the call, nothing is displayed. Very strange. I'm using the latest VB with patch2.
Thanks again for the help.
Morgan
03-12-2008, 06:12 PM
Remove those strange newlines from the PHP code, or do another copy-paste. You cannot have things like the following in code:
Content visible to registered users only.
mrjangles
03-12-2008, 07:12 PM
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.
mrjangles
03-12-2008, 07:17 PM
Sorry, this is working for me. I have no idea what I'm doing.
Morgan
03-12-2008, 08:01 PM
Content visible to registered users only.
Yes, like that; take out the strangoid line breaks.
mrjangles
03-12-2008, 08:20 PM
Still not working for me. But i did manage to get the 1337 hack working.
Do i add this plugin under vbulletin or photoplog?
Content visible to registered users only.
Are you talking about all the line breaks?
mrjangles
03-12-2008, 08:27 PM
Got it.
I reverted back to the original code from the zip, yes, the one with the strange code. Apparently there was a conflict between the 1337 hack and this one. I simply turned the 1337 hack to inactive.
ahhhh! my hair is almost gone :(.
Thanks for all the help!!
vBulletin® v3.8.5, Copyright ©2000-2024, Jelsoft Enterprises Ltd.