You can also add SatoshiCamp
Thomas
Posts
-
Who is using NodeBB? -
Error when opening chat room from the 'chats' pageI found my problem and solution. I made a custom theme based off persona and was using an old version of chats.js. I updated the chats.js file in my theme folder and the problem disappeared.
-
Error when opening chat room from the 'chats' pageWhenever I navigate to the url /chats and I click on a specific chat room to see the messages I get this error...
/chats/NaN Not Found
You seem to have stumbled upon a page that does not exist. Return to the home page.When I inspect the element of the chat room it shows the proper room id 1 in data-roomid so this must be a problem with the function.
And I can get to the chat room successfully from the drop down in the header and also expand it from there. The url /chats/1 loads the chat room fine. It's just clicking on the chat room from the /chats page that gives me the error.
There's no errors in the ./nodebb log or in the browser console log. Any idea how I could debug and fix this?
-
[nodebb-plugin-ns-awards] NS Awards, Give Medals!Any idea how I could automatically give users awards when they complete certain things? Like 100 posts or being a member for a year. I know nodebb has rewards that does this but I want it to be with badges on the profile instead of adding to groups.
-
How to know what page is being accessed in header.tpl ?@pichalite Thanks. I would rather do this on the server side though because I don't want to load this content on the profile page at all. With client side javascript, the best I can do is remove the node after the page is loaded and that is messy. It would have to be an if statement in the header tpl file. Something like this...
<!-- IF page.profile -->
Is that possible? I'm not sure what variable hold that information. Also, does nodebb reload the entire template when changing pages? Or does it only load the header file once? The latter would probably make a server side implementation not possible. Thanks again.
-
How to know what page is being accessed in header.tpl ?I'm trying to exclude a feature on the profile page using the header.tpl file. I need an if statement that will say if this is not a profile page then do this. Any ideas? I'm not sure how to identify pages inside the tpl files nodebb provides.