I'd like to improve my forums usage / display of the best (personally selected) photos that exist within our xFMG. I've got a couple "xFMG: Media Slider" widget requirements I'm trying to figure out below. Help?
- Filter photos by tag(s) instead of by category(s)
- Limit widget to specific user group(s) (easy conditional. see below)
- Media slider only seams to work displaying latest. Random breaks it.
- Chris's post on user groups display conditional...
You can do user group checks too:
(Visitor is member of groups 3, 4 or 5)(Visitor is not a member of groups 3, 4, or 5)Code:
$xf.visitor.isMemberOf([3, 4, 5])(Visitor is a member of group 3, but not group 4)Code:
!$xf.visitor.isMemberOf([3, 4, 5])And so on. You can also do permission checks directly:Code:
$xf.visitor.isMemberOf(3) AND !$xf.visitor.isMemberOf(4)Code: