MyBB Hacks

Full Version: Template Conditionals
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11
So the code would be written as:

Code:
<if $mybb->user['usergroup'] == X then>Blah</if>

For the viewer (ignoring additional usergroups), yep.
What if I wanted to include additional usergroups? Sorry for all the questions. If you would like we can take this to a private message.

Say I wanted to show multiple usergroups on a profile? Main usergroup and additional usergroups?
This question:
(11-07-2015 05:19 AM)iamkristrammell Wrote: [ -> ]What if I wanted to include additional usergroups?

is different with this one:
(11-07-2015 05:19 AM)iamkristrammell Wrote: [ -> ]Say I wanted to show multiple usergroups on a profile? Main usergroup and additional usergroups?

For the first one, maybe this thread can help you, or you can add is_member as white list functions into phptpl_allowed_funcs.txt
http://mybbhacks.zingaburga.com/showthre...http://mybbhacks.zingaburga.com/showthread.php?tid=

For the 2nd one, you can use this plugin:
http://mybbhacks.zingaburga.com/showthread.php?tid=270
Never mind, I found what you were talking about.

What I mean is when I post in this:

Code:
<if $memprofile['usergroup'] == 8 then><img src="http://i.imgur.com/9RW7Hll.png" width="35" height="35" /></if> - <if $memprofile['usergroup'] == 9 then><img src="http://i.imgur.com/e3dbv8G.png" width="35" height="35" /></if>


it only shows the first one and not my second group even though I am in both. "8" is the group that is my default at the moment, "9" is an additional group.

You were already given the answer: http://mybbhacks.zingaburga.com/showthre...http://mybbhacks.zingaburga.com/showthread.php?tid=851&pid=1054 (and please do read more than one post there)
Is there a conditional that I can wrap around {threads} to only make threads by a specific usergroup appear? Or is there an alternative method to this you'd suggest?
In forumdisplay?
You're better off having separate forums for each group.
@Zinga Burga - please, could you release a new version compatible with php7? I really miss this plugin, this is a must have plugin for MyBB but after my wehosting forced update to everybody to php7 it is not working anymore Frown Thank you!
(12-21-2015 12:08 AM)eldenroot Wrote: [ -> ]my wehosting forced update to everybody to php7
That's rather mean...
Pages: 1 2 3 4 5 6 7 8 9 10 11
Reference URL's