![]() |
Quick Registration Form on a non-vB page
Requested Here: https://vborg.vbsupport.ru/showthrea...954#post394954
What does this hack do?
Bugs Found a bug? Please reply back and let me know! Instructions Be sure to place the attached code wherever you want the quick registration form to show up. Enjoy! |
Hack is now complete, enjoy!
|
Hmm...
Nice idea, but I'm not too keen on this: PHP Code:
IMO: PHP Code:
and: PHP Code:
PHP Code:
Satan |
It seems to work fine Gary! I tested it.
Very useful hack. |
Quote:
PHP Code:
The way I've done it is good enough, in my opinion. |
Ok;)
To me it made more sense, but each to his own;) Satan |
I'll be installing this now :D
Perfect for what i want ^^ |
EDIT: NM, i tested it, it just goes back to quickreg.php
|
Just curious. Is it possible to do this without it being on the same domain? I know you can do logins this way so I was curious if it's possible to do this as well.
|
Quote:
|
Quote:
|
Quote:
|
The PHP file that processes the registration could be located somewhere else, just as long as the HTML file has access to it.
|
Could you give me an example? Sorry to bug you but I don't exactly have the greatest of knowledge of this stuff, and it seems you know a LOT about this. (Been viewing a lot of your posts/threads.) ;)
|
Maybe the PHP file is accessible via FTP, or on the same server.
P.S. Why not simply place the PHP file that processes the script, in the same directory as the HTML file, if you don't want to use a PHP file for the quick registration page? |
Quote:
Quote:
The only reason for this is the site receives about 15,000-25,000 unqiue hits per day. The forums have 22,000-some odd members, but we're really looking to expand even more. |
Yes, you can have the form on the HTML page. So, you do not wish to have the form on a .PHP page? That is not at all possible? (May I ask why not?)
You can simply have the PHP file process the actual registration, while the HTML only "tells" the PHP page to register the user. |
So you could use HTML to "call" for the script's form, correct? And the script could be on a separate domain as well, right?
If so, would you find giving an example of the HTML? I have no experience working with forms... : ( |
As long as the PHP script is accessible by the HTML file.
Example that you could use: HTML file PHP Code:
PHP Code:
|
I got a parse error.
http://www.weforums.com/quickreg3.php Only thing I changed was... forum/admin/config.php to forums/admin/config.php |
Try the attached file.
|
http://www.weforums.com/quickreg2.php
http://www.weforums.com/quickreg3.php (blank...?) Strange, the attached file is 3, but 2 is the original file (first post in the thread). |
I got it to work. Thanks a lot! :)
|
<a href="http://www.weforums.com/quickreg3.php" target="_blank">http://www.weforums.com/quickreg3.php</a> is blank because it doesn't output anything, it only processes the registration.
And no problem, glad you got it working. Also, please click on the Install button if you are keeping this hack, thanks! |
Quote:
|
Quote:
i wanted it to go to my site index page, but i'd edited it so it does that now. |
Alright.
|
Any idea how to set the new user to require email confirmation, and also set them to be put in the moderated group once they validate the email address?
|
Warning: main(forum/admin/config.php) [function.main]: failed to create stream: No such file or directory in /home/indeathw/public_html/regester.php on line 21
Fatal error: main() [function.main]: Failed opening required 'forum/admin/config.php' (include_path='.:/usr/local/lib/php') in /home/indeathw/public_html/regester.php on line 21 -that's what i get. All i dont was installed it and link to it. is there more i must do? |
Quote:
|
Nice, nice. Does it
works on 2.3 now? |
Quote:
|
Its a decent hack.
How about the cookie though, so when they go the forum page they don't have to login? Thanks, DJ |
Beauty hack! I changed the redirection to go to a webpage that will link to a credit card processing thing, to enable registration with payment.
|
Great hack. Many thanks!
This one has great potential for my site. One thing that I've been trying to figure out is how to have my form populate a custom userfield on Submit in addition to the basic registration. Could someone please give me some direction on the code for the proper insert to add data to for example my field6 custom field? Ideally, I would add a radio check box on the form for different divisions of a company, so when a user enters their name, pass, and e-mail, they would also pick a division which would add the info to the custom field. Any help is greatly appreciated. Bob |
This is a nice addition very simple, but it should atleast try to prevent automated registrations, or check to see if the user already has an account... i can goto this page if im registered and just keep registering new names.. need to prevent AUTOMATED registrations and the loss of registration checks. Can this be implemented?
|
Thanks for bringing this to my attention, I've fixed it so that only Guests can see this registration form now, instead of everyone. If the user is already registered, then he/she will see a message instead, such as Welcome back Gary! :)
|
so does the form have to be placed on a php page in order for it to only show up to gets, and the welcome text show up to members???
i have tested it on my index.html and the form shows up to everyone. the form iteself works great, i just don't want it showing up to everyone. -jeff |
Yeah, it will only work on a PHP page because it uses PHP functions.
|
Will this work for vB3?
|
All times are GMT. The time now is 06:08 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:
|