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


All times are GMT. The time now is 11:20 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.01226 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_php_printable
  • (1)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
  • (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