Log in

View Full Version : Execute if its your own post


ForgotenDynasty
05-06-2009, 10:38 PM
Im working on a skin and im trying to make it so the background to others post is blue and the background to your post is yellow however I cant seem to get the conditional statement to work.
Any suggestions on how to execute a code if its only your post

This is what ive been using but it doesn't work :(
<if condition="$bbuserinfo[username] == $post[musername]">yellow<else />blue</if>

EnIgMa1234
05-06-2009, 10:47 PM
Im working on a skin and im trying to make it so the background to others post is blue and the background to your post is yellow however I cant seem to get the conditional statement to work.
Any suggestions on how to execute a code if its only your post

This is what ive been using but it doesn't work :(
<if condition="$bbuserinfo[username] == $post[musername]">yellow<else />blue</if>
Try
<if condition="$bbuserinfo[userid] == $post[userid]">

ForgotenDynasty
05-07-2009, 09:26 PM
Thanks that worked