![]() |
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 |
Thanks
|
thanks buddy
|
Excellent, thanks!
|
Install ...thanks
|
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. |
1 Attachment(s)
I have made a little modification: (Postbit Legacy)
PHP Code:
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 _ |
It's the same for postbit and postbig legacy, so you don't really have to worry about that.
|
Awesome.
|
1 Attachment(s)
Modification
1. Upload images 2. Open template postbit or postbit_legacy Search: Code:
<!-- message --> (Can view according to Usergroup Permissions) Code:
<if condition="$show['redcard']"> (Can View all users) Code:
<if condition="$post['infraction'] == 2"> 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;} |
Quote:
|
Thanks for that!
One issue, if a warning is taken back, the the visible line will stay under the post. I think it would be better, if the line under the post could delete or something like this. |
Quote:
|
UltimateOreo!, thank you for idea (:
==== klaush, this is vB original specific for only "warning", because infraction is a small inaccuracy user.. notice.. only notice. If user reaches X points eg infraction for the warning, it will remain in post. |
Really great idea
installed and work |
Quote:
Value Error : width Lexical error at line 410, column 91. Encountered: "n" (110), after : "!i" 70%nfraction; Any idea how to solve this? Cheers |
5 stars and marked as installed!
|
Excellent work.
as you can add the link of the warning or infractions so that users can view? |
|
Quote:
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 |
Will this be updated for VB 4?
|
Testing....
|
4.0 Standards:
Find: Code:
<div id="post_message_{vb:raw post.postid}"> Code:
<vb:if condition="$post['infraction'] == 2"> |
Quote:
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! |
Very nice mod. I've installed a mix of a couple of the possibilities above and it's looking good.
|
thanks /b/ro! installing now; will report back.
|
Okay, installed; testing. Does it work for BANNING?
|
it does not. what would the additional code be and where would it go to add "USER WAS BANNED FOR THIS POST"
|
Anything similar for 4?
|
Quote:
|
I updated my post https://vborg.vbsupport.ru/showpost....6&postcount=10
|
All times are GMT. The time now is 08:33 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|