Jump to content

How do I display a certain message to a blocked group?


Ofra Yechiel

Recommended Posts

I have a group of "Past Members" (ones that no longer meet the age restrictions of our forums). They are set to "Can access site?" = No. 

Is it possible to display a message specifically to this group after a login attempt has been made? 

We would like to explain why they can't login, and invite them to join the organization (now that they are old enough). 

If it is possible, how do I do this? 

 

Thank you. 

Link to comment
Share on other sites

Theme template core->front->global->error.

Insert this code in <div id='elErrorMessage' class='ipsPos_center'> of wherever you see fit:

{{if \IPS\Member::loggedIn()->inGroup(X)}}
Your message
{{endif}}

Replace X with the ID of the "Past Members" group.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...