Photos - Disallow if not logged in

On the navigation menu, when you click on Photos, it takes you to a page of photos that users have uploaded. I want it to require login in order to view it.

I thought that photos.php was the correct file. So I opened it and pasted

$logged['member'] = member_auth( 0 );

just before Page Code()......and it didnt work. I am guessing maybe I am editing the wrong file? Any ideas?

Quote · 24 Apr 2010

Hello,

You can do this from the admin panel as well,  go to admin panel -> settings-> membership levels

chose the membership you want to apply this change and remove the action UPLOAD PHOTO for them, and make sure your site should not be running in free mode.

Regards

Sneha

Professional Team of Dolphin Developers - http://www.thakkertech.com
Quote · 26 Apr 2010

Guest or non-member is most likely the place you want to modify these settings for unless you want to charge for members to view other members picture pages.  Then you would need an upgraded membership level for your standard members to pay or be invited to upgrade to.

:-)
Quote · 26 Apr 2010

Here's the thing, I already have that set. Yet they are still able to go to http://mydomain.com/photo/all/10/1 and view the pictures wtihout being logged in. I don't want to charge for membership.....But I do want people to be logged in in order to view content.  Below is a screenshot of my setting:

photo

Hello,

You can do this from the admin panel as well,  go to admin panel -> settings-> membership levels

chose the membership you want to apply this change and remove the action UPLOAD PHOTO for them, and make sure your site should not be running in free mode.

Regards

Sneha

Quote · 28 Apr 2010

FYI i just figured it out. I had to edit file "browsePhoto.php" ....and there i had to paste "$logged['member'] = member_auth( 0 );" just before "check_logged()".

It worked.

thanks for replying though! I appreciate it.

Quote · 28 Apr 2010

Is this the method for Dolphin 7 also? Have to edit the php files to require login to view photos?  The current admin panel here does not appear to control the photo settings.  For now we would like them to be able to view thumbnails, but have to login to view full images.

admin panel -> settings-> membership levels  does not seem to do it. Thanks!

Quote · 29 Jun 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.