Matt777
Member
Just bought Xenforo and imported my vbulletin forum into it. Xenforo is great. I just need to make one customization though that my vbulletin had.
I have a custom usergroup called "Registered PRIVATE Users", whose posts should NOT be displayed to unregistered visitors.
In vbulletin, my custom IF-conditional code looks like this, which is in the postbit template:
Basically, to view a post you have to be either...
a) a registered member
Or
b) a visitor, but it can't be a post by someone in the group Registered Private User
My question is, how would I code this into Xenforo? It should be pretty simple I imagine.
I have a custom usergroup called "Registered PRIVATE Users", whose posts should NOT be displayed to unregistered visitors.
In vbulletin, my custom IF-conditional code looks like this, which is in the postbit template:
<if condition="$bbuserinfo[userid] || ($post[displaygrouptitle] != "Registered PRIVATE Users" && !$bbuserinfo[userid])">
CODE TO SHOW POST
</else>
DISPLAY NOTHING
</if>
Basically, to view a post you have to be either...
a) a registered member
Or
b) a visitor, but it can't be a post by someone in the group Registered Private User
My question is, how would I code this into Xenforo? It should be pretty simple I imagine.