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 - Thread Title Coloring (https://vborg.vbsupport.ru/showthread.php?t=121449)

Kirk Y 07-17-2006 10:00 PM

Thread Title Coloring
 
What does this do?
Creates an AdminCP Option to customize the color of your Closed, Moderated, Polled, Stickied, and Announcement Thread Titles.

Installation:
1. Go into your AdminCP -> Product Manager -> Add/Import Products.
2. Import the product -- that's it!

3. To use, go to vBulletin Options -> Thread Coloring.
IF YOU'RE UPGRADING -- BE SURE TO SET OVERWRITE TO YES WHEN IMPORTING THE NEW XML FILE.
Version History:
1.00 - Original Release
1.01 - Now compatible 3.6 Gold, HTML Markup Capability Added, Fixed bug that colored Moved Threads the same as Poll Threads
1.02 - Added Version Check (Upgrade Not Necessary)

Check out the Screenshot if you need a visual. ;)

Feel free to post any suggestions or request additions.

Michael_Tree 07-17-2006 11:45 PM

<font color="Red">Member did not provide screenie.</font>

Kirk Y 07-17-2006 11:48 PM

Must have been updating the thread when you posted. They're in there now.

Member has a name too... lol.

MGM 07-18-2006 03:59 AM

This looks like its in the vBulletin Options... wouldnt this work better if it was in the Style Manager so that you can customize the colors per style?

MGM out

jluerken 07-18-2006 05:09 AM

Its a good idea but it should work on a per style basis.

Example. Making hot thread appear in red can look extremly good in one style but could be readable in another. :-(

MGM 07-18-2006 05:31 AM

What I would reccomend doing is changing all the:

PHP Code:

<span style="color:' . $vbulletin->options['BLAH'] . '"

in the product file to:

PHP Code:

<span class="nameOfClass"

With nameOfClass being things like hotThreadColor, closedThreadColor, etc.

Then, add:

Code:

.nameOfClass {
  color: #fff;
}

to the Additional CSS Definitions in the All Style Options under the Style Manager. That way, all the admin has to do is edit the All Style Options' Additional CSS Definitions to what colors they want and it will only affect the colors for that one style...

That would be one simple, easy way to do it. But the best way would be if you could add a new field altogether for the All Style Options that works like the Table Footer or Table Header sections... where you can choose color, font, background, etc. But that might require more work than you would want to put in (I'm not sure how much work exactly, because I haven't played with the plugin system too much personally).

MGM out

Snake 07-18-2006 11:28 AM

Very nice indeed! :)

fuzionpoker 07-18-2006 12:18 PM

JoRd likes very much!!

Thanks a lot acid :D

JoRd

rob30UK 07-18-2006 12:26 PM

I was looking for something that would actually color the background of the table row itself.....

I dont think that is possible with this mod is it?

MGM 07-18-2006 04:27 PM

You'd have to change some of the coding to do that... Instead of: <span style="color: ...

It'd have to be something like: <span style="background: ...

... Actually, it might need to be added to the table cell itself from the templates...

MGM out

eNforce 07-18-2006 06:42 PM

How about adding the options to make the thread title bold, italic, etc.. too :)

Kirk Y 07-18-2006 08:46 PM

This was just a quick port of my vB 3.5 version over to 3.6. I haven't had time to make any feature changes. Everything that you guys have talked about is already planned for a future version, I just don't have enough time to sit down and put it all together. I designed this for my board and after a few of my members wanted it for their vBulletin, I decided to release it as a mod -- that's why it's not on a per style basis; I've only got one style. :p

thenetbox 07-19-2006 09:53 PM

Can this also turn the color of 5 star threads to something else?

Kirk Y 07-19-2006 10:12 PM

Possibly. I'll look into it.

The Free Bird 07-21-2006 03:05 PM

thinks

albibak 07-27-2006 03:13 PM

