vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Moderating (https://vborg.vbsupport.ru/showthread.php?t=193642)

PGAmerica 10-14-2008 10:26 PM

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.

Lynne 10-15-2008 01:15 AM

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.

PGAmerica 10-15-2008 11:38 PM

Works perfectly. Thank you

Nakadai 10-23-2008 11:56 PM

Doesn't seem to work for me.... hmm.

Lynne 10-24-2008 02:38 AM

Quote:

Originally Posted by Nakadai (Post 1651472)
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.

Nakadai 10-24-2008 08:33 AM

Sorry for my vagueness.

Quote:

Originally Posted by Lynne (Post 1645280)
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!

Meestor_X 12-25-2010 07:53 PM

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?

BirdOPrey5 12-26-2010 01:07 AM

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.

Meestor_X 12-26-2010 06:42 AM

Thanks for your help! Got something that works well now.

Bluemax712 01-27-2011 07:45 PM

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 Template:postbit

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


All times are GMT. The time now is 03:29 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.01037 seconds
  • Memory Usage 1,747KB
  • 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
  • (5)bbcode_html_printable
  • (2)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