I got this working for 4.2.1. Thank you for this plugin. It saved many hours.
I'm no vBulletin programmer but I can hack my way through. Here were my steps:
Upload the contents of the 4.X.X zip file to admin, includes, pics directories.
Admin CP -> Plugins & Products -> Manage Products -> Add/Import Product
Browse to product-custom_thread_forms.xml
Admin CP -> Plugins & Products -> Plugin Manager -> Disable Template Changes - newthread_form_complete
Admin CP -> Settings -> Options -> Custom Thread Field Settings -> Edit -> Enable Custom Thread Fields -> Yes
Admin CP -> Settigns -> Options -> Custom Thread Field Settings -> Edit -> Template Changes -> No
Admin CP -> Forums & Moderators -> Threads Field Manager -> Add a new Field
Admin CP -> Styles & Templates -> Search in Templates -> Search for newthread -> Select newthread -> Customize
--Find this code in the newthread template--
-----------------------
{vb:raw messagearea}
-----------------------
--Below Add--
-----------------------
<vb:if condition="$custom_form">
<BR>
<fieldset>
{vb:raw custom_form}
</fieldset>
<BR>
</vb:if>
-----------------------
-- Optional Steps --
--I like my new field above the text area {vb:raw messagearea} so I did this and used a new blockrow:
<div class="blockrow">
<vb:if condition="$custom_form">
<fieldset>
{vb:raw custom_form}
</fieldset>
</vb:if>
</div>
-- I also wanted my field displayed in front of the message so I updated the plugin:
Admin CP -> Plugins & Products -> Plugin Manager -> Custom Thread Forms [newthread_post_start - newthread_post_start -> Edit
-- Find
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "$break $custom_message";
-- Replace with
$vbulletin->GPC['message'] = $custom_message."<BR><BR>".$vbulletin->GPC['message'];
Thanks again for the plugin! Hope this helps!!
Chuck
|