Log in

View Full Version : Quick Registration Hack


The_Cyberdemon
03-30-2003, 10:00 PM
Well, here's my first, not-too-great hack. I might add stuff to it or something (tell me what i should add), but this is what i have so far.

Basically, when you register, it gives you the choice of either Registering or "quick registering". The Quick register thing has only the required fields, while the other register has all the extra fields. It's pretty pointless, but i've heard from some people that they really hate putting in all that stuff. So, i'll go ahead and post that, here are the directions:

<// - QUICK REGISTRATION INSTRUCTIONS - \\>
Files to Edit: 0
Files to Upload: 1
Templates to Edit: 1
Templates to Add: 1

o---||STEP 1||---o
Open up the attached zip file and upload the file named "quickreg.php" to your vbulletin root directory, NOT THE PORTAL DIRECTORY.
o---||STEP 2||---o
Go to your administration panel, click on templates, the style set you want it on, then do "add custom template."
//--NEW TEMPLATE SPECIFICATIONS--\\
Template Name: quickreg
Template Set: Set: The one you are on
Template:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>$bbtitle Registration</title>
$headinclude
</head>
<body>

$header

<br>
<table cellpadding="2" cellspacing="0" border="0" width="95%" align="center">
<tr>
<td><normalfont>In order to be able to post messages on the $bbtitle forums, you must first register.</normalfont></td>
</tr>
</table>

<br>

<form action="register.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]">

<table cellpadding="0" cellspacing="0" border="0" bgcolor="#0A293E" width="95%" align="center"><tr><td>
<table cellpadding="4" cellspacing="1" border="0" width="100%">
<!-- *** -->
<tr>
<td bgcolor="#1D6AA0" colspan="2"><normalfont color="#EEEEFF" class="thtcolor"><b>Quick Registration Info</b></normalfont>
<smallfont color="#EEEEFF" class="thtcolor">All fields are required. Please note that passwords are case sensitive.</smallfont></td>
</tr>
<!-- *** -->
<tr>
<td bgcolor="#1C5780"><normalfont><b>User Name:</b></normalfont></td>
<td bgcolor="#1C5780"><normalfont><input type="text" class="bginput" name="username" size="25" maxlength="$maxuserlength"></normalfont></td>
</tr>
<tr>
<td bgcolor="#13486D"><normalfont><b>Password:</b></normalfont></td>
<td bgcolor="#13486D"><normalfont><input type="password" class="bginput" name="password" size="25" maxlength="15"></normalfont></td>
</tr>
<tr>
<td bgcolor="#13486D"><normalfont><b>Enter Password Again:</b></normalfont></td>
<td bgcolor="#13486D"><input type="password" class="bginput" name="passwordconfirm" size="25" maxlength="15"></td>
</tr>
<tr>
<td bgcolor="#1C5780"><normalfont><b>Email:</b></normalfont><br>
<smallfont>Please enter a valid email address. You can choose to hide it below in the preferences section.</smallfont></td>
<td bgcolor="#1C5780"><normalfont><input type="text" class="bginput" name="email" size="25" maxlength="50"></normalfont></td>
</tr>
<tr>
<td bgcolor="#1C5780"><normalfont><b>Enter Email Again:</b></normalfont></td>
<td bgcolor="#1C5780"><normalfont><input type="text" class="bginput" name="emailconfirm" size="25" maxlength="50"></normalfont></td>
</tr>
<!-- *** -->
$imageregbit
<!-- *** -->
$customfields_required
<!-- *** -->
</table>
</td></tr></table>

<br>

<table cellpadding="2" cellspacing="0" border="0" width="95%" align="center">
<tr>
<td align="center"><normalfont>
<input type="hidden" name="url" value="$url">
<input type="hidden" name="action" value="addmember">
<input type="submit" class="bginput" name="Submit" value="Submit">
<input type="reset" class="bginput" name="Reset" value="Reset">
</normalfont></td>
</tr>
</table>

</form>

$footer

<script language="Javascript">
<!--
if (document.images.avatarpic != null) {
document.images.avatarpic.src = document.forms[0].avatarsel[document.forms[0].avatarsel.selectedIndex].value;
}
// -->
</script>

</body>
</html>
\\--END NEW TEMPLATE--//
o--||STEP 3||--o
Go to templates -> (your template set) -> Show Thread Templates -> signupadult.
o------------------o
---->FIND ((NEAR THE BOTTOM))<----
<p align="center"><normalfont>
<input type="hidden" name="url" value="$url">
<input type="submit" class="bginput" value="Register">
</normalfont></p>
</form>

---->ADD BELOW THIS<----

<form action="quickreg.php" method="get">
<p align="center"><normalfont>
<input type="hidden" name="$quickphp" value="$quickphp">
<input type="submit" class="bginput" value="Quick Register">
</normalfont></p></form>
o------------------o
o---||STEP 4||---o
Uhh, that's the end.
<\\ - END QUICK REGISTRATION INSTRUCTIONS - //>

