Back to vBulletin 3.6 Add-ons

Thread Description
Mod Version: 1.00, by TrucLinh

This modification is in the archives.
vB Version: 3.6.1 Rating: (3 votes - 5.00 average) Installs: 42
Released: 28 Sep 2006 Last Update: Never Downloads: 150
Not Supported Uses Plugins Template Edits  

DL / Unpacking the attachment:

. UpLoad includes\xml\product-thread_description.xml
. UpLoad images\strela_w.gif

Installation Instructions:

. Login to Admin CP
. Choose Plugin System
. Choose [Add/Import Product]
. Choose product-thread_description.xml
. Click [ Import ]

Modify templates: (5 templates)

. Open
threadbit template, Find:
HTML Code:
            <if condition="$show['threadratings'] AND $show['threadrating']"><span style="float:$stylevar[right]"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" border="0" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" /></span></if>
. Below add:
HTML Code:
            <if condition="$thread[description] != ''"> <img class="inlineimg" src="$stylevar[imagesfolder]/strela_w.gif" border="0" alt=""><span class="time"><em>$thread[description]</em></span> <br /> </if>

. Open
search_results_postbit template, Find:
HTML Code:
        <div class="smallfont" style="float:$stylevar[right]">
            $vbphrase[views]: <strong>$post[views]</strong>
        </div>
. Below add:
HTML Code:
        <if condition="$post[description] != ''">
        <div class="smallfont">
            $vbphrase[description]:
        <span class="time">$post[description]</span>
        </div>
        </if>

. Open
editpost template, Find:
HTML Code:
        <!-- subject field -->
        <table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px">
        <tr>
            <td class="smallfont" colspan="3">$vbphrase[title]:</td>
        </tr>
        <tr>
            <td><input type="text" class="bginput" name="title" value="$title" size="50" maxlength="85" tabindex="1" title="$vbphrase[optional]" /></td>
            <td>&nbsp;&nbsp;</td>
            <td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td>
        </tr>
        </table>
        <!-- / subject field -->
. Below add:
HTML Code:
        <if condition="$isfirstpost"><!-- description field -->
        <table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px">
        <tr>
        <td class="smallfont" colspan="3">$vbphrase[description]: <span class="time">($vbphrase[optional])</span></td>
        </tr>
        <tr>
        <td>
        <input type="text" class="bginput" name="description" value="$description" size="50" maxlength="100" tabindex="1" title="$vbphrase[optional]" />
        <if condition="$vbulletin->GPC[advanced] OR $vbulletin->GPC[preview]"><input type="hidden" name="desc_adv" value="1" /></if>
        </td>
        </tr>
        </table>
        <!-- / description field --></if>

. Open
threadadmin_editthread template, Find:
HTML Code:
        <!-- subject field -->
        <table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px">
        <tr>
            <td class="smallfont" colspan="3">$vbphrase[title]:</td>
        </tr>
        <tr>
            <td><input type="text" class="bginput" name="title" value="$threadinfo[title]" size="50" maxlength="85" tabindex="1" title="$vbphrase[optional]" /></td>
            <td>&nbsp;&nbsp;</td>
            <td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td>
        </tr>
        </table>
        <!-- / subject field -->
. Below add:
HTML Code:
        <!-- description field -->
        <table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px">
        <tr>
        <td class="smallfont" colspan="3">$vbphrase[description]: <span class="time">($vbphrase[optional])</span></td>
        </tr>
        <tr>
        <td><input type="text" class="bginput" name="description" value="$threadinfo[description]" size="50" maxlength="100" tabindex="1" /></td></tr>
        </table>
        <!-- / description field -->

. Open
newthread template, Find:
HTML Code:
        <!-- subject field -->
        <table cellpadding="0" cellspacing="0" border="0" class="fieldset">
        <tr>
            <td class="smallfont" colspan="3">$vbphrase[title]:</td>
        </tr>
        <tr>
            <td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="85" tabindex="1" /></td>
            <td>&nbsp;&nbsp;</td>
            <td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td>        </tr>
        </table>
        <!-- / subject field -->
. Below add:
HTML Code:
        <!-- description field -->
        <table cellpadding="0" cellspacing="0" border="0" class="fieldset">
        <tr>
        <td class="smallfont" colspan="3">$vbphrase[description]: <span class="time">($vbphrase[optional])</span></td>
        </tr>
        <tr>
        <td><input type="text" class="bginput" name="description" value="$description" size="40" maxlength="100" tabindex="1" /></td></tr>
        </table>
        <!-- / description field -->
Thats all!

. Enjoy!

Download

This modification is archived, downloads are still allowed.

File Type: %1$s thread_description.zip (2.0 KB, 283 downloads)

Screenshots

Click image for larger version
Name:	Screenshots-1.gif
Views:	999
Size:	16.5 KB
ID:	54029  

Similar Mods

Show Thread Enhancements Thread Description Modification Graveyard

vblts.ru supports vBulletin®, 2022-2024