RSGallery2 Support Forums
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : November 22, 2008, 03:56:24 pm
+  RSGallery2 Support Forums
|-+  RSgallery2 support forums
| |-+  Display and Templates (Moderators: Jonah, Tomislav Ribicic, Daniel Tulp, Ronald Smit)
| | |-+  Change amount of random images
Advanced search
  « previous next »
Pages 1
Author
Topic: Change amount of random images  (Read 2999 times)
« on: November 27, 2006, 07:46:01 am »
Premier Offline
Newbie
*
Posts: 4

View Profile Email

Is there a way I can change the amount of random images to 6 instead of 3.  The same for the latest image as well.  I've searched with no luck.  Also can I file name display above these images?
Logged
 
Reply #1
« on: November 27, 2006, 10:52:28 am »
Premier Offline
Newbie
*
Posts: 4

View Profile Email

Well I figured this one out

To change it do the following:

edit config.rsgallery2.php

look for 'ORDER BY rand() limit 3");'

Change it to

ORDER BY rand() limit 6");

Change " ORDER BY file.date DESC limit 3"); (A few lines below)
tp '" ORDER BY file.date DESC limit 6");'



Anyone have a clue about how to add date, uploader and filename categories beside the thumbnail?
Logged
 
Print  Pages 1
« previous next »
Jump to: