Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. JonDoe12
    3. Posts
    • Profile
    • Following 1
    • Followers 0
    • Topics 9
    • Posts 27
    • Best 0
    • Groups 1

    Posts made by JonDoe12

    • Custom Page Plugin Breaks with v0.7.x

      Hello,

      The custom page plugin seems to break with version 0.7.x. I can create the static page, and navigate to it. However, whenever I place HTML inside the page by going to Extend, Widgets, and then adding in the HTML on my page, the HTML is never generated. It does not show up on the page when navigated to.

      Plugin:
      https://github.com/psychobunny/nodebb-plugin-custom-pages

      Will there be an update on this, or has someone been able to implement this with v0.7.x? @psychobunny

      posted in Technical Support
      JonDoe12
      JonDoe12
    • RE: [nodebb-plugin-custom-pages] Custom Static pages for NodeBB

      I'm having issues on getting this to work on v.0.7.x . I create the static page, and when I go into the widgets section to add HTML to the content, the HTML never shows. I'm able to navigate to the page I created, but it's a blank page and the HTML I placed in the content section does not appear.

      Is there another way I can create a static page with just HTML? Should I just go into /public/templates and create an HTML page?

      Ping @psychobunny

      posted in NodeBB Plugins
      JonDoe12
      JonDoe12
    • RE: Pointing Domain To NodeBB Forum (Digital Ocean)

      Yes, but I don't want to manually start it everytime. I want it to run forever, even when I end my ssh sessions, when I'm not around, etc. Does it already do that? I could be mistaken.

      posted in Technical Support
      JonDoe12
      JonDoe12
    • RE: Pointing Domain To NodeBB Forum (Digital Ocean)

      Thank you very much, that did the trick. However, will this allow my Redis server to always run? If not how can I configure that?

      posted in Technical Support
      JonDoe12
      JonDoe12
    • Pointing Domain To NodeBB Forum (Digital Ocean)

      Hello,

      I'm ready to launch my NodeBB forum to the public. I've registered my domain on GoDaddy, and I know I need to point that domain to my Digital Ocean droplet IP address.

      At least, I believe that's how it works. I've looked over some other discussions on this and seem to get a bit lost. For example, do I need to change my config.json base url to http://domain.com, and then use ngix as well? Or, can this all be done through Digital Ocean and Godaddy?

      Steps I've taken so far:

      In Digital Ocean, under the DNS tab:

      I've added my GoDaddy domain to my droplet and it filled the IP address automatically (my droplet Server IP).

      *In GoDaddy: *

      Under DNS Zone file, I changed my A(Host) to point to my droplet server IP address (I don't know if that was a step in the right direction, or if I should have left it as it was).
      Considering my puzzle pieces are these listed below. (It's easier for me to think of them as parameters to plug in somewhere):

      • Droplet Server IP

      • DNS A(Host)

      • config.json

      • ngix

      • GoDaddy Domain*

      I believe I have all the pieces, I just need some assistance on putting them all together. I've never done this before, so any help on this would be very appreciated. I hope I was clear my my explanation, and thank you in advance.

      Edit: In addition, is there a way to run the Redis Server on Digital Ocean forever, without having to go into my terminal/console and starting it using ./nodebb start?

      posted in Technical Support
      JonDoe12
      JonDoe12
    • RE: [nodebb-plugin-poll] Poll plugin

      Any update on this @Schamper ?

      posted in NodeBB Plugins
      JonDoe12
      JonDoe12
    • RE: Emaze Plugin Help

      I was just going to let you take most of the credit. It's still your plugin, and you helped me make the modifications. I'm working on a new modification now, though. I'm trying to get the presentations to embed into an area of the user's profile.

      Right now, I'm testing it with the Fullname field on the profile, by entering the URL of the presentations (instead of a human name) and seeing if it parses into an embedded slide show.

      Would this be easy to accomplish? If not, are there any hints you could give me @a_5mith ?

      So far, I've edited the library.js file and replaced data.post and data.post.conent with data.fullname and data.fullname.content. I've also tried changing the hook in plugin.js from:

       { "hook": "filter:parse.post", "method": "parse", "callbacked": true }
      ]
      

      to

       { "hook": "action:user.set", "method": "parse", "callbacked": true }
      ]
      

      I feel like I'm missing something, though. If you're up to it, I'd like to collaborate with you further.

      posted in NodeBB Plugins
      JonDoe12
      JonDoe12
    • RE: Emaze Plugin Help

      Thank you. In the mean time, I'll keep cranking away and try to find the issue. I appreciate your help.

      My current theory is that:

      "(?:https?:\/\/)?\/app.emaze.com" 
      

      -may have one too many "/". We're escaping in between the "?" and app.emaze.com. However, I think that would make the URL have three "/" as in:

      https?:///app.emaze.com

      Update on Emaze: Yes, that was it. There were one too many "/". This is the regex that worked for me:

      var Emaze = /<a href="(?:https?:\/\/)?app.emaze.com\/@([\w\-_]+)\/([\w\-_]+)">.+<\/a>/g;
      

      I'm starting on prezi now.

      posted in NodeBB Plugins
      JonDoe12
      JonDoe12
    • RE: Emaze Plugin Help

      The site is in development on my local host, I wish I could link it here. This is my full code for the emaze plugin, but the link just remains a link without becoming an iframe. Update: The prezi plugin doesn't seem to be working either.

      Emaze Plugin:

      (function(module) {    
          "use strict";
          var Emaze = {},
              Embed = '<iframe src="http://app.emaze.com/@$1/$2" width="960px" height="540px" seamless webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
          var Emaze = /<a href="(?:https?:\/\/)?\/app.emaze.com\/@([\w\-_]+)\/([\w\-_]+)">.+<\/a>/g;
      
      
          Emaze.parse = function(data, callback) {
      
          if (!data || !data.postData || !data.postData.content) {
              return callback(null, data);
          }
          if (data.postData.content.match(Emaze)) {
              data.postData.content = data.postData.content.replace(Emaze, Embed);
          }
      
          callback(null, data);
      };
      
      module.exports = Emaze;
      }(module));
      posted in NodeBB Plugins
      JonDoe12
      JonDoe12
    • RE: Emaze Plugin Help

      I resolved the issue by putting (function(module) { at the top. However, it's not turning my link into an iframe. The http link just remains a link when posted.

      posted in NodeBB Plugins
      JonDoe12
      JonDoe12
    • RE: Emaze Plugin Help

      Okay, thanks for your help so far. When I try the Emaze plugin, I receive this error: ^
      18/2 15:33 [7624] - error: SyntaxError: Unexpected token }
      at Module._compile (module.js:439:25)
      at Object.Module._extensions..js (module.js:474:10)
      at Module.load (module.js:356:32)
      at Function.Module._load (module.js:312:12)
      at Module.require (module.js:364:17)
      at require (module.js:380:17)

      posted in NodeBB Plugins
      JonDoe12
      JonDoe12
    • RE: Emaze Plugin Help

      @a_5mith

      Thanks again. I'm not too skilled with regex just yet. Would you be willing to help me out with regexing Prezi URLs as well?

      Copy of Prezi 3D TEMPLATE by sydo.fr

      I meant to mention it in my original post. You don't have to, of course. But any help is very much appreciated.

      posted in NodeBB Plugins
      JonDoe12
      JonDoe12
    • Emaze Plugin Help

      Hello,

      I'm developing a plugin for embedding emaze into Nodebb, based on the codepen plugin by @a_5mith . It embeds a slideshow into your post when you paste a URL, just like it does for codepen frames.

      I have it halfway working, however, when regex tries to grab the parameters and place them into the URL, the end result of the URL is this:

      http://app.emaze.com/app/test

      However, it needs to be this:

      http://app.emaze.com/@AOZTORFL/test

      For some reason, regex is grabbing the "app" portion of the URL and placing it where "@AOZTORFL" should be.

      This results in an error. This is my javascript library:

      (function(module) {
      "use strict";
      var one1 = "$3";
      var two2 = "$2";
      var cleanedString = one1.replace(/["']/g,"")
      var cleanedString2 = two2.replace(/["']/g,"")
      var emaze = {},
          embed = '<iframe src="http://app.emaze.com/$1/$2" width="960px" height="540px" seamless webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe><a href="http://www.emaze.com" target="_blank"><img src="http://resources.emaze.com/mypres/css/images/embed.png" alt="Powered by emaze" style="margin: 5px; border: none;"></a>';
      var pen = /<a href="(?:http?:\/\/)?(app)\.emaze\.com\/.+\/([\w\-_]+)">.+<\/a>/g;
      
      emaze.parse = function(data, callback) {
          if (!data || !data.postData || !data.postData.content) {
              return callback(null, data);
          }
          if (data.postData.content.match(pen)) {
              data.postData.content = data.postData.content.replace(pen, embed);
          }
      
          callback(null, data);
      };
      
      module.exports = emaze;
      }(module));
      

      I'm positive the problem is the way I'm writing the regex, however, I'm unsure of how to make it grab the "@AOZTORFL" portion of the URL correctly. May I please get some assistance with this?

      Thank you.

      Original Codepen plugin source code: https://github.com/a5mith/nodebb-plugin-codepen/blob/master/library.js

      posted in NodeBB Plugins
      JonDoe12
      JonDoe12
    • Is it possible to make one topic apart of two categories?

      Hello.

      I wanted to know if it were possible to make a topic apart of two different categories.

      For example, if I create a new topic, how can I make that same topic show up in two categories?

      Thanks in advance.

      posted in General Discussion
      JonDoe12
      JonDoe12
    • RE: [nodebb-plugin-cash] Cash MOD

      That did it, Codejet. Much obliged.

      posted in NodeBB Plugins
      JonDoe12
      JonDoe12
    • Coin Image not showing (Cash Mod Plugin)

      Hello.

      I'm trying to use the Cash Mod on my forum, however, the coin1 image does not seem to be appearing, as seen in the image below.

      coinbug.png

      When I inspect the element, Nodebb seems to be searching for this path:

      <img src="http://localhost:4567./plugins/nodebb-plugin-cash/static/coin1.png">

      Is there a possible solution for version 0.6.0? Thank you.

      posted in Bug Reports
      JonDoe12
      JonDoe12
    • RE: [nodebb-plugin-cash] Cash MOD

      Hello. Oddly, the cash mode code is working, but the coin image is not showing. All I see is a white square, where the image should be. I have version 0.6.0.

      posted in NodeBB Plugins
      JonDoe12
      JonDoe12
    • Header that recedes as you scroll

      This would be a great plugin to have for Nodebb. It would enable to header of the forum to recede as you scroll down, then reappear when you go back to the top:

      Headroom.js - Give your pages some headroom. Hide your header until you need it.
      posted in NodeBB Plugins
      JonDoe12
      JonDoe12