coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: johanlm on July 18, 2005, 05:21:48 PM

Title: Alter the page people get sent to that are unreg.?! [A bit Unsolved again! ;)]
Post by: johanlm on July 18, 2005, 05:21:48 PM
I used this from the FAQ to "block" out nonregistered.
http://coppermine.sourceforge.net/faq.php#registeredUsersOnly

Now.
Since most of my friends are morons ( ::)), they don't understand they HAVE to be a member and be logged in to see the pictures.
And if they do, for some reason they have a hard time understanding to click the link that says [Register]
Is it possible to make it redirect to a page that says this?
And also give them the option to log in there IF they actually allrdy are members + a button that directs them to the place to register if they are not?!
You know the classical :


QuoteYou have to be logged in to get accses to this album!
-------------------------------------------------------
Login to your account
Username:[**********]
Password:[**********]
[Login]

[Become a member]
-------------------------------------------------------

I tried to find anything how to do this on the forum, but come up empty.  :-\\

Title: Re: Alter/redirect the page people get sent to that are unregistered & "blocked"
Post by: Nibbler on July 18, 2005, 05:45:04 PM
Just adapt this (http://coppermine.sourceforge.net/faq.php#viewThumbnailsOnly) to include a link to the login and register pages with normal html and apply it to the pages you used for the other mod. You can't really add a login box if you are using phpbb integration.
Title: Re: Alter/redirect the page people get sent to that are unregistered & "blocked"?
Post by: johanlm on July 18, 2005, 06:24:51 PM
if (!USER_ID) cpg_die(ERROR, 'You need to register to access this page', __FILE__, __LINE__);
This is the one you mean?

Shall I put the html code between the "' '"?
Like:
'You need to <a href="http://www.yaddayadday.com" target="_self">REGISTER</a>
or <a href="http://www.yaddayadday.com" target="_self">LOGIN</a> to access this page'


and shall I remove the http://coppermine.sourceforge.net/faq.php#registeredUsersOnly then?

And thanks for your anwser Nibbler, I really appriciate it.
Title: Re: Alter/redirect the page people get sent to that are unregistered & "blocked"?
Post by: Nibbler on July 18, 2005, 06:42:32 PM
Looks good to me :)
Title: Re: Alter/redirect the page people get sent to that are unregistered & "blocked"?
Post by: johanlm on July 18, 2005, 06:46:08 PM
Cool cool!

I wasn't sure you could do html in the code that way.  ::)
Thanks again.
Title: Re: Alter/redirect the page people get sent to that are unregistered & "blocked"?
Post by: johanlm on July 21, 2005, 01:36:32 PM
Well...
I finally got around to get this done. And it worked nicely to put in tables, etc between the ' ' tags were the text is.
Thing is I can't combine the 2.

Number 1:
That is with the change wich nonmembers/not logged in members, locked out so to speak:
http://coppermine.sourceforge.net/faq.php#registeredUsersOnly

Number 2:
With the one you showed me that allows nonmembers/not logged in members, to see only the thumbnail, but not the big ones:
http://coppermine.sourceforge.net/faq.php#viewThumbnailsOnly

Is there a way to lock them out as you do in the Number 1, but still get the option to show a text as you do in Number 2?