Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Thread Listing Background Colors Like vBulletin.org Details »»
Thread Listing Background Colors Like vBulletin.org
Version: 1.0, by Hasann Hasann is offline
Developer Last Online: Jun 2021 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.7.3 Rating:
Released: 04-02-2008 Last Update: 10-18-2008 Installs: 166
DB Changes Uses Plugins Auto-Templates
Translations  
No support by the author.

Thread Listing Color Status Like vB.Org by Hasann

What does it?:

Thread Listing Color Status: This option allows you to color code threadbits based on specific status of the thread:
  1. New Thread or Post
  2. Sticky Thread
  3. Poll Thread
  4. Posted Thread
  5. Popular Thread
  6. Closed Thread
  7. New Announcement
  8. Normal Old Thread

Currently Feature List:
  • Fully Phrased
  • Compatible with all Styles
  • Compatible with "Modification System" Hack
  • Added Per User Function: this hack does work per selected user
  • The system can be turned on and off.
  • You can set own background colors per threadbits based on specific status of the thread

Install Instructions:

just import product .xml file via product manager that's all it

Available Languages
  • English
  • T?rkce

Note: this hack replaces the old threadbit template with the new threadbit_bgcolors template also it replaces the templates. If you before made any template edits for threadbit template do it also for threadbit_bgcolors template too

If you like this modification -> Please just clicks install and MOTM buttons

Comments, suggestions, translations, bugs, etc... are very welcome! Support is only given to people who have clicked INSTALL.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 06-21-2008, 02:37 PM
beduino's Avatar
beduino beduino is offline
 
Join Date: Dec 2005
Location: Rio de Janeiro
Posts: 280
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello,
a question:
how we can change the default options AFTER install?

a suggestion:
Include in readme how we can change forumdisplay to build a forumdisplay_bgcolors. A lot of people have forumdisplay already changed and maybe is useful some instruction how we can change the template.

But - tks a lot
joao barroca
aka beduino
Reply With Quote
  #73  
Old 08-01-2008, 03:51 PM
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
Location: Philadelphia
Posts: 1,073
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PGAmerica View Post
Well, it seems that all are agreed that we need to allow for the users to have this option set to "yes" be default. And there are ways to do an sql query to set all current users to "yes", but this does not solve the problem with new users.

OK, I figured it out. If you want to make all the options set to "yes" by default. That is,
  • Enable for this forum category thread listing background colors? (Forum Manager)
  • Can this Usergroup Use the Forumdisplay Thread Listing Background Color? (Usergroup Manager)
  • Thread Listing Background Color Legend (UserCP)
All you have to do is the following:
Step 1:
Edit the "product-thread_listing_bgcolors_english.xml" file
Step 2:
Look for
Code:
$vbulletin->db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum ADD bgcolors INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL"); 
$vbulletin->db->query_write("ALTER TABLE " . TABLE_PREFIX . "user ADD bgcolors INT( 10 ) UNSIGNED DEFAULT '0 NOT NULL");  
$vbulletin->db->query_write("ALTER TABLE " . TABLE_PREFIX . "usergroup ADD COLUMN bgcolorspermissions INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL");
and replace it with
Code:
$vbulletin->db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum ADD bgcolors INT( 10 ) UNSIGNED DEFAULT '1' NOT NULL"); 
$vbulletin->db->query_write("ALTER TABLE " . TABLE_PREFIX . "user ADD bgcolors INT( 10 ) UNSIGNED DEFAULT '1' NOT NULL");  
$vbulletin->db->query_write("ALTER TABLE " . TABLE_PREFIX . "usergroup ADD COLUMN bgcolorspermissions INT( 10 ) UNSIGNED DEFAULT '1' NOT NULL");
Step 3:
Upload the new product via the "Manage Products" link in your ACP
Step 4:
Enter the "Usergroup Manager" and edit any of the usergroups. This will rebuild the BitFields.

If you have already done this, just uninstall it, make the changes and then reinstall it.

It just worked for me perfectly.


