![]() |
I'd like to make a request of sorts, but I don't believe this hack would require too much...
I want unregistered/not logged in visitors to receive a small pop-up window every time they visit a page in my forums. Inside of this window, a small, stripped-down registration form would be displayed with only the essential fields. Hopefully, after a few page views, they would be annoyed enough to go ahead and fill it in or log in. Can anyone tell me how to do this? |
This is a really great idea...surprised it hasn't been mentioned before. Maybe if we're lucky, someone will pull through.
|
The page itself is very easy, you don't need help with that (or do you?).
I can help you with the poping the page if the user isn't loggedin though: In global.php add PHP Code:
PHP Code:
Code:
<script language="javascript"><!-- |
Quote:
|
Almost there :)
|
[QUOTE]Originally posted by LanciaStratos
Well, actually, I do. I can make the form of course, but how do I create it so that it adds a member to the database? |
Visit automotiveforums.com, guests will get the pop-up box. I think igor did it with a javascript and cookie (i posted that code earlyer), so the guest will only get the pop-up once, or whatever you set the cookie too... Anyhow, view source of the pop-up, you get the idea :)
|
Quote:
|
What do you mean everytime? Once a day? Once per session? Once per page view? FireFly's way will pop up on every page view, as far as i can tell, I woudlnt view many pages if i got a pop-up on each and every one! I think once per day would be fine, you can do that by setting the cookie timeout to 24hrs.
You can find the code anywhere on the net, i posted it in one of Igor's threads when he was reciving hundreds of guests from a a magazine artical... |
The pop up in this case would pop up ever time only until the register. Seeing how it's a pop up form, most people would probably register the first time the see the pop up. If they don't hopfully they'll get the picture after the second or third time.
The condensed registration form from the automotiveforums.com site is perfect. I think we might see something from FireFly :) |
I dont know about you, but when i visit a forum, i usualy lurk for a week or more. I see if i will fit into the community, to see if the standards are upto my own standards... If i recive a popup for every page i visit there, theres no way your going to get me to register! If you do that to guests, how do i know you wont exploit members down the line? I think one pop-up per day is enough. :)
|
1 Attachment(s)
Have a look at our forums, I did a very small and simple version of an express registration:
http://www.mcseboard.de/forum/register.php Just added some text and a second button after the required info fields stating: "Infos below can be added later" for people who are in a hurry :) I'm not sure if this "meets your standards" pals, but it surely works well for us :D cu, -Tom P.S.: Visit above or see attached screenshot (~40k) |
Quote:
|
Brilliant.
I am working on the full version of this. I will post all the code etc in a couple of days. Cheers, veedee |
Quote:
|
I would also be interested in this! sounds like a great idea!
rcooper |
I am a bit behind on this due to launching a subscription card on my forum that I want to mother until it can stand alone.
The code will make an appearance this week though :D Thanks for being patient, veedee |
any update on this???
|
Quote:
any updates yet?? thanks :) |
Darkman, all the code you could possibly need is right here in this thread, or is linked off of this thread. No need for you to wait. Just piece it together :)
Amy |
well, not all of us are as web savy as others.....some things aren't as easy to peice together....and since you obviously already know the answer...why cna't ya just help a guy out??
|
Arrggh
So sorry for forgetting about this. I have changed jobs and lost the code. I will re-do it and *promise* to post everything I have done. Cheers, veedee |
I tryed it for myself, but I have a little problem. I added the following code into register.php:
PHP Code:
Now my problem: If I set $adminemail=1 it becomes NO. If I set $adminemail=0 it becomes NO. WHY?? :confused: Please help. |
I have made enough excuses. Here is another one. I was made redundant and forgot about all this stuff. I need this for my site and will spend the rest of the day gathering info on this. I will post up any updates.
Cheers, Ben |
ok here goes...
In global.php add PHP Code:
PHP Code:
Code:
<script language="javascript"><!-- This will pop file.php up. Now to make file.php Try this: Code:
<html> Does this help? Ben |
Thank you very much!! :up:
|
Great - Now all I need to work out is how to make the pop up only pop up once per user visit. I would also like to make it pop up in a nicer looking window.
Hmmm can we get together on this one ? |
For the windowsize: How about a little change in your head_expressreg template:
Code:
<script language="javascript"> |
Superb!
How do I set a cookie. I have had a go but it doesn't work. Any code going? Cheers! Ben |
How to set a cookie:
Code:
<script language="javascript"> |
Ok, I have the popup working perfectly. It is adding the user to the database and everything. However, when you fill out the fields and click submit nothing happens. How do I make the page forward you to a thank you screen or back to the forums so they know they have registered successfully? Here is my file.php file
<html> <title>Welcome to sportcompactracing.com - register today</title> <head> <STYLE type=text/css> .nf { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt } .sf { font-family: verdana,arial,helvetica,sans-serif; font-size: 8pt; color: #ffffff; } </style> </head> <body bgcolor="#000000"> <!-- content table --> <font class="sf">Registration is required if you want to post messages on sportcompactracing.com</font> <table bgcolor="#000000" width="100%" cellpadding="10" cellspacing="0" border="0"><tr><td> <form action="http://www.sportcompactracing.com/vbulletin/register.php" method="post"> <input type="hidden" name="s" value=""> <table border="0" cellspacing="1" cellpadding="4" width="100%" bgcolor="#555576"> <!-- *** --> <tr> <td bgcolor="#0000ee" colspan="2"><font face="verdana" size="2" color="#ffffff" class="thtcolor"><b>Registration</b></font> <font face="verdana" size="1" color="#ffffff" class="thtcolor">(*) fields are required. Please note that passwords are case sensitive.</font></td> </tr> <!-- *** --> <tr> <td bgcolor="#AAAAE6"><font class="nf"><b>*User Name:</b></font></td> <td bgcolor="#AAAAE6"><font class="nf"><input type="text" name="username" size="25" maxlength="15"></font></td> </tr> <tr> <td bgcolor="#C3C3EB"><font class="nf"><b>*Password:</b></font></td> <td bgcolor="#C3C3EB"><font class="nf"><input type="password" name="password" size="25" maxlength="15"></font></td> </tr> <tr> <td bgcolor="#C3C3EB"><font class="nf"><b>*Enter Password Again:</b></font></td> <td bgcolor="#C3C3EB"><input type="password" name="passwordconfirm" size="25" maxlength="15"></td> </tr> <tr> <td bgcolor="#AAAAE6"><font class="nf"><b>*Email:</b></font><br> <font color="#000000" face="verdana" size="1">Please enter a <b>valid</b> email address.</font></td> <td bgcolor="#AAAAE6"><font class="nf"><input type="text" name="email" size="25" maxlength="50"></font></td> </tr> <tr> <td bgcolor="#AAAAE6"><font class="nf"><b>*Enter Email Again:</b></font></td> <td bgcolor="#AAAAE6"><font class="nf"><input type="text" name="emailconfirm" size="25" maxlength="50"></font></td> </tr> <tr><td bgcolor="#113274"> </td><td bgcolor="#113274"><input type="hidden" name="allowmail" value="yes"> <input type="hidden" name="invisible" value="no"> <input type="hidden" name="showemail" value="yes"> <input type="hidden" name="cookieuser" value="yes"> <input type="hidden" name="nosessionhash" value="yes"> <input type="hidden" name="emailonpm" value="yes"> <input type="hidden" name="prunedays" value="-1"> <input type="hidden" name="umaxposts" value="-1"> <input type="hidden" name="startofweek" value="1"> <input type="hidden" name="timezoneoffset" value="-5"> <input type="hidden" name="emailnotification" value="yes"> <input type="hidden" name="showsignatures" value="yes"> <input type="hidden" name="showavatars" value="yes"> <input type="hidden" name="showimages" value="yes"> <input type="hidden" name="vbcode" value="yes"> <input type="hidden" name="pmpopup" value="yes"> <input type="hidden" name="receivepm" value="yes"> <input type="hidden" name="url" value="http://www.sportcompactracing.com/vbulletin/thankyou.html"> <input type="hidden" name="action" value="addmember"> <input type="submit" name="Submit" value="Submit"> <input type="reset" name="Reset" value="Reset"></td> </tr></font> </td></tr></table> </form> <font class="sf">By pressing the registration button above you declare that you have read and agree with the <a href="/" target="blank">Community Guidelines</a></font> <!-- End content area table --> </td></tr></table> </body> </html> |
you could also try my vbPopup hack and insert in the template there only the username password and email. keep the rest of inputs hidden. alot faster and i would say more elegant? is up to you to judge.
regards, nakkid. |
Ok as an extension of this I want to make the location a required feild - if I do this then the quick regstration from above will no longer work - what do I need to add to it to make it also submit the location??
|
All times are GMT. The time now is 03:12 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|