PhotoPlog

Go Back   PhotoPlog > PhotoPlog Lite > "How Do I..." Questions
Screens Demo Purchase Download Register

Reply
Attention: Last reply in this thread was more than 16 Years ago
 
Thread Tools
  #1  
Old 06-26-2006, 01:11 AM
AdyumS AdyumS is offline
Green Plog
 
Join Date: Mar 2006
Posts: 2
Gallery: 0
Comments: 0
Default 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?
Reply With Quote
  #2  
Old 06-28-2006, 02:15 AM
Morgan's Avatar
Morgan Morgan is offline
Head Plog
Admin
 
Join Date: Dec 2005
Posts: 5,324
Gallery: 10
Comments: 25
Default

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
Reply With Quote
  #3  
Old 05-01-2007, 04:55 AM
arowana arowana is offline
Green Plog
 
Join Date: Apr 2007
Posts: 1
Gallery: 0
Comments: 0
Default

Code:
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.

Last edited by arowana; 05-01-2007 at 04:58 AM..
Reply With Quote
  #4  
Old 05-01-2007, 03:48 PM
Morgan's Avatar
Morgan Morgan is offline
Head Plog
Admin
 
Join Date: Dec 2005
Posts: 5,324
Gallery: 10
Comments: 25
Default

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.
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.
__________________
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
Reply With Quote
  #5  
Old 03-06-2008, 08:32 AM
AnabolicResourc AnabolicResourc is offline
Green Plog
 
Join Date: Feb 2007
Posts: 27
Gallery: 0
Comments: 0
Default

Works for me !
Reply With Quote
  #6  
Old 03-11-2008, 09:45 PM
mrjangles mrjangles is offline
Green Plog
 
Join Date: Mar 2008
Posts: 7
Gallery: 0
Comments: 0
Default

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? =\
Reply With Quote
  #7  
Old 03-12-2008, 10:29 AM
Morgan's Avatar
Morgan Morgan is offline
Head Plog
Admin
 
Join Date: Dec 2005
Posts: 5,324
Gallery: 10
Comments: 25
Default

Whatever you used for the plugin is incorrect:
Code:
Content visible to registered users only.
Look at the plugin's PHP code and try removing the > character.
__________________
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
Reply With Quote
  #8  
Old 03-12-2008, 03:52 PM
mrjangles mrjangles is offline
Green Plog
 
Join Date: Mar 2008
Posts: 7
Gallery: 0
Comments: 0
Default

This is the code i'm using. I can't find anything wrong with it.

Code:
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.

Last edited by mrjangles; 03-12-2008 at 03:58 PM..
Reply With Quote
  #9  
Old 03-12-2008, 06:12 PM
Morgan's Avatar
Morgan Morgan is offline
Head Plog
Admin
 
Join Date: Dec 2005
Posts: 5,324
Gallery: 10
Comments: 25
Default

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
Reply With Quote
  #10  
Old 03-12-2008, 07:12 PM
mrjangles mrjangles is offline
Green Plog
 
Join Date: Mar 2008
Posts: 7
Gallery: 0
Comments: 0
Default

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.
Reply With Quote
Reply

« Previous Thread | Next Thread »

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 01:27 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.