Yeah that's how @psychobunny does it in some of his plugins. There isn't a more elegant way right now as far as I know, the loading order determines the template used but you can't arrange the themes in that list so maybe that's what we should add.
<baris>
Posts
-
Overriding template -
User.getUidByEmail cannot find email?Yeah pretty much,
email:uid
sorted has the user id as the score and the lowercase email as the value.
email:sorted
has a score 0 and the value isuseremail + ':' + userid
It is used to search users by email. -
On the topic of automatic linking back to a post...It's already possible but not really elegant, you can select a piece of text while the composer is open and hit the reply button and it will insert as quote.
-
I am getting "error uploading, code : 500" when trying to upload site logo.Thanks for reporting as @pkiller mentioned this should be fixed if you create the system folder. I have also fixed it on master as well as the error messages so you should get a better error message if the upload fails.
-
Report BuildingI plan to update the dashboard for 1.0 so that you can change the period from past 24 hours to past week/month etc. We already store the data so it is just a matter of displaying it.
For now you can retrieve the pageviews for a particular period with the below mongodb query. Just replace the
$gte
and$lte
with timestamps of the hours.db.objects.find({_key:"analytics:pageviews", value: {$gte:"1443657600000", $lte:"1443657600000"}})
The score fields in the return are the pageviews.
-
Don't Laugh at Me: How to Add JS to Widget to Display TextYou want something like this
<script type="text/javascript"> if(app.user.username === 'me') { $('#someElement').html('some content') } </script>
-
User Icons Testing@pitaj It's the line-height.
-
New Chromebook Pixel!@a_5mith yeah wasn't installed. Installed/activated youtube lite now.
-
Report BuildingWe started tracking 27 sept 2014 https://github.com/NodeBB/NodeBB/commit/144992426d54822900b7e1a6599c80d6eb1f2225#diff-307ab759c4e7a3d68d5f631f0e017eb5 so since 0.5.1 I believe
-
Animated Profile PicturesI believe this broke when the cropper module was added. It shows the animated gif while cropping but when you save the image is turned into a png
-
Where is users map?Yeah its a nice feature to have when you have a small community because you only ever see a few users in the browsing user list.
However once you have a forum where a topic has >500 users it becomes useless and just a unnecessary strain on server resources like julian said.
We will probably bring it back as a plugin.
-
Clustering with Mongo?Yeah it will work by just adding the redis section. Let us know if you run into any issues.
-
[nodebb-plugin-shoutbox] Shoutbox plugin@Schamper You should probably update the main post with the new version info. Still says nodebb 0.4.0
-
Accidentally disabled local user loginCan you login when you go to
site.com/login?local=1
-
NodeJS ClusterThere are some solutions, but once you start scaling out you will most likely going to run nodebb app servers on different hosts and use nginx to load balance. So having nginx handle this with an upstream block and ip_hash is easier.
Check out https://github.com/indutny/sticky-session for one. Someone sent a PR to nodebb as well here https://github.com/NodeBB/NodeBB/pull/2527
-
Is it necessary to use Database as a service to host NodeBB forumIt is perfectly fine to install the database on the same VPS as NodeBB.
-
[nodebb-plugin-adsense] Google AdsenseI have forked this plugin to the community team, https://github.com/NodeBB-Community/nodebb-plugin-adsense
Tested and working on nodebb 0.9.x / master on persona.
-
remove numbers before categories from urlThis is not possible. Those numbers help identify the categories.
-
Problem with 0.9 version and subcategories on main pageIf you have a custom theme make sure you don't have any invalid syntax in the templates. Specifically check for whitespace missing in
<!-- BEGIN someArray -->
and<!-- IF someCondition -->
blocks. -
Is it necessary to use Database as a service to host NodeBB forumI am not sure if bluehost gives you ssh access to install the required software to run NodeBB, if it does then yes you can install NodeBB on it.