Jump to the post that solved this thread.
Thread Rating:
  • 2 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 8 Years, 8 Months, 3 Weeks ago redirect invalid forum and invalid thread to home page or index?
#7
Solved: 8 Years, 8 Months, 3 Weeks ago
@DrXotick thanks very much man.

@Leefish great idea thanks a lot. I will replace all :

error($lang->error_invalidthread);
error($lang->error_invalidforum);
error($lang->error_invalidpost);

With:

if (in_array($mybb->user['usergroup'], array('3','4','6'))) {
error($lang->error_invalidthread);
}
else
{
redirect("index.php", some error goes here);
}

Just nailed it thanks Smile




P.S. Do you think I can create a plugin for this without modifying core files?
Jump to the post that solved this thread.


Messages In This Thread
RE: redirect invalid forum and invalid thread to home page or index? - by marcus123 - 2014-05-11, 11:49 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)