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

Reply
 
Thread Tools Display Modes
  #11  
Old 01-27-2011, 08:29 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by apsrfvb4 View Post
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?
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.
Reply With Quote
  #12  
Old 01-27-2011, 08:52 PM
Bluemax712 Bluemax712 is offline
 
Join Date: Oct 2010
Posts: 186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #13  
Old 01-27-2011, 09:00 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #14  
Old 01-27-2011, 09:19 PM
Bluemax712 Bluemax712 is offline
 
Join Date: Oct 2010
Posts: 186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #15  
Old 01-27-2011, 09:34 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #16  
Old 01-27-2011, 09:41 PM
Bluemax712 Bluemax712 is offline
 
Join Date: Oct 2010
Posts: 186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #17  
Old 01-27-2011, 10:42 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by apsrfvb4 View Post
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.
Reply With Quote
  #18  
Old 01-30-2013, 05:27 AM
diddy29 diddy29 is offline
 
Join Date: Sep 2012
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this!
Reply With Quote
  #19  
Old 02-01-2013, 09:23 PM
fworth fworth is offline
 
Join Date: Jan 2013
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #20  
Old 02-02-2013, 11:00 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

{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.
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 01:09 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.04461 seconds
  • Memory Usage 2,265KB
  • 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
  • (3)bbcode_code
  • (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