diff --git a/e107_plugins/forum/forum_class.php b/e107_plugins/forum/forum_class.php index d6ec40b1b..ee8bb7e25 100644 --- a/e107_plugins/forum/forum_class.php +++ b/e107_plugins/forum/forum_class.php @@ -536,6 +536,9 @@ class e107forum $this->permList[$key.'_list'] = implode(',', array_keys($tmp)); } } + + + // print_a($this->permList); } diff --git a/e107_plugins/forum/forum_viewforum.php b/e107_plugins/forum/forum_viewforum.php index 0519dab86..b932152dd 100644 --- a/e107_plugins/forum/forum_viewforum.php +++ b/e107_plugins/forum/forum_viewforum.php @@ -244,13 +244,11 @@ if ($pages) } } -if($forum->checkPerm($forumId, 'post')) +if($forum->checkPerm($forumId, 'thread')) //new thread access only. { - $ntUrl = e107::url('forum','post')."?f=nt&id=". $forumId; -// $ntUrl = e107::getUrl()->create('forum/thread/new', array('id' => $forumId)); $fVars->NEWTHREADBUTTON = "".IMAGE_newthread.''; - $fVars->NEWTHREADBUTTONX = newthreadjump($ntUrl); // "New Thread"; + $fVars->NEWTHREADBUTTONX = newthreadjump($ntUrl); } if(!BOOTSTRAP) @@ -927,7 +925,9 @@ function fpages($thread_info, $replies) function newthreadjump($url) { global $forum; - $jumpList = $forum->forumGetAllowed('view'); + $jumpList = $forum->forumGetAllowed('view'); + + $text = '