mrgreen 1 Posted January 29, 2019 Share Posted January 29, 2019 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 More sharing options...
mrgreen 1 Posted January 30, 2019 Author Share Posted January 30, 2019 Humm _---_ Link to comment Share on other sites More sharing options...
S!r.ReaDy 120 Posted February 13, 2019 Share Posted February 13, 2019 (edited) 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 February 13, 2019 by S!r.ReaDy 1 Link to comment Share on other sites More sharing options...
mrgreen 1 Posted February 16, 2019 Author Share Posted February 16, 2019 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 More sharing options...
S!r.ReaDy 120 Posted February 16, 2019 Share Posted February 16, 2019 You're welcome 1 Link to comment Share on other sites More sharing options...
Recommended Posts