Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. fenwick67
    F
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 5
    • Best 2
    • Groups 0

    fenwick67

    @fenwick67

    3
    Reputation
    495
    Profile views
    5
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    fenwick67 Follow

    Best posts made by fenwick67

    • RE: Registration email domain whitelisting

      I made a plugin that does this for one domain: https://github.com/fenwick67/nodebb-plugin-email-domain-filter

      There's no admin interface or anything though, it just uses an environment var for configuring the domain (EMAIL_DOMAIN_FILTER=@domain.org). It's not in the package manager but somebody could install it via NPM directly.

      posted in Feature Requests
      F
      fenwick67
    • Dead simple profanity filter and domain whitelisting

      I made these plugins, I thought somebody else might want to use them as-is, fork them, etc. Both were tested with 0.9.x. Neither are configurable via ACP so I didn't publish to NPM, but wanted to share anyway:

      Profanity filter:

      https://github.com/fenwick67/nodebb-plugin-profanity-filter

      Filters out profanity in posts and post titles. Also supports custom word list via environment variable PROFANITY_FILTER.

      Email Domain Filter:

      https://github.com/fenwick67/nodebb-plugin-email-domain-filter

      Set env var EMAIL_DOMAIN_FILTER=@club.org and only let people with an @club.org email address sign up.

      posted in NodeBB Plugins
      F
      fenwick67

    Latest posts made by fenwick67

    • RE: v1.0.0: Amazon S3 Plugins - Confirmed Working

      Thanks for pointing out GM needs to be installed, look like nodebb-plugin-s3-uploads needs a package.json update.

      EDIT: It looks like somebody's working on it here, including the gm dependency: https://github.com/LewisMcMahon/nodebb-plugin-s3-uploads

      posted in Technical Support
      F
      fenwick67
    • Dead simple profanity filter and domain whitelisting

      I made these plugins, I thought somebody else might want to use them as-is, fork them, etc. Both were tested with 0.9.x. Neither are configurable via ACP so I didn't publish to NPM, but wanted to share anyway:

      Profanity filter:

      https://github.com/fenwick67/nodebb-plugin-profanity-filter

      Filters out profanity in posts and post titles. Also supports custom word list via environment variable PROFANITY_FILTER.

      Email Domain Filter:

      https://github.com/fenwick67/nodebb-plugin-email-domain-filter

      Set env var EMAIL_DOMAIN_FILTER=@club.org and only let people with an @club.org email address sign up.

      posted in NodeBB Plugins
      F
      fenwick67
    • RE: Registration email domain whitelisting

      I made a plugin that does this for one domain: https://github.com/fenwick67/nodebb-plugin-email-domain-filter

      There's no admin interface or anything though, it just uses an environment var for configuring the domain (EMAIL_DOMAIN_FILTER=@domain.org). It's not in the package manager but somebody could install it via NPM directly.

      posted in Feature Requests
      F
      fenwick67
    • RE: Don't create topic based on post text?

      Wow awesome, that seems to have done the trick 👍

      Thank you so much for the help.

      posted in Plugin Development
      F
      fenwick67
    • Don't create topic based on post text?

      I am working on making a profanity filter type plugin that disallows certain words from being posted.

      I'm hooking on to these hooks and returning an error if profanity exists in the data.

              { "hook": "filter:topic.create", "method": "profanityHook" },
              { "hook": "filter:topic.reply", "method": "profanityHook" },
              { "hook": "filter:post.edit", "method": "profanityHook" },
              { "hook": "filter:post.save", "method": "profanityHook" }
      

      and here's how my hook works:

      profanityHook:function(data,next){
                  if (!data){
                      return next(null,data);//no data no profanity lol
                  }
                  //check content
                  if (data.content){
                      if(hasProfanity(data.content)){
                          return next(new Error('Profanity found'),data);
                      };
                  }
                  //check topic title
                  if (data.topic && data.topic.title){
                      if( hasProfanity(data.topic.title) ){
                           return next(new Error('Profanity found'),data);
                      }
                  }
                  //all ok I guess
                  return next(null,data);
              }
      

      So here's the problem: if there's profanity in the post, but not in the topic title, the topic still gets created with 0 posts in it.

      So, how can I stop the topic from being created with 0 posts?

      posted in Plugin Development
      F
      fenwick67