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, 04:11:29 pm
+  RSGallery2 Support Forums
|-+  RSgallery2 support forums
| |-+  Display and Templates (Moderators: Jonah, Tomislav Ribicic, Daniel Tulp, Ronald Smit)
| | |-+  Change the number in the Drop Down Menu
Advanced search
  « previous next »
Pages 1
Author
Topic: Change the number in the Drop Down Menu  (Read 5006 times)
« on: November 15, 2006, 07:09:54 am »
Joe Offline
Newbie
*
Posts: 12

View Profile Email

When I open my RSGallery2 on my page there is this Drop Down on the left side where you can choose to show the number of the latest galleries which are displayed. I want to change this number to 10. That everybody can see the 10 latest galleries.

Here is the link of my page: http://www.kneedeep.ch/component/option,com_rsgallery2/Itemid,52/

What do I need to modify, and how? 

Bye the way thanks for your good job, rsgallery2 rocks!!! rgrds joe
Logged
 
Reply #1
« on: November 15, 2006, 10:29:08 am »
Ronald Smit Offline
Administrator
Hero Member
*****
Posts: 1214

View Profile WWW Email

Pretty simple.
Open up rsgallery2.php and goto around line 300.

Fine the following code:
Code:
<?php
//Set limits for pagenav
        
if (isset($_REQUEST['limit']))
            
$limit mosGetParam $_REQUEST'limit'  '');
        else
            
$limit 5;
?>

and replace 5 with whatever you want as the default value.

Good luck
Logged

Ronald Smit
RSGallery2 Developer
FAQ|Known issues
 
Reply #2
« on: January 21, 2007, 05:42:52 am »
Willy Offline
Newbie
*
Posts: 4

View Profile Email

I can't find this code anymore in version 1.12.1.
Is the code still the same?
Logged
 
Reply #3
« on: January 29, 2007, 01:17:31 am »
pgocegue Offline
Newbie
*
Posts: 1

View Profile Email

Hello, in my page: http://uag.awardspace.com/index.php?option=com_rsgallery2&Itemid=30

In version 1.12.1, I obtained it of the following way:

1) Open up rsgallery2.html.php (not rsgallery2.php)
2) goto around line 848    or    find=> function RSGalleryList

    function RSGalleryList( $gallery ){
        global $Itemid;
       
        $limit = mosGetParam ( $_REQUEST, 'limit', 5);
        $limitstart = mosGetParam ( $_REQUEST, 'limitstart', 0);

3) and replace 5 with whatever you want as the default value.

Good luck
Atte: Pedro Alejandro González Oceguera, from Mexico.
Logged
 
Reply #4
« on: January 29, 2007, 03:44:11 am »
Daniel Tulp Offline
Administrator
Hero Member
*****
Search search search before posting please Posts: 1870
danieltulp@hotmail.com
View Profile WWW Email

in the next release an option in the backend will exist for this, or try nightly builds from svn revision 566 and onwards
Logged

RSgallery2 developement team
RSgallery2 modules:
design.danieltulp.nl
 
Print  Pages 1
« previous next »
Jump to: