What does this hack do?
This hack allows you to add more fields to your threads besides just the title and message. This is extremely usefull in order to
specify certain things in a thread in a way that people are more aware of it and such. There are several types of fields you can add
and several features for the hack.
Step 1. Import the following product: product-extra_threadfields.xml
Step 2. Upload the files in the upload folder.
Step 3. Do the edits located below
Step 4. Edit the newly added options in admincp as you please
Step 5. Enjoy the hack.
############# Do The Following In The NEWTHREAD template ##############
Code:
Search For:
<td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="85" tabindex="1" /></td>
<td> </td>
<td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td> </tr>
Add Below:
$extrathreadfields
############# Do The Following In The threadadmin_editthread template ##############
Code:
Search For:
<tr>
<td><input type="text" class="bginput" name="title" value="$threadinfo[title]" size="50" maxlength="85" tabindex="1" title="$vbphrase[optional]" /></td>
<td> </td>
<td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td>
</tr>
Add Below:
$extrathreadfields
############# Do The Following In The postbit or postbit_legacy template ##############
Code:
Search for:
<if condition="$post['title']"><strong>$post[title]</strong></if>
Add below:
<if condition="$post[postcount] == '1' ">
<div align="right">$extrafields</div>
</if>
############# Do The Following In The threadbit template ##############
Code:
Search for:
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]&page=$thread[totalpages]$thread[highlight]">$vbphrase[last_page]</a></if>)</span></if>
</div>
Add below:
$extrafields
Is testet with 3.7.0 Beta 4 an it works