I have a problem with this mod. The colour of the poll and moderate thread are the same ...
The moderate thread have allways the colour of the poll thread :(

I test it one a 3.6 RC3

Kirk Y 07-27-2006 04:38 PM

I'll take a look.

Edit: I couldn't replicate the problem albibak. As you see below, Poll and Moderated threads are showing up the correct color. I'm running RC3.

http://img457.imageshack.us/img457/9...titled1pp4.jpg

albibak 07-27-2006 07:18 PM

So I don't understand. I test it with this xml file :s
I will test it more after :(

Moderate thread is when you have move a thread? Or when you have edit a thread?

Kirk Y 07-27-2006 07:23 PM

No when you've Unapproved a Thread.

albibak 07-27-2006 08:00 PM

OK.
I see one thing.
It will be possible to have a color for moved thread? In fact, the color is by default the same of "poll thread". And more, the prefix "move" is not with color.

You can look the screen in attach file.

Kirk Y 07-27-2006 08:33 PM

Oh I see now. That's strange. I'll take a look into it later tonight and issue a fix sometime soon.

ctrl-alt-del 08-04-2006 03:57 AM

Quote:

Originally Posted by eNforce
How about adding the options to make the thread title bold, italic, etc.. too :)

I second this request.

Kirk Y 08-04-2006 05:16 PM

<span class="highlight">Version 1.01 - August 4, 2006</span>

Added: HTML Markup Support - Bold, Italicize, Underline, and Strikethrough your Threads!
Fixed: Bug that colored Moved Threads as Polled Threads

Note: The HTML for a Strikethrough is <del>

ctrl-alt-del 08-04-2006 05:25 PM

Thanks for the new version. Text decoration is working!

Kirk Y 08-04-2006 05:28 PM

Good to hear. You're quite welcome.

dookie 08-05-2006 04:50 AM

*installed* - thank you :)

dookie 08-05-2006 04:52 PM

When you make a doubleclick for quick-edit a threadtitle it shows
Quote:

<span style="">Title here</span>
Look at the attachment. :)

Kirk Y 08-05-2006 05:10 PM

Yeah, I've known about that for awhile now. The only way to fix it requires a template edit. But you can just write over all the stuff in the quick edit, the markup will be reapplied after a refresh.

ctrl-alt-del 08-05-2006 05:32 PM

Not a major issue here. The hack is great!

Snatch 08-11-2006 07:45 AM

Great thing but a frew problems.

Show attached pictures.

When I change a colored Thread titel, i show me the colorHTML code.

GreeTz
Snatch

Kirk Y 08-11-2006 07:54 AM

Quote:

Originally Posted by Snatch
Great thing but a frew problems.

Show attached pictures.

When I change a colored Thread titel, i show me the colorHTML code.

GreeTz
Snatch

Quote:

Originally Posted by acidburn0520
Yeah, I've known about that for awhile now. The only way to fix it requires a template edit. But you can just write over all the stuff in the quick edit, the markup will be reapplied after a refresh.

As I said above, this bug has been an issue for everyone who has been creating modifications to the thread titles. Just write over everything in the Quick Edit form and it works fine.

alserb 08-15-2006 06:41 PM

Installed... thank you

maf1973 08-19-2006 02:43 PM

One Question, my Thread are sticky and closed and i woul like to show only the Sticky Color how can i do that, because all of my closed Stickis are in closed color.

Kirk Y 08-19-2006 03:45 PM

I was wondering when someone was going to ask that. I'll switch some things around and upload a new version.

Nxs 08-19-2006 05:23 PM

Quote:

Originally Posted by acidburn0520
I was wondering when someone was going to ask that. I'll switch some things around and upload a new version.

Still running an old tweaked version and have the order of priority as poll -> sticky -> closed -> others

That is unless there is an option for "other" in the hack yet, to change the colour of any threads that are not sticky/poll/closed/hot/moderated/etc.

Kirk Y 08-19-2006 07:41 PM

Others as in Regular Threads? No, I never added an option to color Normal Threads. I suppose I could, I never really thought about it.

How did you prioritize the colorings?

Nxs 08-19-2006 09:19 PM

Quote:

Originally Posted by acidburn0520
Others as in Regular Threads? No, I never added an option to color Normal Threads. I suppose I could, I never really thought about it.

How did you prioritize the colorings?

Just changed the order of the <if> conditions, sloppy and simple hehe thats me :)

Kirk Y 08-19-2006 09:43 PM

Oh okay, that's what I figured.

shacky 08-21-2006 01:52 AM

Kirk, Good plugin - Clicked "Install" :)

Kirk Y 08-21-2006 03:32 AM

Thank you for the compliment.


All times are GMT. The time now is 04:36 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.01398 seconds
  • Memory Usage 1,809KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (6)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
  • (40)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