PDA

View Full Version : Show Thread Enhancements - Thread Description


TrucLinh
28 Sep 2006, 06:39
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:
<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:
<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:
<div class="smallfont" style="float:$stylevar[right]">
$vbphrase[views]: <strong>$post[views]</strong>
</div> . Below add:
<if condition="$post[description] != ''">
<div class="smallfont">
$vbphrase[description]:
<span class="time">$post[description]</span>
</div>
</if>
. Open editpost template, Find:
<!-- 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:
<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:
<!-- 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:
<!-- 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:
<!-- 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:
<!-- 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!

Ronak
28 Sep 2006, 06:57
awesome hack...was waiting for this ;)

MrNase
28 Sep 2006, 08:53
How does it differ from this one: http://www.vbulletin.org/forum/showthread.php?t=126275&highlight=description ?

Snake
28 Sep 2006, 10:19
Hmm looks like it's all the same to me.

maidos
28 Sep 2006, 11:01
finally a mods for thread descriptions THANK YOU ^^

wonder if its possible to make the character more visible?

TrucLinh
28 Sep 2006, 11:28
You looking inside the Instructions before you g... say ok!

eXtremeTim files *.xml & Instructions Template changes are the same with my ?

Hmm you g... say you're a Coder!

Hmm how does it differ from Invision - ?

///////////////////////////////////////////////////////

I'm new here.

I want to learn, more then to talk!

I don't want to reply some... like this!

Ignore you g...

TrucLinh
28 Sep 2006, 11:47
finally a mods for thread descriptions THANK YOU ^^

wonder if its possible to make the character more visible?

It's ctrl by the CSS in side the Admin CP "change the css class 2 what [#xxxxxx] you need"
<span class="time"><em>$thread[description]</em></span>

. Enjoy!

steelerwatch
28 Sep 2006, 14:24
<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>

You should either provide that image or edit the code.

TrucLinh
28 Sep 2006, 14:39
You should either provide that image or edit the code.
. ThankS!

drdeathuk69
28 Sep 2006, 21:34
I did as what was said and mine comes up ok but whats the image for? and where does it go

TrucLinh
28 Sep 2006, 22:03
I did as what was said and mine comes up ok but whats the image for? and where does it goThe img strela_w.gif go to your forum images dir.

Mecho
28 Sep 2006, 22:10
Tnx for this great and useful hack . it has many template edits but result r perfect :)

TrucLinh
28 Sep 2006, 22:55
Tnx for this great and useful hack . it has many template edits but result r perfect :)


. Enjoy!

category
24 Oct 2006, 21:32
this hack doesnt work when you upload want to edit a post you made and save it it gives you : Table '----' doesn't exist

erjavid
18 Nov 2006, 08:10
very nice, but i have 1 request:
please read this:

http://www.vbulletin.org/forum/showthread.php?p=1119904#post1119904

TrucLinh
19 Nov 2006, 15:45
very nice, but i have 1 request:
please read this:

http://www.vbulletin.org/forum/showthread.php?p=1119904#post1119904


. OK!

. Your request here

. Enjoy!

http://www.vbulletin.org/forum/showthread.php?p=1114500#post1114500

KURTZ
02 Dec 2006, 13:41
nice hack :)

only a question: is it possibile to edit the description?

however INSTALED on 3.6.4

KURTZ
04 Dec 2006, 15:57
Database error in vBulletin 3.6.4:

Invalid SQL:
UPDATE thread SET description = '' WHERE threadid = '63';

MySQL Error : Table 'SqlXXXX_X.thread' doesn't exist
Error Number : 1146
Date : Monday, December 4th 2006 @ 04:55:43 PM
Script : http://www.XXXX.com/board/editpost.php?do=updatepost&p=192
Referrer : http://www.XXXX.com/board/editpost.php?do=editpost&postid=192
IP Address : XXXXXX
Username : MR K
Classname : vb_database

this happends when i try to edit (advanced) thread

PS. Kurtz clicks UNISTALL :(

sunnycher
04 Dec 2006, 16:54
Installed! Thanks :)

sally27
28 Jan 2007, 00:26
I have installed this hack countless times but for some reason the Image won't show up on the post. I'm stumped as I have checked to see if it's uploaded to the right directory etc and it is.

Help?

Mecho
16 May 2008, 14:00
it works well in 3.7 too :)

thanks

Gio Takahashi
22 May 2008, 13:42
Just installed this on VB 3.7. it works without a flaw.

demoniavbh
28 Oct 2008, 13:22
Just installed this on VB 3.7. it works without a flaw.

Right.

fiestero
01 Nov 2008, 07:28
thank you very much, but there is a way for me to come out on the title of the blue bar of your browser? but neither google leaves ..
forgiveness for my English I am Spanish

raja811
06 Nov 2008, 02:34
thanks

fiestero
06 Nov 2008, 07:42
not goes in 3.7.3 in change

murekhalir
14 Nov 2008, 05:42
works great~ 3.7

codershark
28 Nov 2008, 17:05
works fine in 3.8 Beta4

Loget
10 Nov 2009, 21:52
Hello,

I don't want the thread description to be italic nor do I want it to be green, is it possible if I can remove the italics and change the font colour to white? I'd appreciate some help!

Thanks.

phoenix1977
15 Jan 2011, 14:39
How to show it in showthread template?