* User Info

Welcome, Guest. Please login or register.
Did you miss your activation email?

* Recent Posts

Can't get RSG "Show My Galleries" to work by Dampfnudel
[February 25, 2019, 11:01:55 AM]

Change the order of uploaded images in the gallery by whazzup
[February 19, 2019, 10:37:29 PM]

Upload timeout for large galleries (500 images each) by whazzup
[February 11, 2019, 10:07:25 PM]

Greetings from Ronald Smit by whazzup
[January 06, 2019, 03:39:22 PM]

Pluign and module by whazzup
[June 08, 2018, 11:57:13 PM]

Version 4.4.1 released by whazzup
[May 31, 2018, 04:31:16 PM]

search.html.php refer to rsgsearch.css with a wrong path by whazzup
[January 13, 2018, 08:12:04 PM]

Slow Gallery with many Photos by whazzup
[September 22, 2017, 09:22:33 AM]

Support 3-levels in the User's Category Selection List

  • 1 replies
Support 3-levels in the User's Category Selection List
« on: July 26, 2007, 04:18:01 PM »
In one of the sites I created they use a category list with three levels.
I had to move the new photos to the 3rd level directory every time the user uploaded them. Here is a hack that imho must be added to the new version.

More details you can find in

I used it for version 1.12.2 Alpha .

Edit the administrator/components/com_rsgallery2/config.rsgallery2.php
(after you back it up)

Go to line 202
 and add this:

// Velonis I. Petros addition for a 3 level category selection list

                    $id2 = $row2->id;
                    $database->setQuery("SELECT * FROM jos_rsgallery2_galleries WHERE parent = '$id2' ORDER BY ordering ASC");
                    $rows3 = $database->loadObjectList();

                    foreach($rows3 as $row3)

                        if (!in_array($row3->id, $galleries))
                            $dropdown_html .= "<option value=\"$row3->id\" DISABLED>&nbsp;&nbsp;|--&nbsp;$row3->name</option>\n";
                            $dropdown_html .= "<option value=\"$row3->id\">&nbsp;&nbsp;|--&nbsp;$row3->name</option>\n";                       


//until here

Save it and you are ready! If it doesn't work then you did something wrong and you better wait for the new version.

Re: Support 3-levels in the User's Category Selection List
« Reply #1 on: November 06, 2008, 07:04:31 PM »
What exactly should this do?  I DESPERATELY need a third level :(