Quote:
Originally Posted by Junkie
Is there a way to remove the vBulletin "Give Infraction" link that shows in the user's profile and the icon  that shows in the postbit?
|
There is no "switch" eg a setting that controls this (so you would be allowed to enable / disable it) but you can always edit the templates and remove that code but personally i would recommend not to touch this or comment it out
HTML Code:
<!-- this is a comment --> <- the comment ends here
you would have to edit postbit & postbit_legacy and MEMBERINFO as an example look at the attached picture this is my postbit_legacy template (teststyle) i use this for testing things only.Now where did the infraction icons go ?

open postbit_legacy and look for
HTML Code:
<if condition="$show['infractionlink']"><a href="infraction.php?$session[sessionurl]do=report&p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/infraction.gif" alt="<phrase 1="$post[username]">$vbphrase[add_infraction_for_x]</phrase>" border="0" /></a></if>
replace that with
HTML Code:
<!--<if condition="$show['infractionlink']"><a href="infraction.php?$session[sessionurl]do=report&p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/infraction.gif" alt="<phrase 1="$post[username]">$vbphrase[add_infraction_for_x]</phrase>" border="0" /></a></if>-->
look for
HTML Code:
<if condition="$show['redcard']">
<a href="infraction.php?$session[sessionurl]do=view&p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]" border="0" /></a>
<else />
<if condition="$show['yellowcard']">
<a href="infraction.php?$session[sessionurl]do=view&p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
</if>
</if>
replace with
HTML Code:
<!--<if condition="$show['redcard']">
<a href="infraction.php?$session[sessionurl]do=view&p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]" border="0" /></a>
<else />
<if condition="$show['yellowcard']">
<a href="infraction.php?$session[sessionurl]do=view&p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
</if>
</if>-->
look for
HTML Code:
<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
and replace with
HTML Code:
<!--<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>-->
postbit_legacy is done now.This is just an example to get you started.This way the code is never removed if you need it later on you can uncomment it and ...