Log in

View Full Version : $show['usernoteview'] in postbit ?


makaiguy
04-21-2006, 12:52 AM
I'm playing around with peterska2's User Note Info in Postbit (https://vborg.vbsupport.ru/showthread.php?t=101083) hack, and trying to wrap a conditional around it so that only those authorized to view usernotes would see the link.

<if condition="$show['usernoteview']">
...
</if>

This conditional is used in MEMBERINFO template but as far as I can tell $show['usernoteview'] is not populated in postbit. Any tips on how to get this to work?

Freesteyelz
04-21-2006, 12:54 AM
Try $post instead of $show, though, untested.

Ohh...And I think this thread is in the wrong forum. :)

makaiguy
04-21-2006, 12:56 AM
Try $post instead of $show.

Ohh...And I think this thread is in the wrong forum. :)

Yes it is, I reported it about 10 seconds after I posted it.

$post would return the info for the poster of the message, I need the info for the person viewing the message.

eNforce
04-21-2006, 12:58 AM
<if condition="!is_member_of($bbusergroup, x)">

would that not work? add your usergroups that are allowed to view notes

Freesteyelz
04-21-2006, 01:04 AM
Ohh...I C. You want a certain Usergroup to view the usernote in postbit. The conditional you want, at least for the permission, is:


<if condition="is_member_of($bbuserinfo, x, y, z)">
...
</if>


Where "x", "y" and "z" are change to the Usergroups you want to have access to the Usernotes.

Edited: Ooops! eNforce got it before me. :)

makaiguy
04-21-2006, 01:06 AM
<if condition="!is_member_of($bbusergroup, x)">

would that not work? add your usergroups that are allowed to view notes

Thanks. I thought about that, but if you change the group permissions, you then have to come back and edit the postbit template. It's much cleaner if it automatically takes care of it.

But it may come to that, yet.

Edited: Ooops! eNforce got it before me. :)

Yep. But you got the syntax right. :up: