Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications

Reply
 
Thread Tools
Visible Infractions & Warnings Details »»
Visible Infractions & Warnings
Version: 1.00, by UltimateOreo! UltimateOreo! is offline
Developer Last Online: Dec 2009 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.8.x Rating:
Released: 07-19-2009 Last Update: Never Installs: 69
Template Edits
Re-useable Code Translations  
No support by the author.

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

Download Now

File Type: txt Install.txt (1.5 KB, 355 views)

Screenshots

File Type: jpg infraction.jpg (41.9 KB, 0 views)
File Type: jpg warning.jpg (44.1 KB, 0 views)
File Type: jpg infractionlegacy.jpg (38.2 KB, 0 views)
File Type: jpg warninglegacy.jpg (36.9 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 08-01-2009, 05:03 AM
UltimateOreo! UltimateOreo! is offline
 
Join Date: Nov 2006
Location: Missouri
Posts: 462
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TAIFUN_T View Post
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:
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);}
===
Download
===


Fantastic edit. Thank you for the contribution.
Reply With Quote
  #13  
Old 08-01-2009, 10:57 AM
klaush klaush is offline
 
Join Date: Oct 2005
Posts: 340
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #14  
Old 08-01-2009, 08:04 PM
UltimateOreo! UltimateOreo! is offline
 
Join Date: Nov 2006
Location: Missouri
Posts: 462
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by klaush View Post
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.
That is probably the default line in vBulletin that seperates the Signature from the rest of the post.
Reply With Quote
  #15  
Old 08-01-2009, 08:07 PM
TAIFUN_T's Avatar
TAIFUN_T TAIFUN_T is offline
 
Join Date: Apr 2009
Location: Ukraine
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #16  
Old 08-02-2009, 05:20 PM
sisterhood's Avatar
sisterhood sisterhood is offline
 
Join Date: Nov 2008
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Really great idea

installed and work
Reply With Quote
  #17  
Old 10-03-2009, 06:42 PM
TheLab TheLab is offline
 
Join Date: May 2003
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TAIFUN_T View Post
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);}
Hello and thanks for the mod but this CCS addition is giving errors in the W3C validator:
Value Error : width Lexical error at line 410, column 91. Encountered: "n" (110), after : "!i" 70%nfraction;

Any idea how to solve this?

Cheers
Reply With Quote
  #18  
Old 10-04-2009, 05:33 PM
Llandy's Avatar
Llandy Llandy is offline
 
Join Date: Mar 2009
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

5 stars and marked as installed!
Reply With Quote
  #19  
Old 12-04-2009, 11:19 AM
juanpablo's Avatar
juanpablo juanpablo is offline
 
Join Date: Oct 2006
Location: Argentina, Buenos Aires
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent work.
as you can add the link of the warning or infractions so that users can view?
Reply With Quote
  #20  
Old 01-01-2010, 06:55 PM
MrRem MrRem is offline
 
Join Date: Jun 2009
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One step closer to vbChan hahaha
Nice mod

Installed: http://swedishseat.com
Reply With Quote
  #21  
Old 06-22-2010, 09:14 PM
DEGE DEGE is offline
 
Join Date: Aug 2009
Location: Buenos Aires
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hornstar1337 View Post
Could you get it to display the infraction they got to?

Eg. User received an infraction for spamming 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.

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
Reply With Quote
Reply

Thread Tools

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 03:35 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.04837 seconds
  • Memory Usage 2,337KB
  • Queries Executed 27 (?)
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
  • (4)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete