vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   how do you pass custom variables to register template (https://vborg.vbsupport.ru/showthread.php?t=266989)

go2phil 07-17-2011 10:13 PM

how do you pass custom variables to register template
 
This might be a dumb question, but what is the process for passing custom variables to the register.php page?

For example, let's say someone tries to login and you want to auto-populate the registration page with the username and password that the user attempted to login with?

I've tried using $vbulletin->session, $vbulletin->userinfo, making my own variables, and they're all valid until that page loads and then it appears all the information that I had stored in those variables prior to reaching that page seem to be "reset" or wiped out.

I ran into a similar problem with the password and found out that there's a little thing called DISABLE_PASSWORD_CLEARING in class_bootstrap.php that was preventing the passfield from getting passed so I could look at it later...I'm wondering if there's a similar thing happening with the register.php file that I'm not seeing.

Any suggestions?

--------------- Added [DATE]1310950360[/DATE] at [TIME]1310950360[/TIME] ---------------

If I'm not mistaken it looks like vbulletin runs through the entire init process before it hits the register.php page...?

kh99 07-18-2011 01:32 PM

I'm not sure what you're asking exactly. When you say "passing custom variables" to a page, how exactly are you trying to do that? Are you trying to get values remembered from one .php page to another?

go2phil 07-31-2011 12:03 PM

I was trying to get a value from one page to another page. Since I've posted this I've become much more familiar with the templates and their interactions and have solved this a different way.

Thanks for replying to it though.


All times are GMT. The time now is 08:14 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.03031 seconds
  • Memory Usage 1,708KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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