Advanced search  

News:

cpg1.5.34 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.32 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: You Must be Logged in to View---  (Read 176 times)

0 Members and 1 Guest are viewing this topic.

yamiacaveman

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
You Must be Logged in to View---
« on: December 20, 2014, 03: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
Logged

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 739
    • allvip.us Post anything from anywhere!
Re: You Must be Logged in to View---
« Reply #1 on: December 21, 2014, 02: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 or http://coppermine-gallery.net/plugins.php or http://sourceforge.net/projects/coppermine/files/Plugins/1.5.x/

yamiacaveman

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: You Must be Logged in to View---
« Reply #2 on: December 21, 2014, 03: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
Logged

yamiacaveman

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: You Must be Logged in to View---
« Reply #3 on: December 21, 2014, 03: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
Logged

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 739
    • allvip.us Post anything from anywhere!
Re: You Must be Logged in to View---
« Reply #4 on: December 21, 2014, 05: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.

yamiacaveman

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: You Must be Logged in to View---
« Reply #5 on: December 21, 2014, 05: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
Logged

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 739
    • allvip.us Post anything from anywhere!
Re: You Must be Logged in to View---
« Reply #6 on: December 21, 2014, 07: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.

yamiacaveman

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: You Must be Logged in to View---
« Reply #7 on: December 21, 2014, 08: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
Logged
Pages: [1]   Go Up
 

Page created in 0.082 seconds with 20 queries.