|
Attention: Last reply in this thread was more than 16 Years ago |
|
Thread Tools |
#1
|
|||
|
|||
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?
|
#2
|
||||
|
||||
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:
Content visible to registered users only.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks. While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams |
#3
|
|||
|
|||
Code:
Content visible to registered users only. Last edited by arowana; 05-01-2007 at 04:58 AM.. |
#4
|
||||
|
||||
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:
Content visible to registered users only. For further details on how to add a plugin, check here.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks. While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams |
#5
|
|||
|
|||
Works for me !
|
#6
|
|||
|
|||
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? =\ |
#7
|
||||
|
||||
Whatever you used for the plugin is incorrect:
Code:
Content visible to registered users only.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks. While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams |
#8
|
|||
|
|||
This is the code i'm using. I can't find anything wrong with it.
Code:
Content visible to registered users only. Thanks again for the help. Last edited by mrjangles; 03-12-2008 at 03:58 PM.. |
#9
|
||||
|
||||
Remove those strange newlines from the PHP code, or do another copy-paste. You cannot have things like the following in code:
Code:
Content visible to registered users only.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks. While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams |
#10
|
|||
|
|||
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. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I add 'Random Thumbs' do the homepage of my forum? | litfoo | "How Do I..." Questions | 1 | 12-09-2006 01:47 PM |