vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - Threadbit Coloring Based on Thread Status (https://vborg.vbsupport.ru/showthread.php?t=142857)

Kirk Y 03-22-2007 10:00 PM

Threadbit Coloring Based on Thread Status
 
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
Code:

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
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!
Code:

<if condition="$bbuserinfo['fieldX'] == 'Yes, enable.' AND $status">
With:
Code:

<if condition="$bbuserinfo['fieldX'] == 'Yes, enable.' AND $status AND $enable">
3. Find in your "forumdisplay" template:
Code:

$forumjump
Add above:
Code:

<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:
Code:

color: #000
With:
Code:

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

Quote:

Originally Posted by bacanze (Post 1209973)
Could be very useful, is it easy to modify the colours?

Yes, very - there are instructions on doing so in the readme file.

Quote:

Originally Posted by projectego (Post 1209981)
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

Quote:

Originally Posted by Masiello (Post 1210138)
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


All times are GMT. The time now is 06:39 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01951 seconds
  • Memory Usage 1,743KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete