2012-12-02, 09:55 AM
I'm trying to make it so staff miniprofiles appear differently than a regular user's miniprofile. I have the plug in that allows me to use a kind of short hand version of php in my templates. If you're unsure what that is, you can view it here: http://mybbhacks.zingaburga.com/showthread.php?tid=260
Anyway, when I set it to affect just one of the staff groups, it works great, but when I try to set it to multiple groups, that's when problems arise.
What I've got looks something of this sort...
Now, the problem I'm currently am having is no matter what I try, no matter what I read on and try to implement, it either:
- will ONLY work for the first staff group listed (here, usergroup 3), and every other group listed as well as any not listed at all just displays as a normal user
- OR it will work for ALL groups, staff and user alike, indiscriminately but for the guest accounts, which will display as I have set them too.
Any ideas?
Anyway, when I set it to affect just one of the staff groups, it works great, but when I try to set it to multiple groups, that's when problems arise.
What I've got looks something of this sort...
<!-- GUEST VS. MEMBER DECIDER -->
<if $post['uid'] then>
<if $post['usergroup'] == '3 or 8' then><!-- STAFF POST BIT -->
stuff
<elseif $post['usergroup'] != '3' then><!-- REGULAR POST BIT //-->
stuff
<elseif $post['uid']== '4' then><!-- SPECIAL PROFILE WITH CUSTOM DESIGN. NO ISSUE GETTING THIS TO WORK -->
more stuff
</if>
<else><!-- GUEST POST BIT -->
even more stuff
</if>
Now, the problem I'm currently am having is no matter what I try, no matter what I read on and try to implement, it either:
- will ONLY work for the first staff group listed (here, usergroup 3), and every other group listed as well as any not listed at all just displays as a normal user
- OR it will work for ALL groups, staff and user alike, indiscriminately but for the guest accounts, which will display as I have set them too.
Any ideas?