Thanks again for the quick reply!
Given I enter the prefix strings into the admin panel using the same HTML as below, would this code work and apply a thread prefix? Below is an excerpt from the Form Hack mod which I'm trying to adapt to my 3.7 installation.
PHP Code:
if ($radioanswer1 == "Selling")
{
$prefix == "<span style="color: green"><b>For Sale</span>:</b>"
}
if ($radioanswer1 == "Trading")
{
$prefix == "<span style="color:darkgreen"><b>For Trade</span>:</b>"
}
if ($radioanswer1 == "Selling or Trading")
{
$prefix == "<span style="color:darkgreen"><b>For Sale or Trade</span>:</b>"
}
...
PHP Code:
$newpost['username'] =& $vbulletin->userinfo['username'];
$newpost['message'] =& $formsend;
$newpost['title'] =& $posttitle;
$newpost['prefix_rich'] =& $prefix;
$newpost['parseurl'] = '1';
$newpost['poststarttime'] = $poststarttime;
$newpost['posthash'] = $posthash;
...
--------------- Added [DATE]1216664523[/DATE] at [TIME]1216664523[/TIME] ---------------
Edit: it looks like I need to use the $newpost[prefixid] variable instead, from what I can tell!
--------------- Added [DATE]1216682829[/DATE] at [TIME]1216682829[/TIME] ---------------
Got everything working now- see here for more details:
https://vborg.vbsupport.ru/showthrea...51#post1580951
Now the Form Hack will be able to add prefixes to the threads it creates as well.