vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   [vb4 how to]Fetch email just like referral id from url in register form?? (https://vborg.vbsupport.ru/showthread.php?t=232408)

nirvana43 01-07-2010 12:42 AM

[vb4 how to]Fetch email just like referral id from url in register form??
 
Hello
Can anyone tell me how do i set email and confirm email address field on register form, from url?
Just like referral link i.e. http://www.myforum.com/register.php?referrerid=10
I will be generating links as http://www.myforum.com/register.php?...name@email.com
What i wanna do is, just like referralid is taken from url and set in referral field of register form, i wanna take email from url and set it on the filed in register form.
Now i have already done customization till register link with referral id and email generation.
All i wanna know is, how do i catch email id from url...
I mean which files i'm suppose to edit?
And yeah there is "Agree to Forum Rules" thing before registration form actually appears (And i know vbulletin uses cookies to get referral id from actual link or something like that). so please tell me how do i add email to this system?

Detailed instructions are strongly appreciated and helper will get full credits. :)

*****************
P.S. This topic did the perfect trick in vb 3. I would like to know how do we code it for vb4, because in vb4 we gotta pre-register variables to be used in template etc. etc.
Here is code that works perfect in vb 3 :
1. add this plugin in the register_start hook.
PHP Code:

$refferalemail $vbulletin->input->clean_gpc('g''refferalemail'TYPE_STR); 

And replace the email input fields in register template with :
PHP Code:

<tr>
                    <
td>
                        
$vbphrase[email_address]:<br />
                        <
input type="text" class="bginput" name="email" size="25" maxlength="50" value="$refferalemaildir="ltr" />
                    </
td>
                    <
td>
                        
$vbphrase[confirm_email_address]:<br />
                        <
input type="text" class="bginput" name="emailconfirm" size="25" maxlength="50" value="$refferalemaildir="ltr" />
                    </
td>
                </
tr

And the form action in register_rules template with :
PHP Code:

action="register.php?do=register&amp;refferalemail=$refferalemail

*****************

nirvana43 01-11-2010 12:41 AM

anyone??


All times are GMT. The time now is 01:21 PM.

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.00961 seconds
  • Memory Usage 1,727KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete