PDA

View Full Version : Am i missing something?


Yours Truly
08-06-2007, 11:25 AM
Im trying to sort the username dropdown in the postbit so it should display add as a buddy if they are not your buddy and remove from buddy if they already are your buddy im also trying to do the same with the ignore person feature.

The code im using is:

<if condition="$post['userid'] AND $show['member'] AND $show['addbuddylist']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_buddy_list]</phrase></a>
<else />
<a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=buddy&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[remove_x_from_your_buddylist]</phrase></a>
</if></td></tr>
<if condition="$post['userid'] AND $show['member'] AND $show['addignorelist']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=ignore&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_ignore_list]</phrase></a>
<else />
<a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=ignore&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[remove_x_from_your_ignorelist]</phrase></a>
</if></td></tr>
</if>

But none of them show up. Any suggestions?