So Im using the latest Drupal 8, and My website is just about wrapped up!

Only issue I need to solve is I want a User submitted image gallery (Will be used for users to submit Meme's). I want unregistered users to be able to submit them, then they will pend approval from my admins and I. Once approved they will be shown in a View.

I ASSUME (Scary when I do that) I want to make a new comment type specifically for these Memes, and only have an image field, then have a new view that shows published "Meme comments"?

How do I include the "post comment" in the header?

When I tried creating the view of this I get a MySQL error, which I assume is because there wasn't any comments. This was resolved, I had a contradictory Filter which wouldn't allow anything.

Any help? Thanks in Advance!

I may have solved it myself, Ill lay it out here for others to see and comment on if desired:

My way:
-Created a content type called "Memes"
-Created a view that displayed content "Memes"
-Went into the "Permissions" tab and gave anon users the ability to create content type of Meme's
-Created an alias for the URL directly to the create Meme's content type, made a button and placed it in the footer of the Meme's view page with text (Want to submit your own Meme? click here to submit one!)

Doing this, they can upload a photo, and submit it, However it remains unpublished until it is viewed in the "Content" menu, then either deleted or published.
Ill be testing this way out.

Comments

VM’s picture

your problem is going to be that all anon content is submitted to the same user id which is 0. There is no way to tell the difference between user A and user B or the content uploaded.

as far as a comment link in D7 one would:

Drupal comment links look like this: comment/reply/1#comment-form where 1 is the node ID for the node to add a comment to.

can create this link by adding another field to your view, of type nid, then changing a couple of settings:

1) remove the title
2) select "rewrite the output of this field" and enter "Add comment" in the text area.
3) select "output this field as a link" and enter comment/reply/[nid]#comment-form in the Link Path field.

You'll do something similar for D8, though you'll need to look at the comment path and tokens available in D8 to determine the exact rewrite needed for D8 comment forms on the node.

Planert360’s picture

We're currently debating if we need to worry about differentiating between who upload the images; all content is reviewed first, so there's no issues with content. We did discuss adding a "name" field, but this could be circumvented by typing random jargon in the field. If we do have issues we may need to go to a registered user base with spam protection, affording us some sort of control then.

This is the only reason for registering so far, since we use social media comment boxes (were a set of Facebook pages setting up a "central hub" of content) and have no subscription/newsletter etc, we will simply use our Facebook pages/groups/accounts to inform users of new posts, so this is all still up in the air.

Thank you for the comment info, I'll be looking into it in the coming days.