Jump to content
Дизайн и модификация Invision Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Kauman

Бан пользователей и редерикт IPB 3.4.6

Recommended Posts

Здравствуйте, как сделать, чтобы после бана пользователь перенаправлялся на страницу /offline допустим

Группа забаненых - 5, вот пример на котором пытался основать такой бан, но ничего не вышло, прошу помощи.

 

<?if($group_id = "5")?> <meta http-equiv="refresh" content="0;URL=/offline.php"> <?endif?>

Share this post


Link to post
<if test="$this->memberData['member_group_id'] == 5">
<!-- code -->
</if>

Share this post


Link to post
<php>
if( IPSMember::isInGroup( $this->memberData, array(5) ) )
{
   echo '<meta http-equiv="refresh" content="0;URL=/offline.php">';
   exit();
}
</php>
 

Share this post


Link to post

Доброго дня.

<php>
if( ipsMember::isInGroup( $this->memberData, array(5) ) )
{
   echo '<meta http-equiv="refresh" content="0;URL=/offline.php">';
   exit();
}
</php>

Подскажите в какой файл и в какое место добавлять этот код?

Edited by asm83

Share this post


Link to post

Подскажите в какой файл и в какое место добавлять этот код?

В шаблоне globalTemplate в самом вверху.

  • Upvote 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...