Well, i hope i didn't forget any steps, i am forgetful.

Please, help me out by commenting on this hack. Constructive and Hateful comments are welcome.

umm, live demo:
//Registration main (http://www.blindedstorms.com/vb/register.php)\\
//Quick Registration Area (http://www.blindedstorms.com/vb/quickreg.php)\\

have fun with this hack!

FleaBag
03-31-2003, 08:52 PM
Erm, this has already been done by FireFly...

The_Cyberdemon
03-31-2003, 08:56 PM
Today at 10:52 PM GamerForums said this in Post #2 (https://vborg.vbsupport.ru/showthread.php?postid=376112#post376112)
Erm, this has already been done by FireFly...

I think this is different. I've seen a few different kinds. Can i have a link to the old one?

Bane
03-31-2003, 11:23 PM
I dont think chens had the ability for a user to select, but rather for the admin to.

The_Cyberdemon
03-31-2003, 11:26 PM
Oh, and here's the text file

The_Cyberdemon
03-31-2003, 11:28 PM
is that good or bad?
/me laughs

Poggyuk
04-01-2003, 09:29 AM
Great hack!

I was just wondering if it'd be possible to make it like vB3? (The check boxes)? (I'd do it myself, but i'm crap at hacking & keep messing up)

FleaBag
04-01-2003, 01:28 PM
Ah right, I see the difference now...

Dean C
04-01-2003, 05:01 PM
This also is compatible with the new image verification system introduced by Jelsoft by the looks of things too.. Just a tip - post a screenshot :)

- miSt

The_Cyberdemon
04-01-2003, 07:41 PM
Okay:

This also is compatible with the new image verification system introduced by Jelsoft by the looks of things too
The nice part of this is, it does not edit any of the current files. It only adds to them. It should be compatible, i don't see why it wouldn't be. The extra is just another input thing, and the quickregister area is a different file.
I was just wondering if it'd be possible to make it like vB3? (The check boxes)?
CHeck boxes for what, i don't understand.
Okay, here are some screenshots:
..::0==//SCREENSHOT 1\\==0::..
http://www.blindedstorms.com/quickreg.bmp
Quick Registration Form - Where you put in the stuff
..::0==//SCREENSHOT 2\\==0::..
http://www.blindedstorms.com/quickregbutton.bmp
Quick Registration Button - Where you agree or cancel

monstergamer
04-01-2003, 07:59 PM
thanx for the hack
easy to install

:)

The_Cyberdemon
04-01-2003, 09:39 PM
Wow, thank you

Skyrender
04-01-2003, 10:57 PM
Thanks but I've already got firefly's quick registeration hack. You should put this in a text file.

matthepepe
04-02-2003, 12:20 PM
read above there is a text file

Classy
04-03-2003, 04:30 PM
Thank you ... clicked install :D
Works like a charm

FleaBag
04-03-2003, 07:27 PM
I think he meant a text file instead of the instructions on this page...

+Fares+
04-05-2003, 09:42 AM
Thank you ... like it :)

dstruct2k
04-10-2003, 08:36 PM
I really don't think the instructions should be out there like that.... "Illegal" vB users could get it that way. Trust me, they do exist. I was one once... I decided that I loved vB and so I paid for it. It really saves the hassle of getting Jelsoft mad at you!

Oh, and nice hack, I'd be willing to take a crack at making it more "vB3-like" though, with the check-boxes.... I'll see if I can or can't do this and reply once I've tried.

dotagious
04-23-2003, 02:06 AM
I want to install this hack BUT:

I want to make this the ONLY registration method. In other words, I want to remove the standard option and replace it with this version. However, when I try to remove the existing code and replace it with your code (instead of adding it below the existing code), it continues to forward the user to the full registration form. How can I make your quick registration form the only form to be used?

WEForums
04-23-2003, 02:19 AM
Quick registration can be frustrating because members who sign up via this method have all their options off, which causes a lot of confusion by them and a lot of asking questions.

Is there a way to set yes to certain options via this registration method? It'd be nice if there is.

eggz
05-16-2003, 07:56 PM
I'd also like to know what WEForums wants to know.

Thanks
Ollie

insanctus
05-19-2003, 01:42 PM
~ Clicks install....... nice hack.

Alien
05-20-2003, 05:02 PM
Yeah, I'd like to know what WEForums wants to know too! ;)

cYbercOsmOnauT
06-03-2003, 06:00 PM
[x]installed. Nice hack. But I have a problem with the quickregistrationform. On my board guestaccess is restricted and when I click on "Quick register" I get to the "standarderror" page which tells me to first login. :D

Erm, login to register? Kinda paradox :D

eggz
06-04-2003, 07:45 PM
Quick registration can be frustrating because members who sign up via this method have all their options off, which causes a lot of confusion by them and a lot of asking questions.

Is there a way to set yes to certain options via this registration method? It'd be nice if there is.


+

I'd also like to know what WEForums wants to know.