thanks that worked
Reply With Quote
  #74  
Old 08-01-2008, 04:22 PM
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
Location: Philadelphia
Posts: 1,073
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

had security token issues but fixed it from this post #55
Reply With Quote
  #75  
Old 08-04-2008, 08:13 PM
thecricketzone thecricketzone is offline
 
Join Date: Jun 2006
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^agree its a nice hack but its a hassle to get it to work. i think ive followed every step but it still doesnt show up and there should be a way to set this for all users from ACP in any single usergroup. So I am uninstalling
Reply With Quote
  #76  
Old 08-04-2008, 08:21 PM
mcyates mcyates is offline
 
Join Date: Jan 2003
Location: Middlesbrough, Cleveland
Posts: 798
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not showing for me either.
Reply With Quote
  #77  
Old 08-09-2008, 08:02 AM
Deadly Assassin's Avatar
Deadly Assassin Deadly Assassin is offline
 
Join Date: Aug 2006
Location: VbAnswers.com
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uninstalled, could not get this to sit right. It keeps messing up my footer etc.

Nice idea though
Reply With Quote
  #78  
Old 08-10-2008, 08:35 AM
akonze akonze is offline
 
Join Date: Mar 2004
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a very interesting hack. I have two questions:

1. Is it possible to only color a some thread? Lets say only sticky and new threads, or do I always have to color all threads?

2. I saw the settings in the user cp. Can it be turned off, that the user can switch this on/off on his own?
Reply With Quote
  #79  
Old 08-13-2008, 02:29 PM
Zimbru Zimbru is offline
 
Join Date: Jul 2008
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by akonze View Post
This is a very interesting hack. I have two questions:

1. Is it possible to only color a some thread? Lets say only sticky and new threads, or do I always have to color all threads?

2. I saw the settings in the user cp. Can it be turned off, that the user can switch this on/off on his own?
That will be very nice.
Im looking for something wich change colors only for new posts.

There is one only for sticky here: https://vborg.vbsupport.ru/showthrea...60#post1596860

If anyone can help me with newposts , let me know please. Thanks
Reply With Quote
  #80  
Old 08-16-2008, 09:39 PM
ssslippy ssslippy is offline
 
Join Date: Jan 2006
Posts: 877
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have fixed the security and footer issue waiting for authors permission to post a fix in this thread. Also updated the other code in the moderation drop down as it was wrong.

Basically if anyone wants to fix the footer issue the whole area between
<!-- controls below thread list --> and <!-- / controls below thread list --> should be copy and pasted and then reinsert the code where ever you wish.
Code:
<if condition="$vbulletin->options['enable_thread_listing_color_legend_box'] == 1">
<td align="$stylevar[left]">
<table class="tborder" cellpadding="3" cellspacing="$stylevar[cellspacing]" border="0">
<tr>

<td class="newpost" align="center"><span class="smallfont">$vbphrase[hasann_new_post]</span></td>

<td class="stickythread" align="center"><span class="smallfont">$vbphrase[hasann_sticky_thread]</span></td>

<td class="pollthread" align="center"><span class="smallfont">$vbphrase[hasann_poll_thread]</span></td>

<td class="postedthread" align="center"><span class="smallfont">$vbphrase[hasann_posted_thread]</span></td>

<td class="popularthread" align="center"><span class="smallfont">$vbphrase[hasann_popular_thread]</span></td>

<td class="closedthread" align="center"><span class="smallfont">$vbphrase[hasann_closed_thread]</span></td>

<td class="announcement" align="center"><span class="smallfont">$vbphrase[hasann_announcement_thread]</span></td>

</tr>
</table>
</td>
</if>
Reply With Quote
  #81  
Old 08-17-2008, 02:34 PM
ssslippy ssslippy is offline
 
Join Date: Jan 2006
Posts: 877
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is the fixed version with the security update. Please note I had to relocate the bottom legend to down a block to avoid the footer issue.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:27 PM.


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.13417 seconds
  • Memory Usage 2,314KB
  • Queries Executed 28 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete