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
  #2  
Old 07-20-2009, 07:52 PM
erel34's Avatar
erel34 erel34 is offline
 
Join Date: Dec 2007
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
Reply With Quote
  #3  
Old 07-20-2009, 10:22 PM
H22A H22A is offline
 
Join Date: Apr 2009
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks buddy
Reply With Quote
  #4  
Old 07-20-2009, 10:34 PM
Sweeks Sweeks is offline
 
Join Date: Jul 2008
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent, thanks!
Reply With Quote
  #5  
Old 07-21-2009, 12:53 AM
ITDarasgah's Avatar
ITDarasgah ITDarasgah is offline
 
Join Date: Mar 2009
Location: Pakistan
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Install ...thanks
Reply With Quote
  #6  
Old 07-21-2009, 06:20 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 07-25-2009, 01:11 PM
Frondy's Avatar
Frondy Frondy is offline
 
Join Date: Feb 2009
Location: Zagreb, Croatia
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

_
Reply With Quote
  #8  
Old 07-26-2009, 12:03 AM
UltimateOreo! UltimateOreo! is offline
 
Join Date: Nov 2006
Location: Missouri
Posts: 462
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's the same for postbit and postbig legacy, so you don't really have to worry about that.
Reply With Quote
  #9  
Old 07-26-2009, 08:04 PM
.Tim's Avatar
.Tim .Tim is offline
 
Join Date: Jan 2005
Location: Oklahoma City
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome.
Reply With Quote
  #10  
Old 07-30-2009, 04:02 PM
TAIFUN_T's Avatar
TAIFUN_T TAIFUN_T is offline
 
Join Date: Apr 2009
Location: Ukraine
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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);}
Attached Images
File Type: jpg infraction.jpg (21.3 KB, 0 views)
File Type: jpg warning.jpg (23.6 KB, 0 views)
Attached Files
File Type: zip Visible Infractions & Warnings.zip (147.7 KB, 19 views)
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 09:37 AM.


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.04338 seconds
  • Memory Usage 2,337KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_php
  • (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
  • (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
  • (9)postbit
  • (8)postbit_attachment
  • (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_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