+


Yeah, I'd like to know what WEForums wants to know too!


=

BUMP!

gmarik
06-05-2003, 02:14 PM
This one is more simple than Chen's.
It works as good as his.

WEForums
06-05-2003, 03:37 PM
Okay, since my question got people wondering how to do this, I will explain (since it works now).

Open register.php (and quickreg.php if you want) and find what you want to modify. (For example, if you want admins to always e-mail a user find:

$adminemail=iif($allowmail=="yes",1,0);

and replace it with:

$adminemail=iif($allowmail=="yes",1,1); )

This will override the user option and force it to be yes...even if the user selects no when registering. However, if this does not bother you, it works. (Note that users can change it to NO in their usercp when they are registered.)

djhenry21
06-14-2003, 02:21 AM
06-03-03 at 08:00 PM cYbercOsmOnauT said this in Post #24 (https://vborg.vbsupport.ru/showthread.php?postid=403981#post403981)
[x]installed. Nice hack. But I have a problem with the quickregistrationform. On my board guestaccess is restricted and when I click on "Quick register" I get to the "standarderror" page which tells me to first login. :D

Erm, login to register? Kinda paradox :D


i have the same problem. this doesn't work when guest access is restricted on your boards. any chance on fixing this?

shadowbreed
06-22-2003, 04:31 PM
Same problem here a fix would be greatly appreciated, since i need this to work on a forum where the people don't UNDERSTAND the full registration :D

Alien
06-23-2003, 05:27 AM
Hey, before I install this:

This guest access restriction you're all referring to, I assume you mean you don't allow guests to view the forums etc.?

I allow guest viewing, but have restrictions on what they can DO (like they can't post or view member's list, who's online, etc.), but not a restriction on them viewing the actual site. So this won't be a problem with this hack? :D

insanctus
06-23-2003, 05:32 AM
I have mine so guests can view the board and that is it. And this hack works fine (hope that helps alien)

Alien
06-23-2003, 04:06 PM
Thanks a bunch insanctus, I'll give it a quick test tonight! :)

Alien
06-23-2003, 08:33 PM
When I attempt this in quickreg.php -- It does not work, does it also have to be forced in register.php? My full registrations work perfectly, but my quickreg's won't work, turns off pm's etc. even with the quickreg.php set to 1,1 :(

06-05-03 at 12:37 PM WEForums said this in Post #27 (https://vborg.vbsupport.ru/showthread.php?postid=404793#post404793)
Okay, since my question got people wondering how to do this, I will explain (since it works now).

Open register.php (and quickreg.php if you want) and find what you want to modify. (For example, if you want admins to always e-mail a user find:

$adminemail=iif($allowmail=="yes",1,0);

and replace it with:

$adminemail=iif($allowmail=="yes",1,1); )

This will override the user option and force it to be yes...even if the user selects no when registering. However, if this does not bother you, it works. (Note that users can change it to NO in their usercp when they are registered.)

insanctus
06-23-2003, 11:10 PM
I never had a trouble with it. Only thing I had to alter was the let mods email.

Alien
06-24-2003, 04:33 AM
...and you only altered your quickreg.php file for this to take place? Doesn't seem to work whatsoever for me...

Alien
06-25-2003, 08:05 PM
Anyone? :D

MaDCaT75
08-21-2003, 04:07 AM
In "who's online" it shows "unknown location" is there any way I can fix this? :paranoid:

PixelFx
08-21-2003, 04:17 AM
did anyone fix a issue with the quick register, with the image verification at all?

When I installed it the first time it seemed to install great, however no one could register on my site using it if I had image verification turned on.

has this been fixed, or added in recent month to this hack? I wasn't sure what I would need to hack to update this hack with image verification but other wise its a really cool idea :)

hotshot
12-12-2003, 07:09 AM
Nice hack, however I would like a hidden field that enables emails from Administrator.

Add the following in your template:

<input type="hidden" name="allowmail" value="yes">
<input type="hidden" name="invisible" value="no">
<input type="hidden" name="showemail" value="no">
<input type="hidden" name="cookieuser" value="yes">
<input type="hidden" name="nosessionhash" value="yes">
<input type="hidden" name="receivepm" value="yes">
<input type="hidden" name="emailonpm" value="no">
<input type="hidden" name="pmpopup" value="no">
<input type="hidden" name="prunedays" value="-1">
<input type="hidden" name="umaxposts" value="-1">
<input type="hidden" name="startofweek" value="1">

Areku
02-16-2004, 07:54 PM
HOW COme any1 could call the quickregister php directly and skip the coppa/adult warning?

glo
03-08-2004, 08:42 PM
does this work on a non-vb page?

The_Cyberdemon
03-21-2004, 12:21 PM
Alright, look:
I made this hack (it's not even really a hack) about a year ago. I didn't know what i was doing or anything. I can't guarantee that anything will work the way you want. If something is wrong, just uninstall it. Sorry if i messed anything up.