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 12-31-2005, 06:02 PM
Tefra's Avatar
Tefra Tefra is offline
Green Plog
 
Join Date: Dec 2005
Posts: 23
Gallery: 0
Comments: 0
Default

hey Morgan can you help me a little i want to add a random thumb on my index with some small info views , comments and author , the problem is that the rest of the site it isn't intergrated with vbulletin so i need some general code to work it out
Reply With Quote
  #2  
Old 12-31-2005, 10:12 PM
Morgan's Avatar
Morgan Morgan is offline
Head Plog
Admin
 
Join Date: Dec 2005
Posts: 5,324
Gallery: 10
Comments: 25
Default

Here is an example showing how to call a thumb on a non-vB PHP page. Tweak as needed.
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 12-31-2005, 10:56 PM
Tefra's Avatar
Tefra Tefra is offline
Green Plog
 
Join Date: Dec 2005
Posts: 23
Gallery: 0
Comments: 0
Default

thanks , it's exactly what i wanted
Reply With Quote
  #4  
Old 10-05-2008, 11:45 AM
starmagh starmagh is offline
Green Plog
 
Join Date: Oct 2008
Posts: 2
Gallery: 0
Comments: 0
Default

thanks Morgan
works great
Reply With Quote
  #5  
Old 11-01-2009, 01:15 PM
Toups Toups is offline
Green Plog
 
Join Date: Aug 2008
Posts: 4
Gallery: 0
Comments: 0
Default

This works for me, however the image does not seem to be random at all... any way to fix this?
Reply With Quote
  #6  
Old 11-03-2009, 04:31 PM
Morgan's Avatar
Morgan Morgan is offline
Head Plog
Admin
 
Join Date: Dec 2005
Posts: 5,324
Gallery: 10
Comments: 25
Default

You'd need to add ORDER BY RAND() to the query but it is not recommended on large galleries.
__________________
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 »

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 Thumbs on index Gimpy Ric "How Do I..." Questions 9 05-01-2006 03:15 AM


All times are GMT. The time now is 02:41 PM.


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