Requesting a Popup login/register script please.

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Requesting a Popup login/register script please.
jcb
CZ Active Member
 Codezwiz Site Donator
jcb has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Soldier
Age: 48
Gender: Male
Fav. Sports Team: England
Status: Offline
Joined: Oct 20, 2003
0.02 posts per day
Posts: 135
Points: 7,618
   
Hi all,

I have seen this on a VB site somewhere.

Please could someone come up with a popup script so that when a user enters the site they get the popup containing the following info:

An area for my own text at the top. (only a few words - enough for say 50)
Site login boxes - i.e username box, password box with submit button.

Also at the bottom - register for an account link/details.

Would like the dimensions of the box roughly 400 x 400 pixels
and coloured if poss - though not essential

Thanks for any help offered.

Best regards

Jon




_________________
PHP Super NooB
Back to top Reply with quote
#2   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
I would think that would be pretty annoying. Is it supposed to load everytime they refresh the page if there not a user? Or just once? Thats not an easy task to do. The login wouldn't be that diffucult to make just seems like it would become a real nuisance.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   
jcb
CZ Active Member
 Codezwiz Site Donator
jcb has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Soldier
Age: 48
Gender: Male
Fav. Sports Team: England
Status: Offline
Joined: Oct 20, 2003
0.02 posts per day
Posts: 135
Points: 7,618
   
Hi Telli,

Thankyou for your reply. GoddsEgo has been in touch and is sorting me out. icon_biggrin.gif

Best regards

Jon




_________________
PHP Super NooB
Back to top Reply with quote
#4   re: Requesting a Popup login/register script please.
jcb
CZ Active Member
 Codezwiz Site Donator
jcb has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Soldier
Age: 48
Gender: Male
Fav. Sports Team: England
Status: Offline
Joined: Oct 20, 2003
0.02 posts per day
Posts: 135
Points: 7,618
   
Hi again,

I thought about what you said reference it being annoying and you are probably right. So, looking through the Nuke How To I found this in section 18.2.1 about redirecting users who are not logged in or registered:


At the beginning of index.php after the line:

require_once("mainfile.php");

Add a piece of code so it looks like this:

require_once("mainfile.php");
global $user;
if(!is_user($user)) {
  header("Location: modules.php?name=Your_Account");
}


It will then redirect users who are not registered or logged in to the Your Account mdule.
This will do me I believe as I will just change the location address to my own custom login/register page.

Quite a useful snippet of code I think.

Regards

Jon



_________________
PHP Super NooB
Back to top Reply with quote
#5   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
Sure but then everytime they hit the page they will get that. That would annoy me so bad I would leave your site and not bother registering. You need to make a check so it only does it once a day or something unless of course you don't offer anything for guests then just keep forcing them there.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#6   
jcb
CZ Active Member
 Codezwiz Site Donator
jcb has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Soldier
Age: 48
Gender: Male
Fav. Sports Team: England
Status: Offline
Joined: Oct 20, 2003
0.02 posts per day
Posts: 135
Points: 7,618
   
But it only forces them there if they are not logged in. Most of the time a user stays logged in untill cookies are deleted.
If they are logged in it goes to the address you click/enter




_________________
PHP Super NooB
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum