Please login or register.
Login with username, password and session length
November 21, 2017, 02:49:15 PM
News:
collapse

* User Info

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

* Recent Posts

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


Batch Upload via frontend by whazzup
[September 11, 2017, 10:20:50 PM]


Version 4.3.1 released by whazzup
[August 07, 2017, 10:34:02 PM]


File upload limit is 2MB by whazzup
[July 31, 2017, 10:09:21 PM]


Fixed: Users can see other users galleries name when they try to add photos. by whazzup
[July 23, 2017, 03:56:35 PM]


Fixed: RSGallery2 Gallery Display slideshow_parth can be loaded once by baboon
[June 17, 2017, 09:30:12 PM]


Fixed: RSGallery2 Gallery Display error this.galleryElement is null by baboon
[June 17, 2017, 09:29:06 PM]


Is RSGallery2 4.3.0 compatible with PHP 7.x ? by whazzup
[May 20, 2017, 07:18:46 PM]

Advertisement


Pages: [1]   Go Down

Author Topic: Fixed: Users can see other users galleries name when they try to add photos.  (Read 277 times)

Offline giobag

  • Newbie
  • *
  • Posts: 2

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 »

Offline whazzup

  • Dev Team
  • Sr. Member
  • *****
  • Posts: 260

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

Offline giobag

  • Newbie
  • *
  • Posts: 2

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);

Offline whazzup

  • Dev Team
  • Sr. Member
  • *****
  • Posts: 260

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
Pages: [1]   Go Up