Quote:
Originally Posted by Wolver2
I just see the code kh99 but I am unsure how I implement it into my forum? As I would really love to use the plugin you wrote... Do I need to setup an xml file first for it?
|
You just need to use "Add ew Plugin" under "Plugins & Products" in the adminCP, and
- Choose
newthread_form_complete from the hook location drop-down
- Enter a title so that later you'll remember what it does
- Paste the code in the large box
- Click the "Yes" radio button and hit save
BTW, if you want to have the prefix selected instead of hiding the prefix, you can use this:
Code:
if ($foruminfo['options'] & $vbulletin->bf_misc_forumoptions['prefixrequired'])
{
if (preg_match_all('#<option value="([A-Za-z0-9_]+)"#', $prefix_options, $matches) == 1)
{
$prefix_options = preg_replace('#<option value="([A-Za-z0-9_]+)"#', '\\0 selected="selected"', $prefix_options);
}
}
That only selects one if there's only one and it's required, but you could modify it of course.