View Full Version : Change color post like yahoo responses?
cabiados
02-05-2011, 03:32 AM
Hey guys I would love to know if there is a hack or modification that makes that the post with more "Thanks" of a thread be marked in a color or something like that to remark the importance of the message like in Yahoo Answers.
Thanks
Ariel Blanco
www.cabiados.net
Argentina
BirdOPrey5
02-05-2011, 06:35 PM
This could probably be done with a template edit... You'd need to know what variable the number of thanks is stored in so that is probably dependent on which thanks hack you are using. Let's assume it's $post['thanks'] - I'm just guessing because I don't use a thanks hack...
But if it was that you could edit your postbit/postbit_legacy template...
find the code:
<div class="postbody">
Replace it with:
<div class="postbody" <vb:if condition="$post['thanks'] > 10">style="background-color:yellow;"</vb:if>>
That would change the background to yellow if there were more than 10 thanks.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.