Advanced search  

News:

cpg1.5.48 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.46 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 3946 times)

0 Members and 1 Guest are viewing this topic.

yamiacaveman

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
You Must be Logged in to View---
« 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
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: You Must be Logged in to View---
« Reply #1 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 or http://coppermine-gallery.net/plugins.php or http://sourceforge.net/projects/coppermine/files/Plugins/1.5.x/
Logged

yamiacaveman

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: You Must be Logged in to View---
« Reply #2 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
Logged

yamiacaveman

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: You Must be Logged in to View---
« Reply #3 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
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: You Must be Logged in to View---
« Reply #4 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.
Logged

yamiacaveman

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: You Must be Logged in to View---
« Reply #5 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
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: You Must be Logged in to View---
« Reply #6 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.
Logged

yamiacaveman

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: You Must be Logged in to View---
« Reply #7 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: You Must be Logged in to View---
« Reply #9 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
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 21 queries.