jaypatelani what would you show and where?

The ability to add some additional text in the discussion/reply composer would actually be a good idea for a separate extension. I know a few extensions add warnings there but it might not be easily re-usable for this.

The only benefit of being included in this extension would be to show the message only based on the current threshold. Maybe a classname could be added to the composer so the style or message added by another extension can be toggled using a bit of custom CSS.

4 months later

CyberGene most likely yes but I haven't tried yet.

I'm relying on user reports to know if any extension I don't use myself is broken on 1.2. If something's wrong I'll take a look as soon as possible.

CyberGene Most of the extensions will work till 2.0 without any issues. There is no specific update to the extension is required until there are some real issues. 👍 Feel free to try it won't break your flarum . Always take backups before you start testing

I tested it on 1.2 and it works, thanks! Is there any way to send an email when a user's post needs an approval? I guess that may be a question for the "Flag post" extension?

  • Hari replied to this.

    Hari if you are a admin you can set email notification when someone starts a new discussion (not sure this must be in settings)

    Won't that send an email for every new discussion, not just the one that need approval? Besides, it's not just about discussions, it's about first posts in existing discussions too.

    Hari you need to manually compose email using Mailing extension by clark

    Hmm, maybe I wasn't clear. I don't need to send an email when a post needs an approval but to receive an email, an automatic email generated by the forum, so that I open the forum and approve immediately 😀

    • Hari replied to this.

      CyberGene what you are asking is a very simple feature, i am not sure this extension or flarum has it or not. wait for someone's reply

      As far as I know there is no way to get notifications for new posts under approval at the moment.

      This extension uses flarum/flags behind the scenes, just like flarum/approval does, so if a third-party extension implements notifications for flarum/flags, this extension will automatically benefit from it.

      9 days later

      I'm probably misunderstanding something basic. I have a forum at freeflarum. Very few extensions installed except Approval, Flags and First Post Approval (also FoF OAuth and Fof Webhooks in case that matters). Approves is configured so only admins / moderators skip moderation and First Post Approval is set with "1" for number of first posts requiring approval and "1" for first discussions. When a new user posts a new discussion, it gets held for moderation, but after approval by an admin, all subsequent posts by that new user (replies or new discussions) still require moderation. After approving multiple posts / discussions, still the same behavior.

      If I'm understanding the plugin right, after that first approval, the new user should be able to post and create new discussions without needing moderation. Am I missing anything? If not, any ideas for how to fix / troubleshoot what's going on? Since the site is hosting by freeflarum I don't have direct access to the database to see if the user's approval counts are incrementing as expected or not. I'm running Flarum 1.2.0 and First Post Approval 1.0.0.

      Thanks!

        BenFlarum unfortunately there is currently no other way to troubleshoot except look at the users table in the database. Maybe the FreeFlarum team can take a look at the values.

        If the number is stuck to zero, maybe there's an issue that prevents the Flarum\Approval\Event\PostWasApproved event from being dispatched correctly. Can you try with Webhooks disabled to make sure it's not interfering?

        Thanks for the quick reply. I tried disabling Webhooks, but no change. But your comment about the users table made me realize that I can download a dump of the database. I did that and the entry in the users table for the new user (after posts were accepted) has:

        discussion_count = 1
        comment_count = 1
        first_post_approval_count = 3
        first_discussion_approval_count = 4

        I think the lower comment / discussion count from the approval count is when I delete a discussion / comment it reduces the count but not the approval count. But it looks like the incrementing of the approvals is right.

        In the settings table

        ('clarkwinkelmann-first-post-approval.discussionCount','1'),
        ('clarkwinkelmann-first-post-approval.postCount','1')

        So it seems like the database is right and has the information is should to approve new comments / discussions. I didn't see anything else in the database that relates to this plugin. If you have any ideas on how to troubleshoot further, that would be greatly appreciated.

        Thanks,

          BenFlarum I'm unable to replicate the issue when using the same values on my test website on Flarum 1.2.

          Make sure the user has permissions "Start discussions without approval" and "Reply to discussions without approval". User must only be denied "Post without first post approval" permission for this extension to trigger.

          EDIT: to address the deleted post question, it's absolutely intentional. The recorded number of approved posts never goes down by design, as you don't want to lose posting ability just because a post was deleted after being successfully approved.

          Thank you so much. The issue with my permissions. Somehow the 'Start discussions without approval' (and the reply to discussion without approval') was set to mods and not members. Once I changed that, everything started working as expected. Thanks again!

          25 days later

          Hi @clarkwinkelmann

          I have been using this extension since last year and just realized that there is a problem with the number of posts when approving a message from a new user.

          Today someone new has registered and has written 4 messages and they have all been waiting for my approval. In the settings I have set that it must have at least one post to avoid spammers. When I approved them I noticed that the number of messages in the user's profile is still 0, is it a problem with this extension?

          4 days later

          I have been using this extension for a while, good stuff thanks 😁 The only thing that seems a bit clumsy, is that new users don't receive email notification once their first post is approved and initially replied to (because they can't subscribe to their own un-approved post). This leads to new users making posts, and never returning because they don't know the post was approved and replied to. Any thoughts on this?

            KarlWard to further make it difficult for new users there’s no mail notification for moderators either, and so they can’t react quickly to approve new posts. I’ve been to forums where I post and wait for somebody to react and I’ve hated it so much I abandoned it.