Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 10-26-2014, 04:47 PM
KGodel's Avatar
KGodel KGodel is offline
 
Join Date: May 2011
Location: Indiana
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Post on Registration

Hello everyone! If you can't tell or didn't already know, I run a gaming community/clan. Our current process to become a member is to first register, then fill out an application. Many members stop at the registration phase (even though it says there is another form AND redirects them) thinking that this is the end. While it's not rocket science to read one sentence and wait for a redirect, it can be tedious for applicants. I'd like to figure out some way to merge the processes, where the application questions would be displayed at registration and a post submitted when the person clicks register, or append the questions to the end with the same result, a post is made in our application forum.

I'm not expecting anyone to do this for me, but I figured this was the best place to get started on something like this. I've been doing some nifty (probably basic to everyone who has kept up) things for my staff to make it easier for them and enhance our user experience, but messing with a core function like registration is a new step for me. Any help or direction on how to proceed is welcome!

(If there is already a mod that does this, forgive me, I didn't find it!)

[If you want to design this for me for free, I will be your best friend forever]

Thanks in advance guys!
Reply With Quote
  #2  
Old 10-26-2014, 05:15 PM
vBNinja's Avatar
vBNinja vBNinja is offline
 
Join Date: May 2011
Location: USA
Posts: 239
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Theres this https://vborg.vbsupport.ru/showthread.php?t=305915
You can modify it to use data from the user fields
Reply With Quote
Благодарность от:
CAG CheechDogg
  #3  
Old 10-26-2014, 05:45 PM
KGodel's Avatar
KGodel KGodel is offline
 
Join Date: May 2011
Location: Indiana
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That works I guess, but the questions on our application aren't necessarily ones we want to keep as profile fields, a lot is one-time use stuff.
Reply With Quote
  #4  
Old 10-26-2014, 09:03 PM
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Location: Riverside, California USA
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I use the welcome new member

[OzzModz] Welcome Thread / Post For New Users

And this one by

VSa - Auto Reply

It does the job for our forums , the auto reply lets people know what to do and then they go ahead and submit the application and they use the thread created for them as their intro thread once the register ...
Reply With Quote
  #5  
Old 10-26-2014, 09:27 PM
vBNinja's Avatar
vBNinja vBNinja is offline
 
Join Date: May 2011
Location: USA
Posts: 239
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in that case the easiest way to go about it is edit your register template and add the input fields, give them specific names or maybe put all of them related to your application in an array like:
<input type="text" name="myapplication[question1]" />
<textarea rows="4" cols="50" name="myapplication[question2]"></textarea>
etc...

then edit the plugins ozzy used to post the welcome threads and catch the data for your application fields like:
PHP Code:
$myapplication $vbulletin->input->clean_gpc('p''myapplication'TYPE_ARRAY); 
$myapplication will then be an array holding all the data you need and its keys are the same as what you gave your input fields
ex. $myapplication['question1'] would have the data for question 1

I would then create a new template to format your application and register the $myapplication array to it so you can use the fields data in it such as {vb:raw myapplication.question1}

if you're confused, it would looks something like:
PHP Code:
$app_templater vB_Template::create('application_format');
$app_templater->register('myapplication'$myapplication);
$threaddm->do_set('pagetext'$app_templater->render(true)); 
Reply With Quote
Благодарность от:
KGodel
  #6  
Old 10-26-2014, 10:34 PM
KGodel's Avatar
KGodel KGodel is offline
 
Join Date: May 2011
Location: Indiana
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think I'll use the beginning part of your suggestion. I don't know anything about creating new templates to use raw data, so as long as I can get the array inputs and use them as $myapp['q1'] or whatever that should be great.

Final thing, I'd like the make the post that is made register as from the new user, not from me or some external user. Can I catch the new user's ID and pass that along with the form so I can set the user somehow?
Reply With Quote
  #7  
Old 10-26-2014, 10:47 PM
vBNinja's Avatar
vBNinja vBNinja is offline
 
Join Date: May 2011
Location: USA
Posts: 239
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes just use this
PHP Code:
$threaddm->do_set('postuserid'$vbulletin->userinfo['userid']);
$threaddm->do_set('ipaddress'$vbulletin->userinfo['ipaddress']);
$threaddm->do_set('userid'$vbulletin->userinfo['userid']);
$threaddm->do_set('username'$vbulletin->userinfo['username']); 
Reply With Quote
  #8  
Old 10-26-2014, 10:50 PM
KGodel's Avatar
KGodel KGodel is offline
 
Join Date: May 2011
Location: Indiana
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do I use that in the hook at the same place I add the app data array in? If so I'll try it out and post here if I screw something up, which is pretty likely. Haha.

Edit: I got everything to work! Thanks for the help guys! You're awesome!
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 07:32 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04694 seconds
  • Memory Usage 2,237KB
  • 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
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (2)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete