Skip to content

General Discussion

A place to talk about whatever you want

3.8k Topics 23.3k Posts
  • 1 Votes
    4 Posts
    5k Views
    N

    @bentael After some pause, I think I'm ready to work on custom importer. After some investigation I have found, that Importer works with classic/basic entities. Even If I will create custom importer, for example nodebb-plugin-import-ipboard-very-custom, import plugin will use only designed methods (I will be able to import additional fields) like: setup, getPaginatedUsers, getPaginatedCategories, getPaginatedTopics, getPaginatedPosts, and several utility methods like logging, testRun, etc.

    My question: as author of importer, what do you recommend to do if I want to import additional entities? (Example: awards)

    What I want to accomplish after import: Import of standard data: topics, categories, posts, users - It's simple and clear Import custom user fields without altering User document for future plugin use Import additional entity - Awards for future plugin use Import additional entity - Points(like reputation, but isn't part of user table) for future plugin use
  • Clustering with Mongo?

    7
    0 Votes
    7 Posts
    2k Views
    T

    @pichalite we are running a cluod system, where we actually need to add those to packages. Basically a similar situation as with the heroku install. (Btw That's a really good page in the docs)

  • 0 Votes
    3 Posts
    1k Views
    julianJ

    I don't understand what you are asking, sorry 😦

  • Sitemap contains removed topics only

    7
    0 Votes
    7 Posts
    3k Views
    julianJ

    @Tom-Riddleff That is quite weird. Would it be possible for you to provide us a copy of your database so we can investigate the problem?

  • 0 Votes
    5 Posts
    2k Views
    julianJ

    @Valorale You're supposed to execute configure:

    $ ./configure --prefix.... etc
  • New Chromebook Pixel!

    9
    0 Votes
    9 Posts
    2k Views
    barisB

    @a_5mith yeah wasn't installed. Installed/activated youtube lite now.

  • 0 Votes
    2 Posts
    2k Views
    nhl.plN

    You can automate it by using this guide.
    https://github.com/ahwayakchih/openshift-nodebb

    Or the one written by me.
    https://community.nodebb.org/topic/3866/guide-nodebb-0-6-1-on-openshift-for-windows-users-with-putty/1

    Or use official NodeBB guide.
    https://github.com/NodeBB/nodebb-english/blob/master/installing/cloud/openshift.rst

    This is not a bug. You have used npm install command in the wrong folder. Use OpenShift Online in your browser to download NodeBB files to /app-root/runtime/repo and it will work as it should.

  • Header and footer for homepage

    1
    0 Votes
    1 Posts
    819 Views
    shady2kS

    In widget areas for home.tpl I have only Homepage sidebar. Any way to add header and footer?

  • 2 Votes
    7 Posts
    4k Views
    Joel HaggarJ

    @julian Ah ha, thanks for that. I'm still learning a lot of the features. I have the sendGrid plugin and it seems to work fine.

  • Popular forum exporters

    67
    0 Votes
    67 Posts
    43k Views
    ReikR

    I hope this is the most up to date version. You don't have to import database every time, to check if everything is parsed right. Regexes are used always on 'just after import' version of database.

    Preparse regex:

    content = content.replace(/<!-- m --><a class="postlink" href="(.*)">.*<\/a><!-- m -->/g, '$1'); content = content.replace(/<!--.*?--><img src="\{SMILIES_PATH\}\/.+?" alt="(.+?)" title=.+?\/><!--.*?-->/g, ' $1 '); content = content.replace(/\[(.*?):\w+\]/g, "[$1]"); content = content.replace(/\[(\/\w+):\w+\]/g, "[$1]");

    Postparse regex:

    content = content.replace(/\\\[/g, '['); content = content.replace(/\\\]/g, ']'); content = content.replace(/\@"(\w+)?" said:/g, '@$1 said:');

    Bonus - Selenium IDE for Firefox script, which makes forum private 😛 You need sideflow extension to use it. Use it at categories page in ACP to see how it works.
    http://pastebin.com/UdaT0FQF <-- deprecated since v0.7.0

  • 0 Votes
    3 Posts
    2k Views
    Joel HaggarJ

    Thanks, that worked perfectly!

  • This topic is deleted!

    Locked
    1
    0 Votes
    1 Posts
    17 Views
  • 0 Votes
    4 Posts
    2k Views
    barisB

    Thanks for reporting as @pkiller mentioned this should be fixed if you create the system folder. I have also fixed it on master as well as the error messages so you should get a better error message if the upload fails.

  • 0 Votes
    4 Posts
    2k Views
    S

    @belstgut said:

    Not really sure what all the hype about mongodb/redis lately is, if you can use well tested sql databases.

    MongoDB is well tested too. But beyond being super stable, it is screaming fast - far faster than any relational database, it has amazing sharding properties, it speaks native JSON, it is getting a massive amount of active development, it is considered the native database for Node.js on which NodeBB is built and it scales like crazy.

    Now the big one.... when using Node... those "well tested sql databases" are not well tested. MongoDB is far more stable and tested than any of them and, in fact, lack of highly reliable drivers is a major issue for relational (what you call SQL) databases.

    So there are very, very good reasons to use NoSQL, especially MongoDB specifically. Speed, stability, battle tested, native, etc. I'm not actually clear on any upside to using a relational database here. Relationships are nice, but would they add any value at all in an online community infrastructure?

    Also, I should note, some online communities that we have dealt with have scaling issues specifically because they eschewed this advice and went with those "well tested" relational databases. Once they grew and got busy they were unable to keep pace and they bogged down and had to throw crazy amounts of money at keeping respectable performance when MongoDB or other similar datastore could have been faster for cheaper.

  • NodeBB completly crashed HELP

    4
    0 Votes
    4 Posts
    2k Views
    S

    @misdigest If they are not compatible with your version of NodeBB then you can either downgrade NodeBB, not use the plugin or try and upgrade the plugin yourself. You could also ask the developer of the plugin if they will upgrade it for better compatibility.

    Usually the errors will give you some information on what is causing the problem.

    at Object.Soundcloud.init [as method] (/root/misdigestbb/misdigestbb/node_modules/nodebb-plugin-sso-soundcloud/library.js:26:66)

    Suggests that the nodebb-plugin-sso-soundcloud plugin is causing one problem

  • 0 Votes
    1 Posts
    1k Views
    Danny McWilliamsD

    Had a few slight problems getting this working. It crashed my forum and my blog, which reside on separate servers. I'm running NodeBB 0.7.0-dev with a new Wordpress install.

    I installed the plugin and followed the guide on how to set it up. So all was working. I posted a blog article to test the comments engine (using forum plugin), and when I clicked the button under the article to send the article to the forum, it produced an error, which said I either had to be a member of publishers group or admin to post. I was logged into NodeBB as admin, and Wordpress too.

    My forum started grinding to a halt, throwing up 502 errors in the process.
    My blog collapsed and is currently sitting with a "Error establishing a database connection" notice. It's still like this, and i'll repair that when I get the chance.

    The strangest aspect however is that the blog DID post to the forum. 32,800 times, no less! You can see the topic here - I set up a category for the blog articles to be posted to.

    http://www.onlyanexcuse.com/category/12/onlyanexcuse-blog

    I realise to get a further insight i'll have to look into the error logs which I intend to do, but can anyone help? I've since removed the blog's server from DNS so it's no longer visitable through links and the forum is back to being the homepage.

  • This topic is deleted!

    1
    0 Votes
    1 Posts
    295 Views
  • 0 Votes
    11 Posts
    5k Views
    C

    @trevor said:

    Hi,

    Let's see here...

    You can go into the topic.less file in the lavender template. It should be located node_modules/nodebb-theme-lavender/less/topic.less.

    Look for .post-content it should be in the following hierarchy: .topic .posts .post-content. Example below:

    .topic { .posts { .post-content { //You can put whatever font-size here. } } }

    Hope this helps!

    On lavender theme this is .topic-text if it is not a change in css since then.

    @baris for blockquote :
    I made a try but it doesn't work. Any update on this or is it Lavender theme related ?

  • Forbidden at Login

    4
    0 Votes
    4 Posts
    3k Views
    greasanG

    Solved! Well, Uberspace ...

    Hope that will help other users to run NodeBB with Uberspace. The problem was the run-file I used for the daemon.

    This is my new code. ([USER]/etc/[YOUR-SERVICE]/run😞

    cd $HOME/[NODEBB-FOLDER] ./nodebb start

    In the official NodeBB documentation the preffered method to start is ./nodebb start.
    Don't follow third party tutorials in this case ... NodeBB seems unstable with other methods to start.

    I will test it further, but for now it seems to work pretty well.

  • 0 Votes
    5 Posts
    2k Views
    frissdiegurkeF

    You know (one of) the main difference(s) between TCP and UDP, don't you?

    TCP is connection-oriented, UDP isn't. So there is no UDP core-functionality to check whether the receiver is alive (/has the port opened).

    You'd either need to create server-side code or know the server-behavior (e.g. responses to specific datagrams) to achieve an UDP port-scanner.

    If you're able to write server-side code the best is to ask for UDP port status via TCP since it has reliable data-transfer implemented.