Jump to content
WebFlake
  • 0

Unreal portal show block to specific membergroups


Guest NFuzeDean

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:

 

<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

3 answers to this question

Recommended Posts

  • 0
Guest NFuzeDean

Thanks it worked just fixed your speeling errors, I guess fast typing :P

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...