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 - TDT - Set Title Color for Each Thread (https://vborg.vbsupport.ru/showthread.php?t=169803)

tackebong 02-05-2008 10:00 PM

TDT - Set Title Color for Each Thread
 
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!

Sofia 02-06-2008 03:48 PM

Good idea !

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

But good hack ;)

Soonerdude 02-06-2008 03:54 PM

Yes, if this could be set so that only admins could change colors, I'd install it.

tackebong 02-06-2008 03:57 PM

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.

CLF 02-06-2008 04:13 PM

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

tackebong 02-06-2008 04:24 PM

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

iogames 02-06-2008 04:41 PM

Quote:

Originally Posted by Sofia (Post 1437469)
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?

Chachacha 02-06-2008 05:00 PM

Quote:

Originally Posted by CLF (Post 1437489)
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.

tackebong 02-06-2008 05:11 PM

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 :D ex: green, red, blue, orange...etc ^^ dont use light or dark color ^^

Chachacha 02-06-2008 07:29 PM

Quote:

Originally Posted by tackebong (Post 1437523)
Thanks. with problem, i think only allow use medium color :D ex: green, red, blue, orange...etc ^^ dont use light or dark color ^^

That sounds good.


All times are GMT. The time now is 10:37 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.01050 seconds
  • Memory Usage 1,747KB
  • 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
  • (4)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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