View Single Post
  #4  
Old 06-29-2009, 09:49 AM
DragonBlade's Avatar
DragonBlade DragonBlade is offline
 
Join Date: May 2006
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Are you kindding, I'd be honored. I've read your posts before, I doubt I would have any margin of error. Thanks.
GWAAAAH HAH HAH! XD I'm turning 30 in a few days, and one thing I've learned is that there's ALWAYS a margin of error, especially where I'm concerned. XP It's just that I'm not afraid to admit my faults and fix the problem.



Quote:
But just to ask. Could someone run multi copies of register.php that was renamed and a edit to VB's index.php or which ever files takes over at that point?
TBH, I have no clue what ye be talking about here. XP



Okay, step 1 is taking a look at and understanding the registration page somewhat. I know you're not a coder, but don't worry, it's not hard.

In "register.php", there is a block of code that begins like this:
PHP Code:
// ############################### start add member ###############################
if ($_POST['do'] == 'addmember')
{
    
$vbulletin->input->clean_array_gpc('p', array(
        
'options'             => TYPE_ARRAY_BOOL,
        
'username'            => TYPE_STR,
        
'email'               => TYPE_STR,
        
'emailconfirm'        => TYPE_STR,
        
'parentemail'         => TYPE_STR,
        
'password'            => TYPE_STR,
        
'password_md5'        => TYPE_STR,
        
'passwordconfirm'     => TYPE_STR,
        
'passwordconfirm_md5' => TYPE_STR,
        
'referrername'        => TYPE_NOHTML,
        
'coppauser'           => TYPE_BOOL,
        
'day'                 => TYPE_UINT,
        
'month'               => TYPE_UINT,
        
'year'                => TYPE_UINT,
        
'timezoneoffset'      => TYPE_NUM,
        
'dst'                 => TYPE_UINT,
        
'userfield'           => TYPE_ARRAY,
        
'showbirthday'        => TYPE_UINT,
        
'humanverify'         => TYPE_ARRAY,
    )); 
This block of code is mainly what we'll be concentrating on. See that list of variables there that vBulletin is cleaning? Well, those are the values that we have to take into account. In other words, those are the values that have to be on the form.



Question before we delve any deeper into this... Is there any way possible that you can put up a stripped-down installation of vBulletin on these sites? See, what we "need*" is vBulletin to be completely set up, but then the values in the "config.php" should be pointing to your server. Specifically, this one:
PHP Code:
$config['MasterServer']['servername'] = 'localhost'
We'll be having to set that to you MySQL Server's IP address.

*NOTE: We do not NEED vBulletin to be set up, but it will make things 100 times easier, because all of the functions and includes are right there. :3 Otherwise, we basically have to re-write some functions, and that'll be a big pain in the ass.

If we can set up vB on that server, then we'll just have to delete the admincp and modcp directories, maybe delete a few of the others, delete all files in the main directory EXCEPT for register.php, and we'll be golden. Then we just have to edit the template for the registration form to include that hidden field I was talking about. (Which I guess we should leave the AdminCP up until AFTER we do that, geh heh heh heh, to make it easier to modify the template.)

(And sorry for the scattered post, I juuust woke up. XD)
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01091 seconds
  • Memory Usage 1,796KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete