Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-14-2008, 10:26 PM
PGAmerica PGAmerica is offline
 
Join Date: Mar 2008
Posts: 405
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Moderating

I am looking for a 3.7.xx mod that will allow posts that need to be moderated to stand out boldly from the other posts. Something like a transparent gif over the top of the post that says "Moderation Required" or a change of color or a big bold statement that lets us know that this post needs to be moderated and cannot currently be seen by the masses.

As it stands, an unmoderated post looks just like all the other posts, except their is no post #.

I have seen mods that help with the moderation queue and mods that make moderation easier to deal with, but nothing on this level.

Any ideas would be appreciated.
Reply With Quote
  #2  
Old 10-15-2008, 01:15 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think you can simply edit the postbit template. Find these lines:
HTML Code:
    <if condition="$show['moderated']">
    <td class="alt2" id="td_post_$post[postid]">
    <else />
    <td class="alt1" id="td_post_$post[postid]">
    </if>
And change it to something like:
HTML Code:
    <if condition="$show['moderated']">
    <td style="background-color:yellow;" id="td_post_$post[postid]">
    <else />
    <td class="alt1" id="td_post_$post[postid]">
    </if>
yellow is probably a bit, um...., strong, so you may want to pick another color. Or, instead of that you could go:

HTML Code:
    <if condition="$show['moderated']">
    <td class="alt2" id="td_post_$post[postid]">
<div style="color:red; font-weight:bold;">This post is moderated.</div>
    <else />
    <td class="alt1" id="td_post_$post[postid]">
    </if>
Or whatever you want.
Reply With Quote
  #3  
Old 10-15-2008, 11:38 PM
PGAmerica PGAmerica is offline
 
Join Date: Mar 2008
Posts: 405
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works perfectly. Thank you
Reply With Quote
  #4  
Old 10-23-2008, 11:56 PM
Nakadai Nakadai is offline
 
Join Date: Jul 2008
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Doesn't seem to work for me.... hmm.
Reply With Quote
  #5  
Old 10-24-2008, 02:38 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Nakadai View Post
Doesn't seem to work for me.... hmm.
If you need help, you need to post exactly what you've done. Also, don't forget that you need to do it for whichever postbit you use - postbit or postbit_legacy - or both.
Reply With Quote
  #6  
Old 10-24-2008, 08:33 AM
Nakadai Nakadai is offline
 
Join Date: Jul 2008
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry for my vagueness.

Quote:
Originally Posted by Lynne View Post
edit the postbit template. Find these lines:
HTML Code:
    <if condition="$show['moderated']">
    <td class="alt2" id="td_post_$post[postid]">
    <else />
    <td class="alt1" id="td_post_$post[postid]">
    </if>
And change it to something like:
HTML Code:
    <if condition="$show['moderated']">
    <td style="background-color:yellow;" id="td_post_$post[postid]">
    <else />
    <td class="alt1" id="td_post_$post[postid]">
    </if>
I did exactly the above to no avail. Once I tried it on the postbit legacy though, it worked great.

Thanks for the help!
Reply With Quote
  #7  
Old 12-25-2010, 07:53 PM
Meestor_X Meestor_X is offline
 
Join Date: Apr 2006
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just what I need, but for 3.6.3. Could someone suggest what to edit in Posbit/Postbit Legacy in 3.6.3?

Sorry, I realized that it is the same for Postbit Legacy.

Postbit does not have that same <if statement.

It only has:
Code:
<if condition="$show['moderated']">
                <img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
            </if>
How should Postbit be modified?
Reply With Quote
  #8  
Old 12-26-2010, 01:07 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could add this condition anywhere in postbit, probably best right before the code: $template_hook[postbit_signature_start]

Something like:
Code:
<if condition="$show['moderated']">
                <span style="color:red;"><strong>This post must be moderated!!!</strong></span>
            </if>
Basically you can put that condition anywhere in postbit and it will make the post stand out.
Reply With Quote
  #9  
Old 12-26-2010, 06:42 AM
Meestor_X Meestor_X is offline
 
Join Date: Apr 2006
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for your help! Got something that works well now.
Reply With Quote
  #10  
Old 01-27-2011, 07:45 PM
Bluemax712 Bluemax712 is offline
 
Join Date: Oct 2010
Posts: 186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok - yes I'm an idiot noob who only occasionally gets to manage Vbulletin

I'm looking to implement this in Vb 4.07 but not sure where to add the code
in order to highlight Awaiting Moderation posts in bold

So starting from the admincp
Styles & Templates > Style Manager > vB4 Default Style > Edit Templates > Go

Scroll down to Postbit Templates > doubleclick "postbit"
which will bring up Customize Templateostbit

Am I close? and if so or if not ... where do I add the code?
Reply With Quote
Reply


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 12:52 AM.


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.04957 seconds
  • Memory Usage 2,266KB
  • Queries Executed 13 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (5)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete