|
Attention: Last reply in this thread was more than 16 Years ago |
|
Thread Tools |
#1
|
|||
|
|||
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..
|
#2
|
||||
|
||||
__________________
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
|
|||
|
|||
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.. |
#4
|
||||
|
||||
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 |
#5
|
|||
|
|||
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 |
#6
|
||||
|
||||
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 |
#7
|
|||
|
|||
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. |
#8
|
||||
|
||||
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 |
#9
|
|||
|
|||
Morgan you are a legend!!!!!
Just need to try and do the same for the cartplog now!!!!!! THANK YOU!!! |
#10
|
|||
|
|||
Code:
Content visible to registered users only. thanks ! |
|
|
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 |