PDA

View Full Version : Show Thread Enhancements - Thread Description


TrucLinh
09-27-2006, 10:00 PM
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
09-28-2006, 04:57 AM
awesome hack...was waiting for this ;)

MrNase
09-28-2006, 06:53 AM
How does it differ from this one: https://vborg.vbsupport.ru/showthread.php?t=126275&highlight=description ?

Snake
09-28-2006, 08:19 AM
Hmm looks like it's all the same to me.

maidos
09-28-2006, 09:01 AM
finally a mods for thread descriptions THANK YOU ^^

wonder if its possible to make the character more visible?

TrucLinh
09-28-2006, 09:28 AM
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
09-28-2006, 09:47 AM
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
09-28-2006, 12:24 PM
<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
09-28-2006, 12:39 PM
You should either provide that image or edit the code.
. ThankS!

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

TrucLinh
09-28-2006, 08:03 PM
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
09-28-2006, 08:10 PM
Tnx for this great and useful hack . it has many template edits but result r perfect :)

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


. Enjoy!

category
10-24-2006, 07:32 PM
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
11-18-2006, 06:10 AM
very nice, but i have 1 request:
please read this:

https://vborg.vbsupport.ru/showthread.php?p=1119904#post1119904

TrucLinh
11-19-2006, 01:45 PM
very nice, but i have 1 request:
please read this:

https://vborg.vbsupport.ru/showthread.php?p=1119904#post1119904


. OK!

. Your request here

. Enjoy!

https://vborg.vbsupport.ru/showthread.php?p=1114500#post1114500

KURTZ
12-02-2006, 11:41 AM
nice hack :)

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

however INSTALED on 3.6.4

KURTZ
12-04-2006, 01:57 PM
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
12-04-2006, 02:54 PM
Installed! Thanks :)

sally27
01-27-2007, 10:26 PM
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
05-16-2008, 12:00 PM
it works well in 3.7 too :)

thanks

Gio Takahashi
05-22-2008, 11:42 AM
Just installed this on VB 3.7. it works without a flaw.

demoniavbh
10-28-2008, 11:22 AM
Just installed this on VB 3.7. it works without a flaw.

Right.

fiestero
11-01-2008, 05:28 AM
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
11-06-2008, 12:34 AM
thanks

fiestero
11-06-2008, 05:42 AM
not goes in 3.7.3 in change

murekhalir
11-14-2008, 03:42 AM
works great~ 3.7

codershark
11-28-2008, 03:05 PM
works fine in 3.8 Beta4

Loget
11-10-2009, 07:52 PM
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
01-15-2011, 12:39 PM
How to show it in showthread template?