Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
TDT - Set Title Color for Each Thread Details »»
TDT - Set Title Color for Each Thread
Version: 1.00, by tackebong tackebong is offline
Developer Last Online: Jul 2008 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.6.8 Rating:
Released: 02-05-2008 Last Update: Never Installs: 19
 
No support by the author.

Import Product
Default: only MOD,SMOD,Admin can use this hack.
If you want change it, please edit file, find
PHP Code:
<if condition="($bbuserinfo[usergroupid] == 6)|($bbuserinfo[usergroupid] == 5)|($bbuserinfo[usergroupid] == 7)"
and delete or add other condition.

edit template threadbit
find
PHP Code:
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"style="font-weight:bold"</if>>$thread[threadtitle]</a
replace with
PHP Code:
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"style="font-weight:bold"</if> style="color: $thread[threadcolor];">$thread[threadtitle]</a
Done!

Supporters / CoAuthors

    Show Your Support

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

    Comments
      #2  
    Old 02-06-2008, 03:48 PM
    Sofia Sofia is offline
     
    Join Date: Oct 2006
    Location: France
    Posts: 725
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Good idea !

    I think you should integrate usergroups permissions to change title colors.

    But good hack
    Reply With Quote
      #3  
    Old 02-06-2008, 03:54 PM
    Soonerdude Soonerdude is offline
     
    Join Date: Mar 2007
    Posts: 25
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Yes, if this could be set so that only admins could change colors, I'd install it.
    Reply With Quote
      #4  
    Old 02-06-2008, 03:57 PM
    tackebong tackebong is offline
     
    Join Date: Jun 2007
    Location: Vietnam
    Posts: 61
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    oh yes, my code has permission, only MOD,SMOD and Admin can use this hack

    Default: only MOD,SMOD,Admin can use this hack.
    If you want change it, please edit file, find
    PHP Code:
    <if condition="($bbuserinfo[usergroupid] == 6)|($bbuserinfo[usergroupid] == 5)|($bbuserinfo[usergroupid] == 7)"
    and delete or add other condition.
    Reply With Quote
      #5  
    Old 02-06-2008, 04:13 PM
    CLF's Avatar
    CLF CLF is offline
     
    Join Date: Jun 2007
    Posts: 112
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    It would be much nicer if you could make some sort of a drop-down menu with color selection instead of typing it. Still, I like the idea. Good luck
    Reply With Quote
      #6  
    Old 02-06-2008, 04:24 PM
    tackebong tackebong is offline
     
    Join Date: Jun 2007
    Location: Vietnam
    Posts: 61
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Quote:
    It would be much nicer if you could make some sort of a drop-down menu with color selection instead of typing it. Still, I like the idea. Good luck
    Thanks. good ideal
    Reply With Quote
      #7  
    Old 02-06-2008, 04:41 PM
    iogames's Avatar
    iogames iogames is offline
     
    Join Date: Jan 2007
    Location: Las Vegas, NV.
    Posts: 1,433
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Quote:
    Originally Posted by Sofia View Post
    Good idea !

    I think you should integrate usergroups permissions to change title colors.

    But good hack
    I was thinking the same, what about title and CSS?
    Reply With Quote
      #8  
    Old 02-06-2008, 05:00 PM
    Chachacha's Avatar
    Chachacha Chachacha is offline
     
    Join Date: Jul 2006
    Posts: 173
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Quote:
    Originally Posted by CLF View Post
    It would be much nicer if you could make some sort of a drop-down menu with color selection instead of typing it. Still, I like the idea. Good luck
    I agree... and the colors should be editable via the admin cp to prevent the use of colors that will look bad with forum skins. For example, My board uses a dark skin (dark gray)... and if someone uses black for their thread title, it will be an eye sore (hard to read and just plain ugly). For light themes (like the vb default skin), if someone makes their thread title color WHITE, it will be pretty much invisible because it will blend in with the background.

    If this can be achieved, I'll gladly install this mod.
    Reply With Quote
      #9  
    Old 02-06-2008, 05:11 PM
    tackebong tackebong is offline
     
    Join Date: Jun 2007
    Location: Vietnam
    Posts: 61
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Quote:
    I agree... and the colors should be editable via the admin cp to prevent the use of colors that will look bad with forum skins. For example, My board uses a dark skin (dark gray)... and if someone uses black for their thread title, it will be an eye sore (hard to read and just plain ugly). For light themes (like the vb default skin), if someone makes their thread title color WHITE, it will be pretty much invisible because it will blend in with the background.
    Thanks. with problem, i think only allow use medium color ex: green, red, blue, orange...etc ^^ dont use light or dark color ^^
    Reply With Quote
      #10  
    Old 02-06-2008, 07:29 PM
    Chachacha's Avatar
    Chachacha Chachacha is offline
     
    Join Date: Jul 2006
    Posts: 173
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Quote:
    Originally Posted by tackebong View Post
    Thanks. with problem, i think only allow use medium color ex: green, red, blue, orange...etc ^^ dont use light or dark color ^^
    That sounds good.
    Reply With Quote
    Reply

    Thread Tools

    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 01:10 PM.


    Powered by vBulletin® Version 3.8.12 by vBS
    Copyright ©2000 - 2024, vBulletin Solutions Inc.
    X vBulletin 3.8.12 by vBS Debug Information
    • Page Generation 0.07882 seconds
    • Memory Usage 2,303KB
    • Queries Executed 24 (?)
    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
    • (4)bbcode_php
    • (5)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
    • (1)pagenav_pagelink
    • (10)post_thanks_box
    • (10)post_thanks_button
    • (1)post_thanks_javascript
    • (1)post_thanks_navbar_search
    • (10)post_thanks_postbit_info
    • (9)postbit
    • (10)postbit_onlinestatus
    • (10)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_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