vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Quick Registration Form on a non-vB page (https://vborg.vbsupport.ru/showthread.php?t=53070)

Gary King 05-17-2003 10:00 PM

Quick Registration Form on a non-vB page
 
Requested Here: https://vborg.vbsupport.ru/showthrea...954#post394954

What does this hack do?
  • It allows people to register at your website (to your vBulletin board) on a non-vBulletin page
  • It provides a much quick method of registration, compared to the usual way
  • only Guests can see this registration form. If the user is already registered, then he/she will see a message instead, such as Welcome back Gary!

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!

Gary King 05-18-2003 01:21 PM

Hack is now complete, enjoy!

Chris M 05-18-2003 02:49 PM

Hmm...

Nice idea, but I'm not too keen on this:

PHP Code:

mysql_query

idea...

IMO:
PHP Code:

$DB_site->query

is better;)

and:

PHP Code:

if ($redirect=="yes") { 

should be
PHP Code:

if ($_GET['redirect']=="yes") { 

:)

Satan

Franki 05-18-2003 03:33 PM

It seems to work fine Gary! I tested it.
Very useful hack.

Gary King 05-18-2003 03:46 PM

Quote:

Today at 11:49 AM hellsatan said this in Post #3
Hmm...

Nice idea, but I'm not too keen on this:

PHP Code:

mysql_query

idea...

IMO:
PHP Code:

$DB_site->query

is better;)

and:

PHP Code:

if ($redirect=="yes") { 

should be
PHP Code:

if ($_GET['redirect']=="yes") { 

:)

Satan

For
PHP Code:

$DB_site->query(); 

, I'd either have to define the class and create the object for it, or include /forum/global.php

The way I've done it is good enough, in my opinion.

Chris M 05-18-2003 04:15 PM

Ok;)

To me it made more sense, but each to his own;)

Satan

Nebby 06-02-2003 01:16 AM

I'll be installing this now :D

Perfect for what i want ^^

Nebby 06-02-2003 01:19 AM

EDIT: NM, i tested it, it just goes back to quickreg.php

WEForums 06-02-2003 02:28 AM

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.

Gary King 06-02-2003 07:04 PM

Quote:

Yesterday at 11:28 PM WEForums said this in Post #9
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.
Yes, it is. Some minor modifications would have to be made to the file, though. For example, the config.php variables would not be accessible, so you would have to add those manually.


All times are GMT. The time now is 10:09 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
  • Page Generation 0.01047 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete