collapse

* 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]

Fixed: Users can see other users galleries name when they try to add photos.

  • 3 replies
  • 2757 views
Hello,
i am new to rsgallery and i am having problems with rsgallery module 4.3.1.
I am trying to have users that can create their own galleries and add photos in them.So far so good.
When a user creates an album he can see the parent category of every other user.
Also when a user adds an image he can also see(not add) the name of the album of every other user.
When the user picks up from the dropbox the album that he wants to add the image to he can see every album...
I tried permissions but to no avail.
Thanks in advance
« Last Edit: July 31, 2017, 10:17:19 PM by whazzup »

This is a tough one. Looks like a lot of work to debug this.
I will check it out but it will need "some" time
Regards whazzup
If you are looking for the newest version of  RSGallery2 for Joomla 3 please check out https://github.com/RSGallery2

Thank you whazzup.
I figured it out by editing file config.rsgallery2.php
I attach my changes with //giobag.
Thank you again.

$database      = JFactory::getDBO();
      $my       = JFactory::getUser();//giobag
      $my_id    = $my->id; //giobag

      $dropDown_html = "";

      //$query = 'SELECT * FROM `#__rsgallery2_galleries` WHERE `parent` = ' . (int) $galid . ' ORDER BY `ordering` ASC';
      $query = 'SELECT * FROM `#__rsgallery2_galleries` WHERE `uid` = ' . (int) $my_id . ' and `parent` = ' . (int) $galid . ' ORDER BY `ordering` ASC';//giobag
      
      
      $database->setQuery($query);

Thank you giobag,

It is marvelous when "our" users support the solutions to their own issues.  ;D ;-)
The inserts will be included in the next release
Regards whazzup


If you are looking for the newest version of  RSGallery2 for Joomla 3 please check out https://github.com/RSGallery2