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 15 Years ago
 
Thread Tools
  #1  
Old 01-29-2008, 06:59 PM
ichange ichange is offline
Green Plog
 
Join Date: Jan 2008
Posts: 3
Gallery: 0
Comments: 0
Default random image in side column

How could I add a random image to the side column of www.raidarena.com any help would be greatly appreciated thank you.
Reply With Quote
  #2  
Old 01-29-2008, 07:36 PM
Morgan's Avatar
Morgan Morgan is offline
Head Plog
Admin
 
Join Date: Dec 2005
Posts: 5,324
Gallery: 10
Comments: 25
Default

Check the main readme file for how to add thumbnails to forum home. You can add the thumbnails wherever you want on the page, but after $navbar is a good spot. If you want a different number of thumbnails, you would need to change the LIMIT of the query located in the PhotoPlog Forum Home Thumbs plugin.
__________________
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 01-29-2008, 07:54 PM
ichange ichange is offline
Green Plog
 
Join Date: Jan 2008
Posts: 3
Gallery: 0
Comments: 0
Default

so if you wanted it in a side column you would have to add $photoplog_forumhome to your side column code and change the query to 1 for it to work right huh?
Reply With Quote
  #4  
Old 01-29-2008, 08:01 PM
Morgan's Avatar
Morgan Morgan is offline
Head Plog
Admin
 
Join Date: Dec 2005
Posts: 5,324
Gallery: 10
Comments: 25
Default

Yes, change the query to 1 but as to your side column code, you will need to try it, as I don't know the content of that code and have no time to review it for you.
__________________
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 01-29-2008, 08:17 PM
ichange ichange is offline
Green Plog
 
Join Date: Jan 2008
Posts: 3
Gallery: 0
Comments: 0
Default

I think I have it figured out I found a PhotoPlog 1337 Thumbs addon that I can use I played with the code to change the image size show and I can put it in the side column and it works but hmm what do I change in this code to make it only show 1 random.

FROM photoplog_fileuploads
WHERE moderate = 0
ORDER BY RAND()
LIMIT 20 change to 1 correct?

Code:
Content visible to registered users only.
Reply With Quote
  #6  
Old 01-29-2008, 09:59 PM
Morgan's Avatar
Morgan Morgan is offline
Head Plog
Admin
 
Join Date: Dec 2005
Posts: 5,324
Gallery: 10
Comments: 25
Default

Yes, try it, that change won't break anything.
__________________
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
  #7  
Old 06-08-2009, 12:08 AM
ArnyVee's Avatar
ArnyVee ArnyVee is offline
Green Plog
 
Join Date: Jun 2009
Location: South Florida
Posts: 12
Gallery: 0
Comments: 0
Default

I was about to start a thread about this, but figured I should try 'search' first

I've tried to have one random picture appear in my side column, but it hasn't worked. I went into the PhotoPlog Forum Home Thumbs plugin and changed the number from 5 to 1 (I'm assuming that's right) and then added my code to the side column using $photoplog_forumhome.

But, to no avail.

Any other suggestions or tips on how to get this to work properly without adding another hack/mod to my site?
Reply With Quote
  #8  
Old 06-09-2009, 04:41 PM
Morgan's Avatar
Morgan Morgan is offline
Head Plog
Admin
 
Join Date: Dec 2005
Posts: 5,324
Gallery: 10
Comments: 25
Default

Your sidebar probably gets set before the PhotoPlog variable so nothing would show. Check these threads for how to make use of the global_start hook.
__________________
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
Reply

« Previous Thread | Next Thread »
Thread Tools

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
random image and photo of the day? bluemoon "How Do I..." Questions 1 12-17-2007 07:39 PM
Left side column rizwan65 "How Do I..." Questions 2 05-02-2006 05:19 AM


All times are GMT. The time now is 12:53 AM.


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