Log in

View Full Version : Postbit mod question


marrr
07-18-2008, 03:25 PM
Im trying to get
--new--
<if condition="$post['field5']">
<div class="postinfo">
<a href="http://bf2tracker.com/bf2_userprofile.php?bf2id=$post[field5]" target="_blank"><img src="$stylevar[imgdir_misc]/bf2.gif" alt="<phrase 1="$userinfo[username]">$vbphrase[view_bf2_stats]</phrase>" border="0" /></a></if>

<if condition="$post['field6']">
<a href="http://xxxx.hlstatsx.com/?mode=playerinfo&player=$post[field6]" target="_blank"><img src="$stylevar[imgdir_misc]/hlstatsx.gif" alt="<phrase 1="$userinfo[username]">$vbphrase[view_hlstatsx_stats]</phrase>" border="0" /></a></div>
</if>

---new---

to line up on the same line in the postbit but its not working out right

heres when i add the bf2 stats by itself http://www.element-119.com/demon/bf2forum.jpg

then heres when i add the hlstatx by itself
http://www.element-119.com/demon/statsforum.jpg

how can i fix this

thanks

Lynne
07-18-2008, 05:37 PM
You probably want to enclose them each with the div tags:
<div class="postinfo">
your url here
</div>

Make sure that each condition has the beginning div tag and ending div tag.

marrr
07-18-2008, 06:00 PM
Thing is im trying to get them to show up in the same box because they are both links to stats pages. I dont want them to show up in seperate boxes. ex

http://www.element-119.com/demon/likethis.jpg

Opserty
07-18-2008, 07:03 PM
<if condition="$post['field5'] OR $post['field6']">
<div class="postinfo">
<if condition="$post['field5']">
<a href="http://bf2tracker.com/bf2_userprofile.php?bf2id=$post[field5]" target="_blank">
<img src="$stylevar[imgdir_misc]/bf2.gif" alt="<phrase 1="$userinfo[username]">$vbphrase[view_bf2_stats]</phrase>" border="0" />
</a>
</if>

<if condition="$post['field6']">
<a href="http://xxxx.hlstatsx.com/?mode=playerinfo&player=$post[field6]" target="_blank">
<img src="$stylevar[imgdir_misc]/hlstatsx.gif" alt="<phrase 1="$userinfo[username]">$vbphrase[view_hlstatsx_stats]</phrase>" border="0" />
</a>
</if>
</div>
</if>

marrr
07-18-2008, 07:29 PM
yes it worked!! Thanks alot dude your the man :) :)