Quote:
2. I'd like to be able to include, in the thread title, the username of the person filling out the form. (i.e., "Application submitted by [username]"). I've seen something similiar to this posted previously but I couldn't get it to work.
|
Using what was previously posted I managed to make this work. I'll provide the how to so its all in one post. All of the below is accomplished in the hook:
after
Code:
if ($_REQUEST['do'] == $formname)
{
add
Code:
$bbuserinfo = $vbulletin->userinfo;
In Part 2 of the variables add
Code:
$user_name = $bbuserinfo[username];
Example of formtitle
Code:
$formtitle = "Application for - $user_name";
Credit goes to ChrisBaktis and R.Caldwell for their previous discussion concerning this question.