Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 06-28-2009, 10:54 PM
Bill from Cleve Bill from Cleve is offline
 
Join Date: Sep 2008
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Multiple registration pages for different usergroups?

Does anyone know how to setup or knows of a hack that will allow me to have mutable registration pages that I can assign to links directed back to my site?
I have a few dedicated links posted on different types of websites. I want to see if there is a way to have a different registration page made for each site and will assign a different usergroup based on each link.. Basically multiple default usergroups assigned to multiple registration links "register.php defaults to membergroup and register2.php defaults to membergroup2.php”
The problem I have is many different types of people come to my site. For the people that like something like heavy metal and are coming from a link posted on a heavy metal website, it will direct them to lets say "register3.php" that has "membergroup3" already assigned as the default.. So let’s say Mary poppins from site another linked site registers, she gets a nice friendly theme and doesn’t get a SLAYER theme.
I was looking around and didn't find any solutions yet. Any help would be greatly appreciated. I will also be willing to pay. So PM me please if you are selling such a service.
Reply With Quote
  #2  
Old 06-28-2009, 11:16 PM
DragonBlade's Avatar
DragonBlade DragonBlade is offline
 
Join Date: May 2006
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I dunno if I'd wanna do it for pay, but I'd be willing to help YOU do it. :P

And yes, it's very possible to do. First, you've have to make sure you can allow outside sites access to your database (the sites that you want to place the registration page on in particular).

Next, you'd put a hidden form element in the registration form on each page with the usergroup ID that you want someoen to belong to.

Finally, you'd make a plugin that would assign said usergroup to an individual upon registration. :3 Pretty simple, and I'll help walk you through the steps if you're patient.
Reply With Quote
  #3  
Old 06-29-2009, 01:19 AM
Bill from Cleve Bill from Cleve is offline
 
Join Date: Sep 2008
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DragonBlade View Post
Well, I dunno if I'd wanna do it for pay, but I'd be willing to help YOU do it. :P

And yes, it's very possible to do. First, you've have to make sure you can allow outside sites access to your database (the sites that you want to place the registration page on in particular).

Next, you'd put a hidden form element in the registration form on each page with the usergroup ID that you want someoen to belong to.

Finally, you'd make a plugin that would assign said usergroup to an individual upon registration. :3 Pretty simple, and I'll help walk you through the steps if you're patient.
Are you kindding, I'd be honored. I've read your posts before, I doubt I would have any margin of error. Thanks.

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? I know nothing about programing, but it just kinda seems to fit. Dunno. Any help will would be great. I will owe you one. :up:
Reply With Quote
  #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
  #5  
Old 09-01-2011, 04:16 AM
chrymo chrymo is offline
 
Join Date: Aug 2011
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know this is an old thread, but I think I am looking for the same process to do this too...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:18 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.03791 seconds
  • Memory Usage 2,217KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete