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)

UltimateOreo! 07-19-2009 10:00 PM

Visible Infractions & Warnings
 
1 Attachment(s)
Support will only be given in this thread to those who clicked install!

Inspired by a popular 4chan feature, this is a great way to show what is and what is not acceptable on your forums. If the entire community can see what what they can get an infraction for, there are less likely to do it.

It's a very simple modification. If a user is given an infraction, it will display the respective text underneath the post, but above the signature. Same if the user is only given a warning. It will not edit or alter any other part of the postbit.

If you don't like the colors, they can be easily changed with either simple HTML knowledge or "googling" hex codes.

Thank you Dismounted, couldn't have created it without your help.
https://vborg.vbsupport.ru/showthread.php?t=218966

If you need help installing this modification, please read my tutorial on installing hacks.
https://vborg.vbsupport.ru/showthread.php?t=149588

erel34 07-20-2009 07:52 PM

Thanks

H22A 07-20-2009 10:22 PM

thanks buddy

Sweeks 07-20-2009 10:34 PM

Excellent, thanks!

ITDarasgah 07-21-2009 12:53 AM

Install ...thanks

Hornstar 07-21-2009 06:20 AM

Could you get it to display the infraction they got to?

Eg. User received an infraction for spaming in this post.

A suggestion would be to make it look more official. Have the infraction symbol show before the words, maybe have a nice border around it. etc.

Frondy 07-25-2009 01:11 PM

1 Attachment(s)
I have made a little modification: (Postbit Legacy)

PHP Code:

<if condition="$post['infraction'] == 2">
<
a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><font color="red"><b>$vbphrase[received_infraction] - </b></font><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]border="0" /></a>
</if>
<if 
condition="$post['infraction'] == 1">
<
a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><font color="#FFCC11"><b>$vbphrase[received_warning] - </b></font><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]border="0" /></a>
</if> 


The result is that warning is language phrase, and visible symbol added (red or yellow card)
Allso, warning is clickable, so you can see why and by whom is warnig given....
Hope you like it

Prewiev:

Attachment 102459

Attachment 102460

_

UltimateOreo! 07-26-2009 12:03 AM

It's the same for postbit and postbig legacy, so you don't really have to worry about that.

.Tim 07-26-2009 08:04 PM

Awesome.

TAIFUN_T 07-30-2009 04:02 PM

1 Attachment(s)
Modification

1. Upload images
2. Open template postbit or postbit_legacy

Search:
Code:

<!-- message -->
                <div id="post_message_$post[postid]">
                        $ad_location[ad_showthread_firstpost_start]
                        $post[message]
                </div>
                <!-- / message -->

Add below:
(Can view according to Usergroup Permissions)
Code:

<if condition="$show['redcard']">
<if condition="$post['infraction'] == 2">
<div class="moder-warning"><b>(USER RECEIVED AN WARNING FOR THIS POST)</b></div>
</if>
</if>
<if condition="$show['yellowcard']">
<if condition="$post['infraction'] == 1">
<div class="moder-infraction"><b>(USER RECEIVED A INFRACTION FOR THIS POST)</b></div>
</if>
</if>

OR
(Can View all users)
Code:

<if condition="$post['infraction'] == 2">
<div class="moder-warning"><b>(USER RECEIVED AN WARNING FOR THIS POST)</b></div>
</if>
<if condition="$post['infraction'] == 1">
<div class="moder-infraction"><b>(USER RECEIVED A INFRACTION FOR THIS POST)</b></div>
</if>

Save.

3. Go to Styles & Tempates->Style Manager->Main CSS->
Add in "Additional CSS Definitions" :
Code:

.moder-infraction,.moder-warning{margin:2em;margin-left:auto;margin-right:auto;width:70%!infraction;min-height:40px;clear:both;text-align:justify;vertical-align:middle;border-collapse:collapse;padding:15px 20px 15px 80px;background-position:20px 50%;background-repeat:no-repeat;-moz-border-radius:20px;-khtml-border-radius:20px;-webkit-border-radius:20px;border-radius:20px;}
.moder-infraction{background-color:#ffc;background-image:url(images/infractions/infraction.png);}
.moder-warning{background-color:#fdd;background-image:url(images/infractions/warning.png);}



All times are GMT. The time now is 04:51 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.02070 seconds
  • Memory Usage 1,749KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_php_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