Please login or register.
Login with username, password and session length
August 19, 2017, 04:49:59 PM
News:
collapse

* User Info

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

* Recent Posts

Advertisement


Pages: [1]   Go Down

Author Topic: Fixed: Users can see other users galleries name when they try to add photos.  (Read 83 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: 257

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: 257

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