![]() |
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? |
Quote:
|
Quote:
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;" />'; |
Hi BananaLive,
( Or anyone that can help.) When I submit the form below ( your example ) to a HTML page , it directs me to a page of smileys located here http://localhost/forum/misc.php?user=bob It seems to cut off the "do=form&fid=1" part but does add the "user=bob" part" I'm kinda stuck on that one. . <form name="form" action="http://localhost/forum/misc.php?do=form&fid=1" method="get"> Username: <input type="text" name="user" /> <input type="submit" value="Submit" /> </form> Another question on this one. Quote:
When you say "use {param} in custom output" I really don't know what that means could someone explain that in a little more detail please ? . Sorry for my inexperience I am willing to pay/donate (to you or to your favorite charity), to anyone who can help me out with this. Thanks, |
Quote:
HTML Code:
<form name="form" action="misc.php" method="get"> PHP Code:
PHP Code:
PHP Code:
|
Thanks again BananaLive,
Let me make sure I'm not wasting your time here, I should do this ? 1.) Use the HTML code on my HTML template 2.) Use the first php code in my hook form start 3.) Use the second php code in my custom output window. 4.) OR use the last php code in place of the third one if I just want to add the field to the end of a form Please correct where I may be wrong in this sequence. Thanks |
Quote:
3.) Use the second php code in Form Hook: Before Submit and then do a custom output |
Hi,
OK , a lot of progress. The field name shows up in the new thread at the end ( prefer that one ) but the value doesn't ( actual name entered in form ) Sorry to be a pain. Thanks |
Quote:
<input type="hidden" name="hiddenfield1" ... /> Is there anything in the value="" part of it? |
I'm looking through the help file for information on the save to database function but don't see anything. Anyone have any tips on what this does and how it works?
|
All times are GMT. The time now is 02:49 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|