View Full Version : Forum Display Enhancements - Threadbit Coloring Based on Thread Status
Kirk Y
03-22-2007, 10:00 PM
Threadbit Coloring
thread color threadbit background coloring
What does it do?
This modification will color the threadbit of your threads relative to their status, ie: closed, popular, read, unread. It's my version of the system currently in place here on vBulletin.org.
Installation
1. Upload the attached Product XML file.
2. Follow the instructions in the readme file.
3. Look at the post just below this one for information on customizing the modification.
Screenshots
As I said, this is my take on vB.org's System - so they're fairly similar, but I've attached screenshots because I know people are going to want them anyway. :rolleyes:
Donations
As always, this modification is released to you, the community, to do with as you please at no charge - should you, however, feel compelled to donate funds to me - you may click the "Support Author" button on the panel to the right to do so; it's much appreciated.
Execute this SQL Query to Enable this Option for all your Members
UPDATE userfield SET fieldX = 'Yes, enable.'Note: Remember to add into the SQL Query your Table Prefix if you use one.
Don't forget to Change the X to your Field Number.
If You're Using this Modification
Please Click Install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=142857)
Feel free to Nominate it for MOTM if you'd like as well. :cool:
Kirk Y
03-22-2007, 10:22 PM
Modification Updates
Update: 1.01
Added the ability to Enable/Disable this Modification
Added a Coloring Legend on the Forumdisplay page
Upgrade Instructions
1. Upload the new Product XML File and set Overwrite to "Yes".
2. Replace all instances in your "threadbit" template of: (Don't forget to add in your Field Number!
<if condition="$bbuserinfo['fieldX'] == 'Yes, enable.' AND $status">
With:
<if condition="$bbuserinfo['fieldX'] == 'Yes, enable.' AND $status AND $enable">
3. Find in your "forumdisplay" template:
$forumjump
Add above:
<div class="smallfont" align="left"><strong>$vbphrase[legend]</strong></div>
<table cellpadding="4" cellspacing="1" border="0" width="300" class="tborder" style="table-layout:fixed">
<tr>
<td class="alt1_unread" align="center"><span class="smallfont">$vbphrase[tb_new]</span></td>
<td class="alt1_uposted" align="center"><span class="smallfont">$vbphrase[tb_posted]</span></td>
<td class="alt1_popular" align="center"><span class="smallfont">$vbphrase[tb_popular]</span></td>
<td class="alt1_closed" align="center"><span class="smallfont">$vbphrase[tb_closed]</span></td>
</tr>
</table>
Update: 1.01 (Con'td.)
(As this is just a simple change, I didn't change the Modification's Version #.)
Fixed CSS to improve Browser Compliancy
Upgrade Instructions
1. Replace all instances in your Main CSS - Additional Styling of:
color: #000
With:
color: inherit;
bacanze
03-22-2007, 11:02 PM
Could be very useful, is it easy to modify the colours?
projectego
03-22-2007, 11:13 PM
Thanks for this, acidburn0520. :)
Kirk Y
03-22-2007, 11:15 PM
Could be very useful, is it easy to modify the colours?
Yes, very - there are instructions on doing so in the readme file.
Thanks for this, acidburn0520. :)
You're welcome. :D
Masiello
03-23-2007, 06:25 AM
Hey man, can you make the only one for Threadbit only for who have subscribed the thread?
ninjamaster
03-23-2007, 09:19 AM
thanks m8 nice work
Kirk Y
03-23-2007, 03:19 PM
Hey man, can you make the only one for Threadbit only for who have subscribed the thread?
Sure, I'll make an option for this with the next version.
Rickeo
03-23-2007, 03:59 PM
Sweet been looking for something like this for ages :D
Thanks mate
~Rick~
obmob
03-24-2007, 02:37 AM
Users can choose if they want or not to display colors? oo
Kirk Y
03-24-2007, 02:53 AM
Yes, there's a screenshot of that in the first post.
Thanks for the useful hack! :up:
Quantnet
03-25-2007, 05:05 AM
FINALLYYYYYYYYYYY
Thanks
Quantnet
03-25-2007, 05:46 AM
On another thought,
Which one i can change the color for Posted ? i can only see color for read, unread, unposted, popular, closed.
Got the color shown up but i have to go to User CP -> Disable -> Enable for it to show.
How can i disable and enable for all of my members.
Thanks
Kirk Y
03-25-2007, 07:05 AM
It's the alt1.uposted,alt2.uposted -- it's not unposted; I was just in a hurry and wrote "u" instead of "you".
I'll try and add a feature to globally enable/disable it for all members, but you can enable/disable on a per user basis through the User Options panel.
Quantnet
03-25-2007, 07:15 AM
Oh, very nice...thanks
A global disable/enable will save so much time since i can't do it for each member. Is there a way to do for whole via usergroup ?
Another idea is to have the Legend color table at the bottom of the thread home page so members can understand the color. Just like they have on vb.org
I imagine it would be easy ?
Kirk Y
03-25-2007, 04:18 PM
Ah, I never noticed that Legend -- yes, I'll definitely add that in.
Do you mean you want a way to Allow/Disallow certain Usergroups from using it?
Quantnet
03-25-2007, 05:17 PM
Ah, I never noticed that Legend -- yes, I'll definitely add that in.
Do you mean you want a way to Allow/Disallow certain Usergroups from using it?
Thanks.
You mentioned earlier that you will try to find a way to globally enable/disable the features for all members. As I reported earlier, I have to disable, then enable the option before i can see the change. As of right now, I have to do it for each member individually.
Awesome mod.
Kirk Y
03-25-2007, 07:11 PM
Updated to v1.01 -- see first post for Upgrade Instructions and Specs.
Quantnet, please see the bottom of the Release Post for an SQL Query to use to Enable the Coloring for all your Members.
Quantnet
03-25-2007, 09:42 PM
Thanks very much
The sql is exactly what I need ;)
The new color legend is nice.
I was about to complain that the color didn't show up after i run the SQL but remember about the on/off option.
Look and it was set to off by default . Maybe it should be on by default ?
I'm voting this MOTM.
Kirk Y
03-25-2007, 11:50 PM
Glad it helped - thanks for the nomination, by the way. ;)
I'm not entirely sure how to set it to On by default -- I'll look into it though.
nexialys
03-26-2007, 11:27 AM
i would suggest a change in your css:
color: inherit;
so your css continue to be compliant, but mainly, it will fit all the styles... because if you set a #000 color and the client css is different, you break its color...
Kirk Y
03-26-2007, 04:47 PM
Thanks Nexialys - mod. updated.
Quantnet
03-27-2007, 03:58 AM
Thanks Nexialys - mod. updated.
did you update ?
i didn't get the email notification and when i download the file, it still shows 1.01
Kirk Y
03-27-2007, 07:40 PM
Yeah, details are in first post -- as it was such a minor change, I didn't bother to change the version number or send out an update.
tecdady
03-30-2007, 06:28 PM
how would i modify this so that posts by a certain usergroup are highlighted, not by thread status. aka, if i have a supporting member group, i want their posts to have the highlight. this is a very useful hack to ad value to my supporting member group in the classifieds. also, is it possible with this mod to only have it used on certain forums. aka, only in my classifieds, not on my entire board.
Kirk Y
03-30-2007, 07:31 PM
Explain a little better what you want in regard to the Usergroup Highlighting, I don't follow what you're saying.
tecdady
03-30-2007, 07:35 PM
i would like posts by my subscribing members in my classifeds boards to be highlighted
thats about the best as i can describe it.
highleted posts by usergroups, in specified forums. not by thread type (open, sticky, etc).
situation is, i have paid subscribers. i want their posts to be highlighted in all my classifieds forums.
Kirk Y
03-30-2007, 07:41 PM
Okay, so you want the thread's with posts made by your Paid Usergroup to be highlighted? Should they only be highlighted if the thread was started by someone in this Usergroup -- or if any post in the thread was made by someone in the Usergroup?
tecdady
03-30-2007, 08:00 PM
exactly! just the threads started by a supporting member. not threads that have a supporting member reply. you da man.
-chris
NaughtyStud
03-31-2007, 03:00 AM
This looks like a very useful hack, Thank you so much and clicked Install. ;)
Stickers
04-09-2007, 09:22 PM
can someone delete my post?
Singularity
05-03-2007, 02:12 PM
Is it possible to modify this hack so that one can use one color per forum?
So that, for instance, with a partition similar to the one here on vbulletin.org, one could have one background color for threads in forums in the mods section, another for threads in forums in the styles section etc.?
coffee
05-04-2007, 06:04 AM
Well done Kirk!
chiwexa
07-08-2007, 10:23 AM
Really nice. Is it possible to do not show the color-legend, when a user disabled the hack in the options?
I hope you understood.:confused:
greetz :)
Kirk Y
07-12-2007, 06:11 PM
Really nice. Is it possible to do not show the color-legend, when a user disabled the hack in the options?
I hope you understood.:confused:
greetz :)
Yes, that's an easy change.
Find in your "forumdisplay" template:
<div class="smallfont" align="left"><strong>$vbphrase[legend]</strong></div>
<table cellpadding="4" cellspacing="1" border="0" width="300" class="tborder" style="table-layout:fixed">
<tr>
<td class="alt1_unread" align="center"><span class="smallfont">$vbphrase[tb_new]</span></td>
<td class="alt1_uposted" align="center"><span class="smallfont">$vbphrase[tb_posted]</span></td>
<td class="alt1_popular" align="center"><span class="smallfont">$vbphrase[tb_popular]</span></td>
<td class="alt1_closed" align="center"><span class="smallfont">$vbphrase[tb_closed]</span></td>
</tr>
</table>Replace with (Remember to change "fieldX" to match your Field Number):
<if condition="$bbuserinfo['fieldX'] == 'Yes, enable.'">
<div class="smallfont" align="left"><strong>$vbphrase[legend]</strong></div>
<table cellpadding="4" cellspacing="1" border="0" width="300" class="tborder" style="table-layout:fixed">
<tr>
<td class="alt1_unread" align="center"><span class="smallfont">$vbphrase[tb_new]</span></td>
<td class="alt1_uposted" align="center"><span class="smallfont">$vbphrase[tb_posted]</span></td>
<td class="alt1_popular" align="center"><span class="smallfont">$vbphrase[tb_popular]</span></td>
<td class="alt1_closed" align="center"><span class="smallfont">$vbphrase[tb_closed]</span></td>
</tr>
</table>
</if>
Stickers
08-03-2007, 05:45 PM
thanks...
hey, it doesnt work for me.
Fire112
10-04-2007, 10:37 PM
I have this divide with me also installed, however, it does not go. See appendix
thanks a lot! i was looking for something like this!
i will try it on 3.7!
dragtech
10-05-2008, 09:16 PM
I have installed this and really like it.
But, my question, will this display for people that are Unregistered / Not Logged In? Will they at least see the color for popular or closed, since to them they are all new.
Also what would show first? New color or Popular color if a thread is popular but has a new post?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.