View Full Version : Showing an infraction yellowcard in postbit
kyokushin4life
10-16-2007, 03:35 AM
How do I show an infraction yellowcard in postbit when the point is given to a member?
Marco van Herwaarden
10-16-2007, 07:03 AM
The Yellow-card shows by default in the postbit when the post received a warning.
kyokushin4life
10-16-2007, 08:27 AM
can you tell me the default php code please?
Marco van Herwaarden
10-16-2007, 09:31 AM
Huh?
There is no PHP-code to show.
If you do not see it after there was an infraction/warning, then you either don't have the permission to view it, you have changed your style or you are running a real old version.
kyokushin4life
10-16-2007, 07:59 PM
Marco,
i'm running a custom style so it's missing a code to display it.. would you kindly help to find me a code for this?
--------------- Added 1192573655 at 1192573655 ---------------
I found it.
<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>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.