Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 9 Years, 2 Weeks ago permissions very confusing
#1
Solved: 9 Years, 2 Weeks ago
i have some forums i want to make private but permissions are confused. if i do hide private forums it hides private forums but i dont want to hide. i want them to show but when users that have no permissions click see no permission page. if i dont hide private forums the forums are visible but threads and posts number are hidden and show only this stripe - and when user clicks they see nothing. i want them to show but when users that have no permissions click see no permission page. how can i make this?
#2
Solved: 9 Years, 2 Weeks ago
(2012-11-20, 08:22 PM)tarekovski Wrote: i have some forums i want to make private but permissions are confused. if i do hide private forums it hides private forums but i dont want to hide. i want them to show but when users that have no permissions click see no permission page. if i dont hide private forums the forums are visible but threads and posts number are hidden and show only this stripe - and when user clicks they see nothing. i want them to show but when users that have no permissions click see no permission page. how can i make this?

You will need to edit 2 files for that. At the forumdisplay.php file inside the root of your forum find the following code:

else
{
	$threadcache = $tids = null;
}

And replace it with:

else
{
	error_no_permission();
}

Save the changes and reupload the file back.

Then at the functions_forumlist.php file inside the inc file find the following code:

if($permissions['canviewthreads'] != 1)
{
	$hideinfo = true;
}

And replace it with:

if($permissions['canviewthreads'] != 1)
{
	$hideinfo = false;
}

Save the changes and reupload the file back.

That should do the trick. Hope it helped.
#3
Solved: 9 Years, 2 Weeks ago
you rock borbole. i am very happy now cause it worked like i wanted.
#4
Solved: 9 Years, 2 Weeks ago
(2012-11-21, 02:34 PM)tarekovski Wrote: you rock borbole. i am very happy now cause it worked like i wanted.

Glad to have been of help.
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)