@Tanner Same problem on my theme, it came with the new nodebb update, v0.5.0-3 http://screencast.com/t/Amj6TRPH2F6z
Jelena
Posts
-
{tags.score} does not work in post page -
A new post in topic shows only when page is refreshedIn my topic.tpl I made some changes using @first to separate first post in topic from others. It worked, but there is now next problem. When i create a new post it doesn't show it instantly, I have to refresh page to see that post.
This is how my topic.tpl looks now http://pastebin.com/jYNQ1WVr
Also, I noticed this http://screencast.com/t/jESEIi9GiY . Instead of just creating one more <li> in .otherPosts div it creates another .firstPost and .otherPosts div.
I think that maybe I made some mistake with using @fist but I can't figure out what is it. Someone help?
-
Using a script with Require.js support.@psychobunny I added you for a collaborator on my github project so there you can see everything you need.
-
Using a script with Require.js support.@esiao I checked, and i am calling the correct file. Here is how my isotope.js looks like after i deleted what @julian told me http://pastebin.com/YPYs63T9 . I am not sure but I think that nodebb minify files automatically and that is why that happens. Can someone confirm? @psychobunny @a_5mith
-
Using a script with Require.js support.@julian I delete that line like you said so this is left http://screencast.com/t/m27giXBBf . Now it doesn't show the first huge error like before, just these two http://screencast.com/t/bjsb13UHJXTj . I think that this second error is because of my main.js file but I don't know what exactly is problem.
-
Using a script with Require.js support.Thank you for referring me on this topic @psychobunny I was trying to figure it out but no success.
I want to implement isotope in my theme and this is what i used https://github.com/metafizzy/isotope/blob/master/dist/isotope.pkgd.js . So I did next:- I made two files:
- isotope.js where i putted the code from github I linked above and
- main.js where i putted code like this http://screencast.com/t/hzOQQJsq
- In my plugin.json I added those correctly i believe, http://screencast.com/t/MQYZAVwSrdd
And then it shows an error http://screencast.com/t/nYlVaPbtej . I am not sure what I have to do to fix this. Any help? @esiao
- I made two files:
-
Page loads content only when i refresh it@a_5mith @psychobunny Thank you both. So the error is removed and cache is cleared, so now it works like it should. ^^
-
Page loads content only when i refresh it@julian
/api/recent
route shows this http://screencast.com/t/juIfZXPC and I am using templates.js 0.0.10 .
I just tried with templates.js 0.0.8 and it still happens the same thing. -
Page loads content only when i refresh itMy theme is acting weird for some reason. When i click on menu to go to recent posts for example, it shows only header and sidebar i made and no content. Then I refresh page and it shows. Does anyone have an idea what can that be? @psychobunny @julian @trevor @a_5mith
-
Displaying topics instead of posts on profile page@trevor @esiao Yes, I need that for user's profile page, but tnx anyway The thing is that I don't know how to make plugins, because I am focused on design for now. Is anyone else interested to help with this? @psychobunny @julian or any other developer?
-
Displaying topics instead of posts on profile pageI made a change on profile page, so now instead of posts it displays topics that user created. Like this http://screencast.com/t/8OjPbPkwP1u . But the problem is that if user make another post in his topic or in someone else's, it will show it again and again. Like this http://screencast.com/t/rucvj4rjHo .
What i need is to show it only once and only when a user create the topic. How to achieve this?
-
Which CMS would you choose if you wanted to create a Q&A forum?@psychobunny @baris Btw, how to make this hook work on recent topics, or profile page? I tried to add in my plugin.json this:
{ "hook": "filter:recent.get", "method": "addPostData" }
but it didn't worked. Can I apply this hook to any page I need just with changing those filters or it is not that easy? -
Masonry.js on category page@esiao That didn't worked, it looks like it doesn't even loads masonry.js for some reason. How can I see is the scirpt loaded and is it loaded correctly? Maybe some cmd command? I followed all instructions in setting up plugin.json and theme.json and I am pretty sure that I did it right. I can't figure out what can be the problem. Any other suggestions?
Tnx anyway ^^ -
Masonry.js on category pageHow can I apply masonry layout on category page? Consider that I am building my nodebb theme based on vanilla theme. So my category page looks like this http://screencast.com/t/LifqTQsa and that is not cool as you can see.
I called masonry.js in plugin.json following the lavender theme example and copied the content of lavender.js file into mine. I tried to make it work by changing this codemasonry = new Masonry('.row.home > div'
into this
masonry = new Masonry('.row.category > div'
It didn't worked. Is that even possible to do with just changing lavender.js to affect on category page instead on homepage?
-
Problem when trying to call masonry js library in plugin.json@a_5mith and once again you saved my day, tnx. I had to remove coma in plugin.json too on last line
"static/vendor/masonry.js"
but yes, commas were problem.^^ -
Problem when trying to call masonry js library in plugin.jsonI have a problem with implementing a masonry library script into my theme. I followed this https://github.com/NodeBB/nodebb-theme-lavender/blob/master/plugin.json to see how it should be done. Of course I changed "lavender" to "my theme name". So now my files looks like this:
- plugin.json http://screencast.com/t/LcPwNv5g
- theme.json http://screencast.com/t/juwjCrtfJQ
The problem is that my site then crashes. And it says that the problem is
unexpected token }
http://screencast.com/t/QXeJAsgwF and that is weird because I never changed those files. -
How to change size of image in post content but not via css?Is there some way that script can generate more image sizes? It would be useful in case that user upload an image that is very big. So take this for example http://screencast.com/t/78z3zz8tVdoM . I changed this universe image size to fit into that div with css and it looks good. The actual image is very big, the size of it is 4.20mb. That is a lot if we consider that I don't need it to be displayed in full size. What can I do about this?
-
Which CMS would you choose if you wanted to create a Q&A forum?@baris Thanks! That worked ^^
-
Which CMS would you choose if you wanted to create a Q&A forum?@psychobunny I followed your instructions above and as you can see here http://screencast.com/t/2sNjFqWK I succeeded to add
mainPost
data in my category view api. Then In category.tpl I added this code<div class="topicContent">{topics.mainPost.content}</div>
and the rest of the code is like in vanilla theme category.tpl .Still something isn't right, I got this as a result of what I did http://screencast.com/t/T7AYotKM . -
Which CMS would you choose if you wanted to create a Q&A forum?Thanks @a_5mith for pointing me to this topic. So I have a question:
- On the category page, where the topics are displayed, I want to add content of the first post into topic. This is the failed idea http://screencast.com/t/q7FpL5nN3 . I couldn't do that because in the api of that category page there is no "posts" value. Could I make that happen with
$.get('/api/another/page')
? ( If yes, it would be nice if someone could explain that a bit deeper. ) Or I need some other solution?
- On the category page, where the topics are displayed, I want to add content of the first post into topic. This is the failed idea http://screencast.com/t/q7FpL5nN3 . I couldn't do that because in the api of that category page there is no "posts" value. Could I make that happen with