The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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! |
#2
|
||||
|
||||
Theres this https://vborg.vbsupport.ru/showthread.php?t=305915
You can modify it to use data from the user fields |
Благодарность от: | ||
CAG CheechDogg |
#3
|
||||
|
||||
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.
|
#4
|
||||
|
||||
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 ... |
#5
|
||||
|
||||
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:
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:
|
Благодарность от: | ||
KGodel |
#6
|
||||
|
||||
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? |
#7
|
||||
|
||||
Yes just use this
PHP Code:
|
#8
|
||||
|
||||
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! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|