Quote:
Originally Posted by bananalive
This requires Easy Forms v3.3
Add this into postbit template somewhere (or postbit_legacy)
HTML Code:
<a href="misc.php?do=form&fid=2&username=$post[username]">Trade with $post[username]</a>
Import attached file.
form Hook: Form start
PHP Code:
$hiddenfield1 = $vbulletin->input->clean_gpc('g', 'username', TYPE_NOHTML); if (empty($hiddenfield1)) { $errormessage = "Error, this form needs a username."; eval('print_output("' . fetch_template('STANDARD_ERROR') . '");'); }
form Hook: Before Submit
PHP Code:
$hiddenfield1 = $vbulletin->input->clean_gpc('p', 'hiddenfield1', TYPE_NOHTML); $formoutput = str_replace('{param}', "$hiddenfield1", $formoutput);
Then you can use {param} in custom output.
if you don't want to use custom output then add a custom question with php code:
PHP Code:
$answer = '<input type="text" readonly="readonly" id="q_' . $formbit[id] . '" name="' . $formbit[id] . '" value="' . $hiddenfield1 . '" />';
|
When the member clicks the link how can I make it so the form shows the name of the person the member is going to trade with....I just would like it so the person can see something like 'Trading With: that members name' - I dont want there to be confusion when they are filling out the form now knowing if they have the right name.
****** Scratch this one - I got all to work but im just tinkering with it to figure out how to get the {parm} into the thread title
Ok I tried and I cannot figure out how to get that hiddenvalue into the thread title - the {param} varible works in the form itself but not in the thread title