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! 08-01-2009 05:03 AM

Quote:

Originally Posted by TAIFUN_T (Post 1858596)
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
===
http://i064.radikal.ru/0907/6e/09616d9d6d61t.jpg

http://s47.radikal.ru/i115/0907/75/fce6542c9c9ct.jpg

Fantastic edit. Thank you for the contribution.

klaush 08-01-2009 10:57 AM

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.

UltimateOreo! 08-01-2009 08:04 PM

Quote:

Originally Posted by klaush (Post 1859503)
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.

TAIFUN_T 08-01-2009 08:07 PM

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.

sisterhood 08-02-2009 05:20 PM

Really great idea

installed and work

TheLab 10-03-2009 06:42 PM

Quote:

Originally Posted by TAIFUN_T (Post 1858596)
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

Llandy 10-04-2009 05:33 PM

5 stars and marked as installed!

juanpablo 12-04-2009 11:19 AM

Excellent work.
as you can add the link of the warning or infractions so that users can view?

MrRem 01-01-2010 06:55 PM

One step closer to vbChan hahaha
Nice mod

Installed: http://swedishseat.com

DEGE 06-22-2010 09:14 PM

Quote:

Originally Posted by hornstar1337 (Post 1852688)
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


All times are GMT. The time now is 08:34 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.01356 seconds
  • Memory Usage 1,742KB
  • 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
  • (4)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