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
  #2  
Old 09-19-2012, 11:11 PM
dougdirac's Avatar
dougdirac dougdirac is offline
 
Join Date: Nov 2011
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Idea. I'll give it a try.
Reply With Quote
  #3  
Old 09-19-2012, 11:50 PM
Merjawy's Avatar
Merjawy Merjawy is offline
 
Join Date: Sep 2002
Location: USA
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Enjoy. Thank you... Please mark installed
Reply With Quote
  #4  
Old 09-20-2012, 12:21 AM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 09-21-2012, 05:39 PM
Merjawy's Avatar
Merjawy Merjawy is offline
 
Join Date: Sep 2002
Location: USA
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad you liked it... Enjoy
Reply With Quote
Благодарность от:
djbaxter
  #6  
Old 12-19-2012, 02:30 PM
Bengie Bengie is offline
 
Join Date: Sep 2011
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've done exactly as instructed and nothing has happened, the unapproved post is still just white ??
Reply With Quote
  #7  
Old 01-06-2013, 10:02 AM
JamalFree JamalFree is offline
 
Join Date: Dec 2012
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice.................thanks
__________________
أخبار - مطبخ حواء - مدونة - تطوير الذات - صناع الاجيال -السبورة النقابية
Reply With Quote
  #8  
Old 01-09-2013, 10:52 PM
Madpoodle Madpoodle is offline
 
Join Date: May 2010
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is the coloring visible to all, or just mods and admins?
Reply With Quote
  #9  
Old 01-09-2013, 11:42 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Madpoodle View Post
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.
Reply With Quote
  #10  
Old 01-09-2013, 11:44 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[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.
Reply With Quote
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:55 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.04527 seconds
  • Memory Usage 2,323KB
  • 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
  • (1)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
  • (10)post_thanks_box
  • (3)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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