You Must be Logged in to View--- You Must be Logged in to View---
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

You Must be Logged in to View---

Started by yamiacaveman, December 20, 2014, 02:37:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

yamiacaveman

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

allvip

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 or http://coppermine-gallery.net/plugins.php or http://sourceforge.net/projects/coppermine/files/Plugins/1.5.x/

yamiacaveman

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

yamiacaveman

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

allvip

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.

yamiacaveman

Thanks Allvip -- sounds like something I can use - but might be beyond my capabilities, lol.  But i will work on that.

Thanks

allvip

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.

yamiacaveman

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


allvip