Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

Reply
 
Thread Tools
Moderated Posts Background Color Details »»
Moderated Posts Background Color
Version: 1.00, by Merjawy Merjawy is offline
Developer Last Online: Mar 2016 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.x.x Rating:
Released: 07-16-2012 Last Update: Never Installs: 38
Template Edits
Re-useable Code Code Changes Translations  
No support by the author.

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.

Screenshots

File Type: jpg 2012-07-16_0838.jpg (62.7 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
gsk8, SaN-DeeP

Comments
  #12  
Old 03-12-2013, 04:02 PM
Kevlar's Avatar
Kevlar Kevlar is offline
 
Join Date: Nov 2001
Location: Ft. Lauderdale, FL.
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does something like this exist for the thread list as well?
Reply With Quote
  #13  
Old 07-25-2013, 04:32 AM
dougdirac's Avatar
dougdirac dougdirac is offline
 
Join Date: Nov 2011
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kevlar View Post
Does something like this exist for the thread list as well?
Try this in additional.css

Code:
.threadbit.unapproved .nonsticky {background: #FFCCFF;}
Reply With Quote
  #14  
Old 07-25-2013, 04:33 AM
dougdirac's Avatar
dougdirac dougdirac is offline
 
Join Date: Nov 2011
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #15  
Old 02-12-2014, 09:19 PM
Meestor_X Meestor_X is offline
 
Join Date: Apr 2006
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dougdirac View Post
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.
Reply With Quote
  #16  
Old 04-15-2015, 04:44 PM
My Hattiesburg My Hattiesburg is offline
 
Join Date: Jun 2012
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just tried this on my 4.2.2 forum and it didn't work. Did I do something wrong?
Reply With Quote
  #17  
Old 04-15-2015, 06:10 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You must of I done it on my 4.2.2 site and it worked
Reply With Quote
  #18  
Old 04-15-2015, 06:15 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by My Hattiesburg View Post
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")?
Reply With Quote
  #19  
Old 04-15-2015, 06:26 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by My Hattiesburg View Post
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
Reply With Quote
  #20  
Old 04-15-2015, 08:22 PM
My Hattiesburg My Hattiesburg is offline
 
Join Date: Jun 2012
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
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 View Post
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.
Reply With Quote
  #21  
Old 04-15-2015, 08:36 PM
My Hattiesburg My Hattiesburg is offline
 
Join Date: Jun 2012
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
2 благодарности(ей) от:
ForceHSS, MarkFL
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:20 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10999 seconds
  • Memory Usage 2,338KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (3)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (4)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete