Yes I was thinking more in terms of article threads in general forums. But I can see how most people may want to restrict articles to specific article forums so not a big issue.I assume you mean in the context of a general discussion forum that allows articles.
I'm not sure we're especially fond of the idea of having type-specific permissions but the obvious workaround for now is to have a dedicated articles forum and use node permissions to control who can/can't post threads in it.
<?php
namespace Your\AddonDIR\XF\Entity;
class Forum extends XFCP_Forum
{
public function getCreatableThreadTypes(){
$parent = parent::getCreatableThreadTypes();
if(\XF::visitor()->hasNodePermission($this->node_id, 'yourPermissionID')){
return $parent;
}
else {
if($key = array_search('article' ,$parent) !== false){
unset($parent[$key]);
}
return $parent;
}
}
}
Would that work if you want all users to be able to post discussions threads in a forum, but only moderators be able to post articles threads?This is already possible by assigning thread/forums as "Read Only" and assigning privileges to those users groups or users you want to have privilege to post.
Have thread/forum set up as "Reply Only" Give moderators permission to post articles and all others permission to reply. XF has been doing this for years with the "Have you seen....?" forum. Moderators (or specific people) post threads (no one else can post threads) and members reply. It's all permission based.Would that work if you want all users to be able to post discussions threads in a forum, but only moderators be able to post articles threads?
If yes, how would you set that up?
And now just wait for all the reports about merging old closed suggestions with new ones with similar suggestions.(A duplicate suggestion has been merged into this thread as it had a high number of votes. Votes have all been aggregated into this thread.)
Correct, that was my example for this suggestion thread.I believe what he is asking is for any member to be able to create standard threads in a specific forum, but only moderators can create article threads in that forum.
That would require custom development.
Please consider adding thread type creationg to usergroup permissions and user permissions pages.
yes and here is the custom development:I believe what he is asking is for any member to be able to create standard threads in a specific forum, but only moderators can create article threads in that forum.
That would require custom development.
We use essential cookies to make this site work, and optional cookies to enhance your experience.