Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved [How To?] Need a little help in permission
#1
Not Solved
i wanna know how can i setup permission so that if a certain group got the the forum section he can see the thread titles but when he click on the thread then he will be redirected to a link?

Any who help will be appreciated
#2
Not Solved
And what link do you want them to get redirected?
#3
Not Solved
it will be VIP section so when normal users click it they can be redirected to upgrade page
#4
Not Solved
Ask someone to create a simple plugin I just don't have time sorry!

Here is a plugin not tested so don't know if it'll work but I hope someone will fix it Smile

<?php

$plugins->add_hook('showthread_start', 'VIP');
function VIP_info()
{
	return array(
		"name"			=> "VIP member",
		"description"	=> "Users that are not in this group will be redirected to VIP page",
		"compatibility"	=> "16*"
	);
}




function VIP()
{
	global $mybb;
	if (!in_array($mybb->user['usergroup'], array(3, 4, 6))) {
		header("Location: http://www.letsforum.com"); /* Redirect browser */
exit();
	}
	
}

?>

Remember to change redirect URL Smile

Or use:

if (!in_array($mybb->user['usergroup'], array(3, 4, 6))) {
		error("error message");
	}


Forum Jump:


Users browsing this thread: 1 Guest(s)