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)

BirdOPrey5 01-27-2011 08:29 PM

Quote:

Originally Posted by apsrfvb4 (Post 2155402)
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?

You're close but you're using vBulletin 4.x so it's a little different.
In the template look for the line:
Code:

{vb:raw post.message}
and right above or below that line add these new lines:
Code:

<vb:if condition="$show['moderated']">
<br />
          <span style="color:red;"><strong>This post must be moderated!!!</strong></span>
<br />
</vb:if>

If you put it above the message will show up on top of the post, if you put it below it will show up under the post message, right above the signature, if any.

Bluemax712 01-27-2011 08:52 PM

Thanx for the quick reply .:) ...

I get an error trying to add it right above the line with {vb:raw post.message}
Here's my current section before adding it:

<div class="content<vb:if condition="$show['first_ad'] OR $show['last_ad']"> hasad</vb:if>">
<div id="post_message_{vb:raw post.postid}">
<blockquote class="postcontent restore">
{vb:raw post.message}
</blockquote>
</div>

BirdOPrey5 01-27-2011 09:00 PM

You seem to have a custom style but I don't know why that would stop this from working. I did it myself and it worked fine... Basically you want to make those lines into this:

Code:

<div class="content<vb:if condition="$show['first_ad'] OR $show['last_ad']"> hasad</vb:if>">
<div id="post_message_{vb:raw post.postid}">
<blockquote class="postcontent restore">
<vb:if condition="$show['moderated']">
<br />
          <span style="color:red;"><strong>This post must be moderated!!!</strong></span>
<br />
</vb:if>
{vb:raw post.message}
</blockquote>
</div>

If you still get the error can you copy and paste in the exact error?

Bluemax712 01-27-2011 09:19 PM

woohoo - ok - it worked the second time for some reason - no error
but currently only have one moderated "thread" vs a moderated "post"

It isn't highlighted in red though
would making these changes only affect "posts" and not new moderated "threads"?

Edit: FYI ...I put it above the line {vb:raw post.message} and seemed to have no affect
though the thread while still Awaiting Moderation was already present before making the change
so maybe it only affects new messages made after the change?

BirdOPrey5 01-27-2011 09:34 PM

That is correct, this is only for moderated posts. If you wan to see it in threads it looks like you have to edit the threadbit template, you can use the same code but you'll have to figure out the best place to put it.

Bluemax712 01-27-2011 09:41 PM

damn - you expect me to actually figure something out on my own - lol
Thanks much for the help ...will post back if it all works in the end :)

BirdOPrey5 01-27-2011 10:42 PM

Quote:

Originally Posted by apsrfvb4 (Post 2155481)
damn - you expect me to actually figure something out on my own - lol
Thanks much for the help ...will post back if it all works in the end :)

It's a constant struggle to provide just as much help as I think someone needs to figure it for themselves so they can learn something along the way and one day be in a position to help others.

It's a "teach a man to fish" scenario over here. :)

diddy29 01-30-2013 05:27 AM

Thanks for this! :)

fworth 02-01-2013 09:23 PM

I'm looking to implement this in Vb 4.2 and can't find the code {vb:raw post.message}
in order to highlight Awaiting Moderation posts in bold, too. Please help!

BirdOPrey5 02-02-2013 11:00 AM

{vb:raw post.message} is most definitely in VB 4.2.0 postbit and postbit_legacy template. Use your browser's "Find on page" feature if you are missing it with your eyes.


All times are GMT. The time now is 03:29 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.00975 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_code_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