Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
How can I remove the Start a New Discussions for regular users
Hi,
I would like to remove the ' Start New Discussions " for the regular users, how can i do that .
I would like to also approve all new discussion post by non admin..Is that Posible
Please Help ,
Thanks
I would like to remove the ' Start New Discussions " for the regular users, how can i do that .
I would like to also approve all new discussion post by non admin..Is that Posible
Please Help ,
Thanks
0
Best Answer
-
x00 MVPfirst you set the role in dashboard so they can reply to comments, so in the Add column for the category permission uncheck discussions but leave comments. Double check all the permissions. Then save.
Depending on your theme there is some theme based logic to remove the button for guest.
copy /applications/vanilla/views/modules/newdiscussion.php to
/themes/[your theme]/views/modules/
creating the folder structure first.
then open up the file and wrap everything bellow the first line inif(array_key_exists('Discussion', $Data)) {
where [button code] is everything before the first line.
$CatID = $Data['Discussion']->PermissionCategoryID;
}else if(array_key_exists('Category', $Data)) {
$CatID =$Data['Category']->PermissionCategoryID)
}else{
$CatID = 'any';
}
if (Gdn::Session()->CheckPermission('Vanilla.Discussions.Add',TRUE, 'Category',$CatID){
[button code]
}grep is your friend.
0
Answers
Depending on your theme there is some theme based logic to remove the button for guest.
copy /applications/vanilla/views/modules/newdiscussion.php to
/themes/[your theme]/views/modules/
creating the folder structure first.
then open up the file and wrap everything bellow the first line in where [button code] is everything before the first line.
grep is your friend.
$CatID =$Data['Category']->PermissionCategoryID)
should be
$CatID =$Data['Category']->PermissionCategoryID;
grep is your friend.