Custom made pages

Technical Support

Suggested Topics


  • 1 Votes
    23 Posts
    2k Views

    Well I am embarrassed, I figured out the problem! There is no problem with custom javascript or the custom header information. It turns out the nodebb-plugin-ns-twitch-monitor was the problem! The plugin does not seem to work after a certain version of NodeBB and where I had it placed in my widgets must have been causing the custom header code to not load or run properly.

    I am still running v1.4.5 but am moving over to a new server, yes after all of these years. In doing so I have been incrementally stepping through upgrades, 1.4.5 -> 1.5.x -> 1.6.x -> 1.7.x... It was there at the 1.7.x that my custom Piwik (Matomo) code stopped working. I put NodeBB into "dev" mode and saw a number of errors related to the Twitch plugin. I removed the plugin and my analytics code now works fine.

    It is bittersweet as I really like the Twitch plugin on my forum but the plugin stopped working quite some time ago. Twitch changed how their API works and the plugin was never updated to keep up.

    Shouting out to a list of people for closure on this, in case you were all losing sleep on this since May of last year! @baris @julian @Nicolas

  • Custom CSS not working

    Technical Support
    0 Votes
    13 Posts
    4k Views

    @Thouv said in Custom CSS not working:

    @PitaJ said in Custom CSS not working:

    I just want to make sure that every possibility is exhausted.

    Can you try turning the Enable Custom CSS toggle off, then saving the page, then turning it back on, then saving the page again? Thanks.

    And can you check for any errors in the browser console when on that page?

    It worked! Thanks
    Just had to disable, save, and reenable. Weird.

    😛 Hi thouv

  • 0 Votes
    5 Posts
    2k Views

    SOLVED

    In case anyone else has this problem, here's where I found what I needed.

    File: /nodebb/src/controllers/helpers.js
    Methods: buildCategoryBreadcrumbs and buildBreadcrumbs

    Editing those allowed me to get the behavior I was looking for. Although, I would be curious to know if there is a better way to do this without changing the source code.

  • 0 Votes
    14 Posts
    4k Views

    @ron_jeremy said:

    I'm not 100% sure.

    I have "failed" to install NodeBB on a DigitalOcean Droplet about 25 times by now. Seriously, I'm not exaggerating. The people at DO must have wondered "wtf is this guy doing?" because I was creating and destroying Droplets non-stop for days.

    I think what made the difference for me this time was not installing redis or nodejs as per the official NodeBB install document. Instead, I only installed the Chris Lea files.

    I was so tired to trying different methods of installation I actually started keeping a log of what I was doing. I got it down to where only a few lines would change, and I am pretty sure this is what finally worked for me (remember, this is on a DO Droplet running Ubuntu 14.04 x64):

    add-apt-repository ppa:chris-lea/redis-server apt-get update apt-get install redis-server apt-get update apt-get install git apt-get install build-essential apt-get install imagemagick apt-get install python-software-properties add-apt-repository ppa:chris-lea/node.js apt-get update && apt-get dist-upgrade mkdir nodebb git clone git://github.com/designcreateplay/NodeBB.git nodebb cd nodebb npm install node app --setup
    - only modify first line where I enter my server's address http://your.server.ip.address (without the port) and hit 'Enter' for all other options node app
    - Now you can go to http://your.server.ip.address:4567 to see the forum

    I have try this but when i go to npm install
    i get this :
    E: Unable to correct problems, you have held broken packages.

    PD.
    Got fixed with :

    apt-get remove --purge nodejs npm
    curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
    apt-get install nodejs

  • 0 Votes
    6 Posts
    2k Views

    i decidede to fork the recent cards plugin, and modify it to have the html markup i want only on the category page.