vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   read thread color (https://vborg.vbsupport.ru/showthread.php?t=284433)

Hawk7173 06-14-2012 10:43 PM

read thread color
 
Is there a setting that allows read thread colors to be changed so that a member sees right away that they have already read that thread?

Simon Lloyd 06-14-2012 11:09 PM

Thats difficult because in your session unread threads appear in bold and when read are unbolded, however when you finish your session all threads are marked read or unbolded.

Hawk7173 06-15-2012 01:01 AM

I was on another vBulletin forum that once a thread was read, the title changed colors, so there must be something here that allows that to happen. I just can't seeem to find it via the search function here.

kh99 06-15-2012 01:11 AM

I haven't tried it, but in the template [S]threadbit.css[/S] threadlist.css (Under the CSS Templates group) is this:

Code:

.threadbit .threadtitle_unread {
        font-weight: bold;
}


so maybe if you added a color there it might do what you want.

Hawk7173 06-15-2012 01:29 AM

hmmmmmm I don't seem to have a threadbit.css template in CSS templates

kh99 06-15-2012 02:39 AM

My mistake - it's threadlist.css. But it's just as well because I think what you really want to do it edit additional.css, paste that in there, and change it to what you want (and it will override the code in threadbit.css).

I also realized that (assuming it works) this will change the look of unread threads which is the oppposite of what you described. But I think you can look in threadlist.css and find how the color is set you can work it out. (Or maybe someone else will know - or I can try to figure it out tomorrow).

Hawk7173 06-15-2012 02:42 AM

I'll take a crack at it.... I'll copy the template in case something screwy goes on before I change anything...LOL

Thanks for the help.

--------------- Added [DATE]1339734309[/DATE] at [TIME]1339734309[/TIME] ---------------

tried adding color to that piece and nothing changed.....oh well

cellarius 06-15-2012 05:17 AM

To change the color you need to use
HTML Code:

.threadbit .threadtitle_unread a {
        color: #123456;
}

(The threadtitles are links, and the link color is used unless overridden)

Hawk7173 06-15-2012 02:41 PM

Thank you.

What would I use for read threads?

kh99 06-15-2012 02:47 PM

Try .threadbit .threadtitle a { ...

Hawk7173 06-15-2012 03:11 PM

adding that code to the additional CSS template did not change anything.

kh99 06-15-2012 03:22 PM

Yeah, I only know basic CSS so I usually don't fool around with that stuff, but I tested this and it seems to work:

Code:

.threadbit .threadtitle a:link {
        color: #FF0000; // red for unread threads
}

.threadbit .threadtitle a:visited {
        color: #00FF00; // green for read threads
}


Hawk7173 06-15-2012 03:27 PM

I managed to get unread posts to change by adding color: #660000; to the code below in threadlist.css

Code:

.threadbit .threadtitle_unread {
        font-weight: bold; color: #660000;
}

--------------- Added [DATE]1339777747[/DATE] at [TIME]1339777747[/TIME] ---------------

once a thread has been viewed, it reverts back to the default color. However, if a reply is made to the thread, it does not go back to unread. Should it?

kh99 06-15-2012 03:32 PM

Quote:

once a thread has been viewed, it reverts back to the default color. However, if a reply is made to the thread, it does not go back to unread. Should it?

Are you talking about the code I posted above? Hmm...yeah, it probably doesn't do what you want. I think that changes color based on whether or not the browser thinks you've visited the link before. So I guess you want to use .threadbit .threadtitle_unread { .. and .threadbit .threadtitle { ...

I think I'll leave it to cellarius or someone else that knows.


Edit: well, I did play around with it more and this seems to work (although I don't understand why):

Code:

.threadbit .threadtitle .threadtitle_unread {
        color: #FF0000;
}

.threadbit .threadtitle a {
        color: #00FF00;
}


Hawk7173 06-15-2012 03:43 PM

I used an adaption to the first code you gave me.


All times are GMT. The time now is 05:00 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.01482 seconds
  • Memory Usage 1,744KB
  • 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_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete