Sub forums?
-
Can I upgrade now?
-
@MatthewHawley Well since it's a branch on Github yeah sure you can. Thing is as it's a development version there will be some incomplete features and a lot of new versions. In order to upgrade you need to do this :
git checkout 0.5.1 git pull ./nodebb upgrade cd node_modules nodebb-theme-vanilla git checkout 0.5.1 git pull cd ../ ./nodebb start
This will update your NodeBB installation and the Vanilla theme. You need both of them updated in order to have a functional 0.5.1. Both of them need to be git repositories in order to do the update.
Then check for new versions regularly by pulling new versions (git pull) in both folders. -
I've done what you had above, though with the path corrected and while I do get the functionality on the admin side, it doesn't seem to show up in any clear way as the user.
Was I supposed to use a different for for the vanilla theme than https://github.com/NodeBB/nodebb-theme-vanilla or is there some post config required?
-
Didnt work for me.
-
@Shard & @MatthewHawley Well you have the feature. The thing is that there's no compatible theme up yet, you can do it by yourself though I'll will explain the logic in a few sec but keep in mind that this feature is not complete (in my opinion) you can find more about that here : https://community.nodebb.org/topic/2357/subcategories-not-working-as-expected/3
Anyway here are some tips on how to implement the sub-categories in the easiest way possible and by yourself :
- Create a custom theme based on Vanilla (or another theme). https://community.nodebb.org/topic/2382/copying-vanilla-theme/2
- Create a templates folder and in it create home.tpl. Copy paste Vanilla theme (or another one) home.tpl and change this (vanilla but the logic is the same for other themes just find the main category item wrapper) :
<div class="{categories.class}" data-cid="{categories.cid}" data-numRecentReplies="{categories.numRecentReplies}">
with this
<div class="{categories.class} <!-- IF categories.parent.name -->hide<!-- ENDIF categories.parent.name -->" data-cid="{categories.cid}" data-numRecentReplies="{categories.numRecentReplies}">
This will hide the sub-categories on home.
Then to display the sub-categories in a category, create category.tpl copy paste it from base theme and copy from home.tpl what's between (copy begin and end too)
<!-- BEGIN categories -->[...]<!-- END categories -->
.In category.tpl over
<div class="category row">
create a new div with whatever you want classes (to indicate it's your subcategories wrapper) and in that paste what copied earlier. Just change everycategories.
bychildren.
and you're done. -
@esiao said:
@Shard & @MatthewHawley Well you have the feature. The thing is that there's no compatible theme up yet, you can do it by yourself though I'll will explain the logic in a few sec but keep in mind that this feature is not complete (in my opinion) you can find more about that here : https://community.nodebb.org/topic/2357/subcategories-not-working-as-expected/3
That explains my confusion, the steps strongly implied the 0.5.1 version of Vanilla had been correspondingly modified.
-
@julian Aha. Now I just have to learn me this theme system.
@julian said in Sub forums?:
@Shard as of yesterday, subcategories can be seen inside a parent category now, so no modification of the 0.5.1 vanilla theme is necessary
Hmm. I'm still seeing the subs on the main page. Let's see if I can figure that out.