I'll have to do some more testing. Thank you for your help.
sdnyco
Posts
-
How to properly include anything.js -
How to properly include anything.jsGood evening everyone,
as I am currently working on a theme, I have encountered a problem (as expected).
For the theme I am working on I'd love to use a carousel β a jQuery plugin. So I modified the
plugin.json
file of my theme (a copy of Vanilla)."id": "nodebb-theme-banana", "library": "./lib/theme.js", "hooks": [ { "hook": "filter:widgets.getAreas", "method": "defineWidgetAreas", "callbacked": true } ], "scripts": [ "./lib/slick.min.js" ] }``` Now, before actually triggering the script (using the custom JS settings in the ACP) I get `Uncaught ReferenceError: require is not defined` in the console. And since that is already a boatload of fun, when I ***do*** trigger the script, it throws so many errors I am not even going to bother posting it here. So since I am obviously doing something very wrong, my question to all of you nice people: How do I properly include jQuery plugins. I just want to theme. :cat:
-
Plugin / Theme contest!Looks like I really need to get started now. When do you expect the official deadline to be announced?
-
Copying Vanilla Theme@mootzville You are my hero. That did the trick! Hats off to you, Sir.
Now on to actual theming!
-
Copying Vanilla ThemeI'd be more than happy too. I'll message you in a sec.
-
So, who's watching the Apple Conference?Maybe that was the problem. I wasn't able to properly organise all of my pirated music.
-
Copying Vanilla ThemeI wrongly used the term reboot instead of restart beforeβbut yes: I did restart nodeBB.
-
Copying Vanilla ThemeAlright, this is about to drive me crazy. I guess there are other ways I'll try theming but this bugs me:
- Successfully duplicated the theme.
- Renamed it to "NodeBB Banana".
- Replaced the info in theme.json / package.json / plugin.json
- Successfully selected the theme in the ACP.
- Restarted nodeBB.
... I edited the header.tpl of the Vanilla theme, and after all these steps it only shows me the header.tpl of the Vanilla theme (instead of Banana)! What am I overlooking?
-
So, who's watching the Apple Conference?@Scuzz In addition to having to reset it on a bi-yearly basis (and I am not the kind of guy who just downloads anything), doing simple things as synching music and files was a mess. It probably is much better by now, I just never felt like there was an unified vision (and thus user experience) in Android products.
-
Copying Vanilla Theme@Tanner said:
I copy the theme folder in node_modules and then edit the theme.json file, then reupload and select the new theme. Not sure why you can't select it.
I either do that or make all my changes to the Vanilla theme first then copy it over and change the theme.json file.
Bizarre. Maybe I'll give it another try (5th time's a charm... as they say). Really want to get started on theming.
-
Copying Vanilla ThemeHey everyone,
despite being a noob in general I installed NodeBB yesterday. I already have a design ready I want to implement, now I just have to do it.
I've been meddling with the Vanilla theme (just to get a feel for how everything works), as it seems to contain all the components that I need for my theme. While I don't want to create a Vanilla child theme, I want to start off with the Vanilla files, then strip away code layer by layer just to get an idea how everything behaves and fits together.
Since I don't generally use the command line, my question is this: How can I easily copy the Vanilla theme (to not mess up the original one) to start fuc*ing it up?
I've tried copying the theme in the node_modules folder, but I can't seem to select the theme in the ACP later (despite changing the theme.json). Is there any other/better way?
Thanks!
-
So, who's watching the Apple Conference?As much as I understand the criticism of Apple and their strategy: in my opinion they are doing everything right. I was a (Windows/Ubuntu) PC user for a decade, and my first smartphone was a Samsung Galaxy... no idea what model it was... running Android. So I am not quite the typical Apple fanboy.
The point Android/Google is missing is that being first is not necessarily a virtue to be first. Just look at Google Glass. A magnificent piece of technology, yet people are reluctant to like it, or even allow others to wear it. You need to give people time to adapt to new technology, and the execution has to be perfect.
Eventually, I became tired of maintaining my devices. I just wanted something that works, so I could get work done and snapchat minors. Execution and timing is what Apple gets right. And the strategy of leaning back and letting others doing the pioneering (and struggling with the mistakes) seems to work out just fine.
Though, I have to admit: As a Swiss citizen I find the AppleWatch an abomination.
-
Plugin / Theme contest!@psychobunny Tell my friends! Haha, good one.
And I was more thinking about creating a new theme, rather than a plugin. But I definitely wouldn't mind a newbie category.
-
Plugin / Theme contest!I have never worked with nodeBB but I shall join the fun for the mere sake of embarrassing myself. I need to get started on theming anyway.
-
Majestic v4I am looking forward to using nodeBB for a community of 3k (if everything goes according to plan) and it is good to know I will have a great deal of control over the design. Also looking forward to the new Majestic version. Truly inspirational.
-
Majestic v4I absolutely love the theme (especially the landing page looks delicious). Is the resemblance to Medium intended?
Nonetheless, it is inspiring what is possible with nodeBB. Can't wait to get started with my own themes.
-
Support for Sass based themesI don't mean to revive old topics, but are there any news concerning SASS support?