Quote:
Originally Posted by Gotmian
Hey, great mod!
Is there a way for me when the email is sent out to include there the username of the member who used the form?
|
You can include {username} in the form if you'd like (perhaps in the title?).
If you'd rather their username appear as the answer to a question, do this:
Create a new question, selecting "Custom" for the type. Name it "Username".
In the code field, enter in:
Code:
$answer = '<input type="text" readonly="readonly" id="q_' . $formbit[id] . '" name="' . $formbit[id] . '" value="' . $vbulletin->userinfo[username] . '" style="background:silver;" />';
Then their username is sent in like it is the answer to a question in the form, and they cannot change it.