vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - Moderated Posts Background Color (https://vborg.vbsupport.ru/showthread.php?t=285655)

Merjawy 07-16-2012 10:00 PM

Moderated Posts Background Color
 
1 Attachment(s)
This little code will change the background color of your moderated threads/posts to make it easy to spot by you and your Mods.
It helps with busy forums.

I tested it on vB 4.2.0 but should work on older versions. I use postbit_legacy.

Install:

Step 1:

In postbit_legacy template look for:

PHP Code:


<div class="postbody"

Replace it with:

PHP Code:


 
<div class="postbody <vb:if condition="$show['moderated']">moderated</vb:if>"

Step 2

Also, in additional.css, add this code

PHP Code:


.postbitlegacy div.postbody.moderated {background#F5DA81;



Change the background color to what you prefer

If you enjoy my mod, please consider marking it as "Installed". Any comments are welcome.

dougdirac 09-19-2012 11:11 PM

Great Idea. I'll give it a try.

Merjawy 09-19-2012 11:50 PM

Enjoy. Thank you... Please mark installed :)

djbaxter 09-20-2012 12:21 AM

The owner of a forum where I provide tech support wanted this. After installing it for her, I realized how handy it is. Now using it on 4 forums. :)

Merjawy 09-21-2012 05:39 PM

Glad you liked it... Enjoy :)

Bengie 12-19-2012 02:30 PM

I've done exactly as instructed and nothing has happened, the unapproved post is still just white ??

JamalFree 01-06-2013 10:02 AM

very nice.................thanks
__________________
أخبار - مطبخ حواء - مدونة - تطوير الذات - صناع الاجيال -السبورة النقابية

Madpoodle 01-09-2013 10:52 PM

Is the coloring visible to all, or just mods and admins?

djbaxter 01-09-2013 11:42 PM

Quote:

Originally Posted by Madpoodle (Post 2395857)
Is the coloring visible to all, or just mods and admins?

Just mods and admins. If a post is in moderation, no one else except mods and admins can even see the post.

djbaxter 01-09-2013 11:44 PM

[s]As I noted above, I'm now using this on four vBulletin 4.2.0 PL3 forums.

It's working perfectly on 3 of those. However, on the 4th it isn't working at all.

Using this code at the top of additional.css:

Code:

.postbit div.postbody.moderated {background: #F5DA81 !important;
}

Any ideas as to why this would NOT work on that one forum? What are the likely conflicts that might prevent it from working?[/s]

Fixed: Never mind. I had forgotten to make the edit in the postbit template on the problematic forum. :o

Kevlar 03-12-2013 04:02 PM

Does something like this exist for the thread list as well?

dougdirac 07-25-2013 04:32 AM

Quote:

Originally Posted by Kevlar (Post 2409515)
Does something like this exist for the thread list as well?

Try this in additional.css

Code:

.threadbit.unapproved .nonsticky {background: #FFCCFF;}

dougdirac 07-25-2013 04:33 AM

Anyway to use this in conjunction with this hack: https://vborg.vbsupport.ru/showthread.php?t=247094

So that the moderated posts have a different background color for mods and admins but look normal for the post author.

Meestor_X 02-12-2014 09:19 PM

Quote:

Originally Posted by dougdirac (Post 2435258)
Anyway to use this in conjunction with this hack: https://vborg.vbsupport.ru/showthread.php?t=247094

So that the moderated posts have a different background color for mods and admins but look normal for the post author.

Exactly! I have both mods installed, but I want the background color to only change for Mods and Admins, but have the post look completely normal to the poster, even though nobody else can see the post.

My Hattiesburg 04-15-2015 04:44 PM

I just tried this on my 4.2.2 forum and it didn't work. Did I do something wrong?

ForceHSS 04-15-2015 06:10 PM

You must of I done it on my 4.2.2 site and it worked

MarkFL 04-15-2015 06:15 PM

Quote:

Originally Posted by My Hattiesburg (Post 2543137)
I just tried this on my 4.2.2 forum and it didn't work. Did I do something wrong?

This worked for me...did you grab the closing brace of the CSS selector (the code to add to "additional.css")?

ForceHSS 04-15-2015 06:26 PM

Quote:

Originally Posted by My Hattiesburg (Post 2543137)
I just tried this on my 4.2.2 forum and it didn't work. Did I do something wrong?

Can do it for you if you want pm me

My Hattiesburg 04-15-2015 08:22 PM

Quote:

Originally Posted by MarkFL (Post 2543148)
This worked for me...did you grab the closing brace of the CSS selector (the code to add to "additional.css")?

I thought I did but let me check again.
Quote:

Originally Posted by ForceHSS (Post 2543150)
Can do it for you if you want pm me

Nice of you to offer. If I can't get it going on another go-round I may hit you up. Thanks.

My Hattiesburg 04-15-2015 08:36 PM

Ah, OK, I see where I screwed up. We use postbit, not postbitlegacy, and I didn't change that in the additional css code.

Works now, thanks!

Black Snow 04-16-2015 01:26 PM

Theres a mod for this: https://vborg.vbsupport.ru/showthread.php?t=315361

Dave-ahfb 05-02-2015 02:20 PM

can somebody give an example of how to use this on the search results?

I added the if statement to the search_results_postbit, then tried the css with the original and also tried the css by changing .postbit to .searchbit. neither worked.

Black Snow 06-09-2015 01:44 PM

Quote:

Originally Posted by Dave-ahfb (Post 2544680)
can somebody give an example of how to use this on the search results?

I added the if statement to the search_results_postbit, then tried the css with the original and also tried the css by changing .postbit to .searchbit. neither worked.

Do you still need help with this?

Inzvestor 06-28-2015 08:22 AM

4.2.3 also uses postbit not postbitlegacy

A handy mod

Dave-ahfb 06-28-2015 11:11 AM

Quote:

Originally Posted by Black Snow (Post 2547466)
Do you still need help with this?

yes


All times are GMT. The time now is 08:38 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.01300 seconds
  • Memory Usage 1,769KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)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