• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.4.3 Latest
Buy Hosting
X

xbenjii

@xbenjii
About
Posts
33
Topics
2
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

    Introducing the NodeBB 0.7.0 Persona preview
  • X xbenjii

    Oh wow, looks great!


  • NodeBB could not reach the package manager
  • X xbenjii

    @julian said:

    @xbenjii that should have no effect on the package suggestions system... navigating to the url provided seems to work fine as well...

    But they're accessing it cross-domain aren't they? Is this not a CORS issue?

    Assuming this is the code issuing the error.

    In https://github.com/NodeBB/nodebb-package-manager/commit/bb079befc7af0d74fa12a11b855a4bb9057bffae you removed all the middleware, including the CORS header.


  • NodeBB could not reach the package manager
  • X xbenjii

    Most likely related to the removal of https://github.com/NodeBB/nodebb-package-manager/commit/bb079befc7af0d74fa12a11b855a4bb9057bffae#diff-2b137e40025e00eb45b66941ad8d4ddfL148


  • HTML JSON form submission spec, W3
  • X xbenjii

    Nice to see the W3 community has a sense of humour 😄

    EXAMPLE 6: Such Deep
    <form enctype='application/json'>
      <input name='wow[such][deep][3][much][power][!]' value='Amaze'>
    </form>
    
    // produces
    {
        "wow":  {
            "such": {
                "deep": [
                    null
                ,   null
                ,   null
                ,   {
                        "much": {
                            "power": {
                                "!":  "Amaze"
                            }
                        }
                    }
                ]
            }
        }
    }
    

  • Prevent empty widget areas from being hidden
  • X xbenjii

    Probably this line here.

    if (!renderedWidgets.length) {
    	area.addClass('hidden'); //Remove this.
    	ajaxify.widgets.reposition(location);
    }
    

    https://github.com/NodeBB/NodeBB/blob/master/public/src/widgets.js#L68


  • Screen Capture Tool
  • X xbenjii

    I use Sharex 🙂 It allows me to grab a region, upload to my server and copy the link, all in one button. 🙂


  • Inbox for Google
  • X xbenjii

    Got 3 invites, chat me your email and I'll send you one.


  • What editor do you use?
  • X xbenjii

    Sublime for JavaScript, Netbeans for PHP.


  • The spam is real.
  • X xbenjii

    @a_5mith said:

    @bentael, any chance akismet can be trained to look at the topic title as well as the post content. Current spam is only in the title. Whether the title is included in post content or something like that.

    Could it be something as simple as changing

    comment_content: data.content,
    

    to:

    comment_content: data.title + data.content,
    

  • loki.js
  • X xbenjii

    @julian said:

    I'll echo that. Looks interesting alright. If it's drop-in compatible with MongoDB, then maybe we can natively support it with a few lines of code (wishful thinking though heh)

    LokiJS draws inspiration from MongoDB and CouchDB, in that the API is similar (but not identical or compliant) to MongoDB and you can define your own views in a CouchDB style.

    Doesn't look like it could be a drop-in replacement, though should be easy to get it working.


  • Google Drive For Image Embed
  • X xbenjii

    I thought Google Drive was geared towards personal usage and sharing? Can't see this being good for public use.


  • loki.js
  • X xbenjii

    Looks interesting, especially the DynamicView class.


  • How do i install nodebb on channel file manager!
  • X xbenjii

    @Scuzz Don't know why that was directed at me but I have 4 Kimsufi servers in a cluster. 🙂

    You looking at automating it?


  • How do i install nodebb on channel file manager!
  • X xbenjii

    @Var1 said:

    @xbenjii Still i like the shared cloud hosting, i don't want VPS.

    You mean you don't like paying for things, since x10 is a free (and absolutely terrible) host (also not cloud). 🙂


  • How do i install nodebb on channel file manager!
  • X xbenjii

    You can pick up a cheap VPS for $5 a month, you're way off at $99.


  • Is it possible to change the language used on, say, empty topics
  • X xbenjii

    Yep. You can change it in:

    /public/language/<your language>/category.json
    
    "no_topics": "<strong>There are no topics in this category.</strong><br />Why don't you try posting one?"
    

  • Who is in? Plugin
  • X xbenjii

    @Schamper said:

    @xbenjii why wouldn't it work? That regex should work as long as there's a line with "Who is in?". You can have as much text around it in different paragraphs as you want. Maybe you didn't notice the m modifier?

    Whups, missed that xD. Just saw the start/end anchors.


  • Who is in? Plugin
  • X xbenjii

    @Schamper said:

    @xbenjii kind of dangerous, any post with the magic string in it somewhere would get a match. Might not always be the expected behaviour.

    Personally, I'd do something like /^Who is in\?$/gim, but that's me 😛

    If you wanted to add some sort of description though, that wouldn't work. 😛 Maybe create a template, something like:

    Some text.
    {who-is-in}
    Some more text.
    

    Then you could do

    /\{who-is-in\}/gi
    

  • Who is in? Plugin
  • X xbenjii

    @Schamper said:

    Nice! Is there source available yet?

    How do you parse the "who is in" string? What happens if someone puts it in the middle of a sentence? Does it also work on every post in a topic of just first post?

    Looks like it's just a direct replace on each post, not just the first.

    postContent = postContent.replace(/Who is in\?/gi, mainTemplate);
    

  • User Administration
  • X xbenjii

    I'm all for this, considering:

    https://community.nodebb.org/topic/2793/love-marriage-problem-solution-91-9982822666
    https://community.nodebb.org/topic/2792/vashikaran-specialist-baba-9982822666
    https://community.nodebb.org/topic/2791/black-magic-sdpecialist-91-9982822666
    https://community.nodebb.org/topic/2790/91-9982822666-husband-wife-love-problem-solution-baba

    xD

  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
  • Login

  • Don't have an account? Register

  • Login or register to search.