PDA

View Full Version : Problem with displaying warns in postbit template


Archarius
05-01-2005, 08:16 AM
hello! I`m new in vB so please don`t shout at me :)
I`ve installed AWS mod, and everything works fine, but there are no warnings shown in the topic view (Normally they should be displayed in red under reputation of the warned poster). I`ve added all nessesery things to postbit template.

Additionally i can`t change anything in that template now (that`s the funnest thing). I edit postbit template but it doesn`t affect on the forum look. So what should I do to change that template? (When I was installing that hack there were no problems with it...)

Here is an example: http://forum.tibia.org.pl/showthread.php?p=62805#post62805

sv1cec
05-01-2005, 04:38 PM
You are using the postbit_legacy template in your forums, not the postbit one. So the changes should be done in that template. Be careful, as the intructions are somewhat complicated for that template.

I guess you have done the changes for the warning sign (the one which looks like a STOP), but not the ones for the points.

Find this in your postbit_legacy:


<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
<div>
$vbphrase[posts]: $post[posts]
<if condition="$show['reputation']">$post[reputationdisplay]</if>


Below that, add:


<if condition="$showpoints==1">
<if condition="$post[alerts]>0">
<font color="#ff0000">
<BR>Alerts: $post[alerts]
<font color="#000000">
</if>
<if condition="$post[warnings]>0">
<font color="#ff0000">
<BR>Warnings: $post[warnings]
<font color="#000000">
</if>
<if condition="$post[warning_level]>0">
<font color="#ff0000">
<BR>Warnings Level: $post[warning_level]
<font color="#000000">
</if>
<if condition="$post[warning_bans]>0">
<font color="#ff0000">
<BR>Number of bans: $post[warning_bans]
<font color="#000000">
</if>
</if>



Rgds