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 07-14-2008, 08:48 PM
Daz wilde Daz wilde is offline
Green Plog
 
Join Date: Jun 2008
Posts: 17
Gallery: 0
Comments: 0
Default Pull random images to php page...

Is there a way to pull random images from my gallery to my home page which is a bog standard php page..
Reply With Quote
  #2  
Old 07-15-2008, 07:53 PM
Morgan's Avatar
Morgan Morgan is offline
Head Plog
Admin
 
Join Date: Dec 2005
Posts: 5,324
Gallery: 10
Comments: 25
Default

http://www.photoplog.com/forum/showthread.php?t=10
__________________
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 07-15-2008, 08:32 PM
Daz wilde Daz wilde is offline
Green Plog
 
Join Date: Jun 2008
Posts: 17
Gallery: 0
Comments: 0
Default

This is great but can i ......

Make them slightly bigger than what they display as?

Also grab them from a seperate category?

Cheers

Last edited by Daz wilde; 07-15-2008 at 08:36 PM..
Reply With Quote
  #4  
Old 07-16-2008, 03:30 PM
Morgan's Avatar
Morgan Morgan is offline
Head Plog
Admin
 
Join Date: Dec 2005
Posts: 5,324
Gallery: 10
Comments: 25
Default

Please don't PM me support questions. Posting and PMing doesn't grab my attention or make me work any faster. As to your questions, change $photoplog_imgsize to medium or large and edit the query:
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
  #5  
Old 07-17-2008, 12:05 AM
Daz wilde Daz wilde is offline
Green Plog
 
Join Date: Jun 2008
Posts: 17
Gallery: 0
Comments: 0
Default

Apologies for the PM...

Great stuff it worked a treat.... how would these random images change though, or do they always stay to that image???

Also did you create this mod for cartplog???? I was wanting to do exactly the same for this mod also??

http://www.vbulletin.org/forum/showthread.php?t=161010

Thanks again
Reply With Quote
  #6  
Old 07-17-2008, 02:51 PM
Morgan's Avatar
Morgan Morgan is offline
Head Plog
Admin
 
Join Date: Dec 2005
Posts: 5,324
Gallery: 10
Comments: 25
Default

1: Look for ORDER BY RAND() on this page and edit the query.

2: You'll need to check the vBorg thread and see if there is anything there; nothing here for the cart.
__________________
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 07-18-2008, 12:02 AM
Daz wilde Daz wilde is offline
Green Plog
 
Join Date: Jun 2008
Posts: 17
Gallery: 0
Comments: 0
Default

Sorry Morgan im not well up on sql querys i have tried several times could you help us edit this line so i can get the random working...

$query = "SELECT * FROM photoplog_fileuploads WHERE moderate = 0 AND catid IN (2) LIMIT 1";


I think thats the bit i need to edit.
Reply With Quote
  #8  
Old 07-18-2008, 01:27 PM
Morgan's Avatar
Morgan Morgan is offline
Head Plog
Admin
 
Join Date: Dec 2005
Posts: 5,324
Gallery: 10
Comments: 25
Default

Add ORDER BY RAND() before LIMIT - there is an example on this page.
__________________
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
  #9  
Old 07-18-2008, 06:17 PM
Daz wilde Daz wilde is offline
Green Plog
 
Join Date: Jun 2008
Posts: 17
Gallery: 0
Comments: 0
Default

Morgan you are a legend!!!!!

Just need to try and do the same for the cartplog now!!!!!!

THANK YOU!!!

Reply With Quote
  #10  
Old 10-06-2008, 02:13 AM
starmagh starmagh is offline
Green Plog
 
Join Date: Oct 2008
Posts: 2
Gallery: 0
Comments: 0
Thumbs up

Code:
Content visible to registered users only.
+1
thanks !
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
Required to Login When Visiting photoplog.php page? Joe Dakota Troubleshooting & Problems 1 01-07-2008 09:38 AM


All times are GMT. The time now is 01:28 PM.


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