Guest NFuzeDean Posted January 30, 2014 Share Posted January 30, 2014 Hello, I want to show a custom block (Unreal Portal 3.0.3) only to specific user groups for example guests. What I've tried is this: <if test="IPSMember::isInGroup( $this->memberData, array(2) )"> Content here. </if> I have also tried using pure php: <?php if (IPSMember::isInGroup( $this->memberData, array(2,3,5,7) ) { echo "some stuff here"; } ?> Thanks in advance for any advice! Kind Regards Link to comment Share on other sites More sharing options...
0 Guest NFuzeDean Posted January 30, 2014 Share Posted January 30, 2014 Thanks it worked just fixed your speeling errors, I guess fast typing I love you (no home) xD That's what I've used now: <?php if (in_array($this->memberData[member_group_id], array(2,3,5,7)) ) { echo "some stuff here"; } ?> Link to comment Share on other sites More sharing options...
0 Lock Down Posted January 30, 2014 Share Posted January 30, 2014 try this ?php if (in_array($this->memberData[member_group_id), array(2,3,5,7)) ) { echo "some stuff here"; } ?> Link to comment Share on other sites More sharing options...
0 -Cookie- Posted January 30, 2014 Share Posted January 30, 2014 The question(s) in this support topic have been answered and the owner has been able to solve the problem. Because of this, the support topic has been closed and moved.If you have other questions, please open a new topic. Link to comment Share on other sites More sharing options...
Question
Guest NFuzeDean
Hello,
I want to show a custom block (Unreal Portal 3.0.3) only to specific user groups for example guests.
What I've tried is this:
I have also tried using pure php:
<?php if (IPSMember::isInGroup( $this->memberData, array(2,3,5,7) ) { echo "some stuff here"; } ?>Thanks in advance for any advice!
Kind Regards
Link to comment
Share on other sites
3 answers to this question
Recommended Posts