Using chatter with voyager and building an admin area
So I've built my own forum using Voyager and just realized how messy the code is. It's relatively unstyled and just seems like it would need a whole lot of refactoring to get it running the way I want. I have an admin area for my forum that's roughly done, but I'm wondering if I should give this up and just go with chatter.
Is there anyone that has built an admin section using Chatter and Voyager? My idea was to use Voyagers permissions to give mods certain adminstrative abilities in the forum areas of the site; while also have reports queue like reddit and a moderation lounge.
I'm wondering if anyone has gone through this process and could tell me:
-
How long it took them to build a moderation area and the level of diffuculty they had doing so?
-
How we Chatter intergrates with voyagers?
-
Were there any Packages that helped with the whole process?
You can easily integrate Chatter to Voyager, it just requires that you setup a little bit of BREAD settings for it and BOOM! You are good to go.
However I have in plans to make some extension that integrates Voyager and Chatter out of the box. Also it is not a bad idea to add moderator rights for a user using the Voyager permissions on Chatter, I could include this in my extension.
About reports, you mean that you want a way for end users to report something, while the report should show up at the moderators view for him/her to handle?
About reports, you mean that you want a way for end users to report something, while the report should show up at the moderators view for him/her to handle?
Yeah essentially. I was making it a lot like reddit where a user can report any content that breaks site rules and then instead of having moderators have access to the admin the area of the site (voyager part) I had a moderator queue of all the listed reported content.
Here's my reports migration. Note that I'm using a polymorphic structure.
$table->increments('id');
$table->integer('user_id');
$table->text('content');
$table->integer('reportable_id');
$table->string('reportable_type')->unique();
I called my "threads" model "posts" and my "replies" model "comments" and queried them in this reports queue as such:
ReportController
public function index()
{
$posts = Post::whereHas('reports')
->with('reports.user', 'comments')
->latest()
->get();
return view('reports.index', compact('posts'));
}
It's an idea to add to your extension, if you want it. It's usually what I see other forums do to, so that way there's sort of like super moderation privilidges where super mods would be allowed in voyagers admin are, and create content for say a blog on the site.
When do you expect your extension to be ready? Any chance I could see a repo?