vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Miscellaneous Hacks - Visible Infractions & Warnings (https://vborg.vbsupport.ru/showthread.php?t=219038)

mavrick4283 06-29-2010 01:29 AM

Will this be updated for VB 4?

ricardoNJ 06-29-2010 04:20 AM

Testing....

TheInsaneManiac 11-23-2010 08:00 PM

4.0 Standards:

Find:
Code:

                        <div id="post_message_{vb:raw post.postid}">
                                <blockquote class="postcontent restore">
                                        {vb:raw post.message}
                                </blockquote>
                        </div>

Below Add:
Code:

<vb:if condition="$post['infraction'] == 2">
<font color="red"><b>(USER RECEIVED AN INFRACTION FOR THIS POST)</b></font>
</vb:if>
<vb:if condition="$post['infraction'] == 1">
<font color="#FFCC11"><b>(USER RECEIVED A WARNING FOR THIS POST)</b></font>
</vb:if>


cowcowcow 03-10-2011 11:08 PM

Quote:

Originally Posted by DEGE (Post 2057699)
I agree. The infraction title should be shown to get this more effective on other user's behaviour

Did anybody find that variable to get it displayed?

As far as I found it's $infractioninfo[reason] in the template userinfraction_view...

Don't know how to find it in postbit....

DEGE

I agree as well! there needs to be a reason so people know why they are warned.

ive tried using the following below the code in similar if statements but these variables dont seem to work

$infraction[infractionlevelid] == 1 doesnt work and neither does $post[infractionlevelid] == 1

neitehr does putting the phrase $vbphrase[infraction_reason] or $infraction[reason] after the code work.

Im so clueless so if anyone has any ideas pleaseeeeeeeeeeeeeee help out!

Zylantex 03-14-2011 04:54 PM

Very nice mod. I've installed a mix of a couple of the possibilities above and it's looking good.

GotWalked 04-25-2011 06:30 AM

thanks /b/ro! installing now; will report back.

GotWalked 04-25-2011 06:36 AM

Okay, installed; testing. Does it work for BANNING?

GotWalked 04-25-2011 06:37 AM

it does not. what would the additional code be and where would it go to add "USER WAS BANNED FOR THIS POST"

lycheepassion 06-07-2011 04:45 AM

Anything similar for 4?

merk_aus 08-03-2011 07:26 AM

Quote:

Originally Posted by lycheepassion (Post 2204502)
Anything similar for 4?

Yes it was posted about four posts ago/


All times are GMT. The time now is 08:36 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.01231 seconds
  • Memory Usage 1,731KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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