Alter the page people get sent to that are unreg.?! [A bit Unsolved again! ;)] Alter the page people get sent to that are unreg.?! [A bit Unsolved again! ;)]
 

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]

Main Menu

Alter the page people get sent to that are unreg.?! [A bit Unsolved again! ;)]

Started by johanlm, July 18, 2005, 05:21:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

johanlm

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.  :-\\


Nibbler

Just adapt this 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.

johanlm

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.


johanlm

Cool cool!

I wasn't sure you could do html in the code that way.  ::)
Thanks again.

johanlm

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?