Jump to content

about banned users


mrgreen

Recommended Posts

Hi there, i really need your help guys i just need to know how i can redirect banned users on xenforo 2 forum to a specific page, simply i dont want them to access the forum main page, any one knows?

Link to comment
Share on other sites

  • 2 weeks later...

You could create a new group banned, or if it is,  use the same statement from the frames tutorial,and redirect them to the new page.  _xfRedirect.  is used to redirect.

 

php

<xf:if is="{$user.user_group_id} == 6">

return $this->responseRedirect(
                    XenForo_ControllerResponse_Redirect::SUCCESS,
                    XenForo_Link::buildPublicLink('forums', $forum),
                    new XenForo_Phrase('forum', array('forum' => $forum['title']))
                );
Or easiers make a redirect rule.

RewriteRule ^(threads|forums|members|banned)/(.*)$ /community/$1/ [R=301,L]

Its an example and wont work.Is to get you to the idea

 

Edited by S!r.ReaDy
  • Thanks 1
Link to comment
Share on other sites

On 2/13/2019 at 11:04 AM, S!r.ReaDy said:

You could create a new group banned, or if it is,  use the same statement from the frames tutorial,and redirect them to the new page.  _xfRedirect.  is used to redirect.

 


php

<xf:if is="{$user.user_group_id} == 6">

return $this->responseRedirect(
                    XenForo_ControllerResponse_Redirect::SUCCESS,
                    XenForo_Link::buildPublicLink('forums', $forum),
                    new XenForo_Phrase('forum', array('forum' => $forum['title']))
                );

Or easiers make a redirect rule.

RewriteRule ^(threads|forums|members|banned)/(.*)$ /community/$1/ [R=301,L]

Its an example and wont work.Is to get you to the idea

You are genius thank you so much.

 

You are genius thank you so much.

Link to comment
Share on other sites

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