Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. Mega
    • Profile
    • Following 0
    • Followers 7
    • Topics 1
    • Posts 95
    • Best 19
    • Groups 3

    Aza Noriega

    @Mega

    Community Rep

    Passionate Software Engineer. Node/JS/C++

    33
    Reputation
    1725
    Profile views
    95
    Posts
    7
    Followers
    0
    Following
    Joined Last Online
    Email Aza.Noriega@gmail.com

    Mega Follow
    Translator Community Rep Plugin & Theme Dev

    Best posts made by Mega

    • RE: Display Automatically multiple group badges

      @Codejet I'm making kinda similar plugin right now.

      The plugin's goal is to show only one badge with a "most high priority".

      Let's say a user is in three groups:
      "Officer" (group's weight: 60)
      "Recruiter" (group's weight: 55)
      "Regular" (group's weight: 50)

      Regardless of what was choosen in UserSettings as a badge, only "Officer" badge will be shown, 'cuz that group has higher priority than others.

      And the question "Why users are in multiple groups?": Because of ability to manage those groups' membership.

      @Codejet said:

      what code would I add to the template if I wanted at least 2 badge's displayed in my posts.

      You need to make and register a new template helper, for both clientside & serversde, and execute some magic inside.
      I can help you via Teamviewer, if you please ^.^

      posted in Technical Support
      Mega
      Aza Noriega
    • RE: How many instances can I host on 512Mb RAM digitalocean droplet?

      @askar said:

      How many instances can I install on 512Mb RAM digitalocean droplet?

      One at least

      If you'll use Redis, and your forums will have less than 100k messages each, probably two
      If you'll use Mongo, in the same circumstances, maybe even three instances

      However, I'd recommend you to use 512MB droplet for each instance

      posted in General Discussion
      Mega
      Aza Noriega
    • RE: Theme identification

      @frissdiegurke open the console in browser and type config['theme:id']

      posted in Feature Requests
      Mega
      Aza Noriega
    • RE: Add MySQL Database Option

      @Popatop15 I'm sorry, but it's near to impossible. Take a good look at those examples https://github.com/NodeBB/NodeBB/tree/master/src/database

      The differences between MySQL and any noSQL databases are huge.

      NodeBB architecture was designed with Redis in mind. Redis it's not even a database at all, it's an advanced key-value store (completely noSQL). So, it's relatively easy to make a driver for a noSQL database, like MongoDB. But it would be way too hard to implement that kind of a driver for a relational database, like MySQL.

      Just to be clear - even though, strictly speaking, it is possible to make the driver, NodeBB won't be working good with it anyway.

      Personally I'd suggest you to spend some time to learn how to work with MongoDB, if you still unfamiliar with it. MongoDB is very popular nowadays and working with it is much easier than with anySQL database. If you're an expirienced dev, you can become a ninja in just one week.
      Then, you'll be able to make an effective bridge between Mongo and MySQL parts of your applications.

      p.s. Just in case, I want to mention that everything is possible.

      posted in Feature Requests
      Mega
      Aza Noriega
    • RE: SEO and friendly urls

      @sergej-saveljev said:

      I need support when creating a plug-in, as this will be my first plugin NodeBB and he, as I understand it, will not be easy.

      We may have a talk about NodeBB and its plugins in Russian over VoIP (Teamspeak?) if you want to. I can point you some pitfalls, and even some best practices in plugin development

      posted in NodeBB Development
      Mega
      Aza Noriega
    • RE: 2017 CMS Critic Awards: Nominate NodeBB for Best Forum Software!

      Best Forum Software – NodeBB

      Already in 2015. Maybe again in 2017?


      How can I vote for NodeBB on the CMS Critic site? Please, explain like I'm five.

      posted in General Discussion
      Mega
      Aza Noriega
    • RE: Created a NodeBB-Backup tool - Request For Feedback

      I just wonder, whether someone is interested in a guide of automatic incremental backing up NodeBB using rsnapshot on Linux-based servers? I mean not a tool, but a guide only. Because I have no intention yet to make neither the tool nor to contribute to the nodebb-backup tool.

      And if I'll make the guide someday, it probably will be not for complete newbies, but for those who's able to (at least):

      1. use terminal
      2. completely understand what chown and chmod commands are for, and what * * * * * in cronejobs mean

      p.s. When you're using rsnapshot, there is almost no difference which database you're using, Redis or MongoDB.

      posted in NodeBB Plugins
      Mega
      Aza Noriega
    • RE: Calendar

      @pitaj said:

      to display localized date strings

      Sorry, I've noticed it just now >.<

      Okay, AFAIK, you always, on any page, can do

      $('span.timeago').timeago()
      

      And all spans will be translated in appropriate language, BUT
      I guess, you actually don't even have to do this! (unless you won't load some content dynamically, not via ajaxify.go())

      Because behind of every click on a link, there sits ajaxify.go() that, after each page loading, casts app.processPage() that already includes $('span.timeago').timeago()

      posted in Feature Requests
      Mega
      Aza Noriega
    • RE: Post a picture of yourself

      Just in case


      posted in General Discussion
      Mega
      Aza Noriega
    • RE: Ranking System

      Probably it isn't what you expected to get as an answer
      https://github.com/NodeBB/NodeBB/wiki/Plugin-Hooks#actionuserset
      https://github.com/NodeBB/NodeBB/blob/8f5bf1a7edc991f7b40c3f8520cec87b8b10b8f8/src/user.js#L159-L196

      posted in NodeBB Plugins
      Mega
      Aza Noriega

    Latest posts made by Mega

    • RE: 2017 CMS Critic Awards: Nominate NodeBB for Best Forum Software!

      Best Forum Software – NodeBB

      Already in 2015. Maybe again in 2017?


      How can I vote for NodeBB on the CMS Critic site? Please, explain like I'm five.

      posted in General Discussion
      Mega
      Aza Noriega
    • RE: Change posts and views into fa-icons

      @MJ CSS? Nah. Just execute some JS
      For example:

      $(window).on('action:widgets.loaded', function () {
      	$('li[component="categories/category"]')
      	.add('li[component="category/topic"]')
      	.find('.stats > small')
      	.each(function (i, el) {
      		var
      			$small = $(el),
      			text = $small.text(),
      			$icon,
      			iconClass
      
      		if (text === 'Topics')
      			iconClass = 'fa-group'
      		else if (text === 'Posts')
      			iconClass = 'fa-group'
      		else if (text === 'Views')
      			iconClass = 'fa-group'
      		else
      			return
      
      		$icon = $('<i class="fa fa-fw ' + iconClass + '"></i>')
      		$small.replaceWith($icon)
      	})
      });
      

      P.S. Actually, the best way to change something in a theme - is to fork the theme and make whatever changes you want in your own repository. But you'll have to keep track of any new changes from the original theme repository, resolve merge conflicts, etc. This way is a hard way. The example I've provided above is the easy one.

      posted in General Discussion
      Mega
      Aza Noriega
    • RE: Add MySQL Database Option

      @Popatop15 I'm sorry, but it's near to impossible. Take a good look at those examples https://github.com/NodeBB/NodeBB/tree/master/src/database

      The differences between MySQL and any noSQL databases are huge.

      NodeBB architecture was designed with Redis in mind. Redis it's not even a database at all, it's an advanced key-value store (completely noSQL). So, it's relatively easy to make a driver for a noSQL database, like MongoDB. But it would be way too hard to implement that kind of a driver for a relational database, like MySQL.

      Just to be clear - even though, strictly speaking, it is possible to make the driver, NodeBB won't be working good with it anyway.

      Personally I'd suggest you to spend some time to learn how to work with MongoDB, if you still unfamiliar with it. MongoDB is very popular nowadays and working with it is much easier than with anySQL database. If you're an expirienced dev, you can become a ninja in just one week.
      Then, you'll be able to make an effective bridge between Mongo and MySQL parts of your applications.

      p.s. Just in case, I want to mention that everything is possible.

      posted in Feature Requests
      Mega
      Aza Noriega
    • RE: Upgrade worked but can't start nodebb anymore

      npm i redis --save

      posted in Technical Support
      Mega
      Aza Noriega
    • RE: Theme identification

      @frissdiegurke open the console in browser and type config['theme:id']

      posted in Feature Requests
      Mega
      Aza Noriega
    • RE: Plugin & Theme contest 2015 ideas

      I'd like to participate

      posted in General Discussion
      Mega
      Aza Noriega
    • RE: Created a NodeBB-Backup tool - Request For Feedback

      I just wonder, whether someone is interested in a guide of automatic incremental backing up NodeBB using rsnapshot on Linux-based servers? I mean not a tool, but a guide only. Because I have no intention yet to make neither the tool nor to contribute to the nodebb-backup tool.

      And if I'll make the guide someday, it probably will be not for complete newbies, but for those who's able to (at least):

      1. use terminal
      2. completely understand what chown and chmod commands are for, and what * * * * * in cronejobs mean

      p.s. When you're using rsnapshot, there is almost no difference which database you're using, Redis or MongoDB.

      posted in NodeBB Plugins
      Mega
      Aza Noriega
    • RE: How many instances can I host on 512Mb RAM digitalocean droplet?

      @askar said:

      How many instances can I install on 512Mb RAM digitalocean droplet?

      One at least

      If you'll use Redis, and your forums will have less than 100k messages each, probably two
      If you'll use Mongo, in the same circumstances, maybe even three instances

      However, I'd recommend you to use 512MB droplet for each instance

      posted in General Discussion
      Mega
      Aza Noriega
    • RE: Persona Refresh Issue

      @scottalanmiller said:

      That's a weird one.

      Truly.
      The weirdness is in fact the error comes randomly O_o
      Steps to reproduce: continue pressing a "Page Reload Button" (Ctrl + R?), one per 10-20 attempts you'll catch the error. No matter what page you are on, even ACP.

      And not only the one error, some others too
      https://a.pomf.se/pidgjn.png

      posted in Technical Support
      Mega
      Aza Noriega
    • RE: nodebb-plugin-emailer-local can not get config value

      @Rex-Huang I faced the same error when I've made fork of the plugin.
      I found a way, how to get it work... Maybe it may be useful for you.
      https://github.com/MegaGM/nodebb-plugin-emailer-yandex/blob/master/index.js#L23-L26

      posted in NodeBB Plugins
      Mega
      Aza Noriega