forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: yamiacaveman on December 20, 2014, 02:37:41 pm

Title: You Must be Logged in to View---
Post by: yamiacaveman on December 20, 2014, 02:37:41 pm
At one time I thought I had an option like this -- I have everything working they way I want it and working well I must say. I have a couple of albums visitors can see when they first visit my site and after that they must register and log in.

Problem, They also get to see two other category listings on the front page - if they click on any of those categories I would like it to lead to a "You must register and log in to view the rest of the Gallery" or something like that - or at least on the main page include a statement saying "You must be---".

Did I miss something, something not working, different settings, pluggin?

Lost,

Thanks for any help or suggestions,

yamiacaveman
Title: Re: You Must be Logged in to View---
Post by: allvip on December 21, 2014, 01:02:16 pm
For the albums in two other category listings on the front page go to Album properties (the album is near every album when you are login) you set Album can be viewed by Members of the registred group. That will ask them to log in.
I don't think is possible to restrict access by category.
You can browse all the plugins http://forum.coppermine-gallery.net/index.php/board,91.0.html (http://forum.coppermine-gallery.net/index.php/board,91.0.html) or http://coppermine-gallery.net/plugins.php (http://coppermine-gallery.net/plugins.php) or http://sourceforge.net/projects/coppermine/files/Plugins/1.5.x/ (http://sourceforge.net/projects/coppermine/files/Plugins/1.5.x/)
Title: Re: You Must be Logged in to View---
Post by: yamiacaveman on December 21, 2014, 02:09:13 pm
Thanks for the Reply Allvip!

Here is what I want to do - I don't know if it is possible but the last time I had the gallery set up I thought it did it automatically.

site http://stalag13000.net/Gallery/index.php   if you look at the main page, and see the two category listings top left,  Coudy and Game Pictures - when you click on them I thought it would say something like you must be logged in to view the rest of --

Is that possible -or is there a place on the main page that I could leave a message Stating you must be logged in to view the rest? --

Again thanks for any help,

yamiacaveman
Title: Re: You Must be Logged in to View---
Post by: yamiacaveman on December 21, 2014, 02:51:42 pm
I would even be happy to be able to change the "No image to display" to "You must be logged in!" if anyone has any idea where I can change that wording - Looked for hours!

yamiacaveman
Title: Re: You Must be Logged in to View---
Post by: allvip on December 21, 2014, 04:40:50 pm
My firts reply is theonly thing I know.
Only coppermine team can answer taht.

Another ideea is to create .htaccess in your gallery folder and inside add redirection rules.
One to redirect http://stalag13000.net/Gallery/index.php?cat=2 to http://stalag13000.net/Gallery/login.php and one to redirect http://stalag13000.net/Gallery/index.php?cat=3 to http://stalag13000.net/Gallery/login.php

I'm not good at write redirection rules. Search Google or stackoverflow.com.
You can even ask on stackoverflow.com.
Title: Re: You Must be Logged in to View---
Post by: yamiacaveman on December 21, 2014, 04:47:59 pm
Thanks Allvip -- sounds like something I can use - but might be beyond my capabilities, lol.  But i will work on that.

Thanks
Title: Re: You Must be Logged in to View---
Post by: allvip on December 21, 2014, 06:28:54 pm
No image to display is in lang/english.php $lang_errors['no_img_to_display'] = 'No image to display';
Change No image to display to Log in to view.

You you have in Config - Language & Charset settings - Autodetect language enabled the you have to change in all the languages files like french.php.

ATTENTION: if visitors have access to an album but is empty, they will see even there  Log in to view insted off
No image to display.

The right way is a php code with a condition: if album restricted for visitors the redirect to login.php.
Title: Re: You Must be Logged in to View---
Post by: yamiacaveman on December 21, 2014, 07:09:03 pm
Thanks Again Allvip!!!!

I checked with stackoverflow -- I would have to deal with sessions and rewriting the php stuff is way beyond me, lol. I can change the text -- Thanks for locating that file -- I will probably change it to something like -- No Image to Display -either Log in or Up load pictures.

Really. thanks for all your work Allvip

I really appreciate it.

yamiacaveman
Title: Re: You Must be Logged in to View---
Post by: Αndré on December 26, 2014, 10:34:32 pm
Maybe you're looking for this setting? http://documentation.coppermine-gallery.net/en/configuration.htm#admin_picture_thumb_advanced_private_icon_show
Title: Re: You Must be Logged in to View---
Post by: allvip on January 08, 2015, 01:44:08 pm
Forum rules: say how you made it and then click topic solved.

Resolve your threads: http://forum.coppermine-gallery.net/index.php/topic,55415.msg270631.html#msg270631 (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270631.html#msg270631)