PDA

View Full Version : Postbit Template


SnowBot
02-05-2005, 02:34 PM
OK it says for the legacy do

NOTE:
=====
the step which adds the warn sign in the warned posts, is a bit different in the postbit_legacy template. So please do not apply the change shown above. In the postbit_legacy template, please find:

<td class="alt1">
<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
</if>

Replace that with:

<td class="alt1">
<TABLE width=100%><TR>
<TD width=90%>
<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
<if condition="$show['messageicon']">
<img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" />
</if>
<if condition="$post['title']">
<strong>$post[title]</strong>
</if>
</div>
</if>
</td>
<TD width=10% align="$stylevar[right]">
<if condition="THIS_SCRIPT=='showthread' AND ($bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7) AND $post[warn_flag]>0">
<A HREF="Warn.php?do=ViewPostWarnings&post=$post[postid]" onclick="window.open('Warn.php?do=ViewPostWarnings&post=$post[postid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank"><img src="images/misc/warn.gif" border=0></a>
</if>
</td>
</tr></table>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />


Well i have a custom skin and cant figure out where / what to do here.

This is the part i think its looking for.

<td class="alt2" style="border-left: 1px solid #FFFFFF; border-bottom: 1px solid #89959B;">

<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<!-- / icon and title -->
</if>

<!-- message -->
<div>$post[message]</div>
<!-- / message -->

MindTrix
02-05-2005, 03:28 PM
Yeah it seems like you only have a different td class at the beginning and thats it so try this.

find


<td class="alt2" style="border-left: 1px solid #FFFFFF; border-bottom: 1px solid #89959B;">

<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<!-- / icon and title -->
</if>


And replace it with


<td class="alt2" style="border-left: 1px solid #FFFFFF; border-bottom: 1px solid #89959B;">
<TABLE width=100%><TR>
<TD width=90%>
<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
<if condition="$show['messageicon']">
<img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" />
</if>
<if condition="$post['title']">
<strong>$post[title]</strong>
</if>
</div>
</if>
</td>
<TD width=10% align="$stylevar[right]">
<if condition="THIS_SCRIPT=='showthread' AND ($bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7) AND $post[warn_flag]>0">
<A HREF="Warn.php?do=ViewPostWarnings&post=$post[postid]" onclick="window.open('Warn.php?do=ViewPostWarnings&post=$post[postid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank"><img src="images/misc/warn.gif" border=0></a>
</if>
</td>
</tr></table>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />


Make sure you make a backup of your template first though just incase it doesnt work. Then you can easily paste the old template in and be ok again.

Good luck

SnowBot
02-05-2005, 04:11 PM
Thanks, i will give that a try. :)

* SnowBot sux at html :(

MindTrix
02-05-2005, 04:53 PM
Same here :) Let me know if it works or not

sv1cec
02-06-2005, 06:24 PM
Same here :) Let me know if it works or not
It should work fine in that place.

Rgds