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. :-\\
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.
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.
Looks good to me :)
Cool cool!
I wasn't sure you could do html in the code that way. ::)
Thanks again.
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?