PDA

View Full Version : Little help with Postbit..


Convergys
12-09-2003, 07:10 PM
I am currently modifying the postbit template.. I have made it so that when you click the username, in the drop down list, there is now user notes... I have that functioning, but, I only want it to show for those that have permission... HOw can I accomplish this?

Herei s the code I currently have


<tr><td class="vbmenu_option">
<a href="usernote.php?$session[sessionurl]u=$userinfo[userid]"><phrase 1="$post[username]">$vbphrase[user_notes]</a></phrase></a></td></tr>


Now that works fine and I can see the user notes option, but everyone else can as well...

When I viewed the memberoptions templates... I noticed they used an If command that was this:


<if condition="$show['usernotes']">


That worked for the viewing a memebers profile... Only people who are supposed to see the User Notes can see them in the profile...

So I decided to add that little part to my code, thus having


<if condition="$show['usernotes']">
<tr><td class="vbmenu_option">
<a href="usernote.php?$session[sessionurl]u=$userinfo[userid]"><phrase 1="$post[username]">$vbphrase[user_notes]</a></phrase></a></td></tr>
</if?


But, now no one at all can see them...

What have I dont wrong here?

Thanks.

Convergys
12-09-2003, 08:53 PM
Got it......