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: Alter the page people get sent to that are unreg.?! [A bit Unsolved again! ;)]  (Read 4091 times)

0 Members and 1 Guest are viewing this topic.

johanlm

  • Coppermine newbie
  • Offline Offline
  • Posts: 11

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 :


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

« Last Edit: July 21, 2005, 01:38:26 pm by johanlm »
Logged

Nibbler

  • Guest

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.
Logged

johanlm

  • Coppermine newbie
  • Offline Offline
  • Posts: 11

Code: [Select]
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:
Code: [Select]
'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.
Logged

Nibbler

  • Guest

Looks good to me :)
Logged

johanlm

  • Coppermine newbie
  • Offline Offline
  • Posts: 11

Cool cool!

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

johanlm

  • Coppermine newbie
  • Offline Offline
  • Posts: 11

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?
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.