I previously had this issue. It only affects admins who have the rights to change the order of the pinned topics which is why it's unlikely others can't reproduce on the OPs site.
However since 1.7 (could be Chrome 64) I no longer have the problem.
[Solved] recent posts displays *threads*, not posts
-
Check out this thread https://github.com/designcreateplay/NodeBB/issues/1163 it might be the same problem.
-
Thanks for the report @giorgio-chiodi, what's the line before that error say?
-
ahhh, don't know I went with
set schemaDate 1393113600000
and it works now -
@julian it's this one:
info: [2014/2/20] Activating NodeBB Essential Widgets - skipped
-
yes it works now! how do I "solve" this?
-
No problem, I marked it as solved for you
-
@julian eh I know I'm a pain in the ass, but now the thread post is not displayed. Could we have both the post text and the thread title?
-
@julian Ok I edited line 12 in recentposts.tpl and replaced it with
<a href="{relative_path}/topic/{posts.topic.slug}#{posts.pid}">[[category:posted]] in {posts.topic.title}</a>
I'd also like to do it on the homepage, but
{categories.topic_title}
doesn't work -
@giorgio-chiodi Are you referring to the recent topics widget?
-
@julian Hello Julian, yes I've modified the recentposts.tpl file to add the topic title in the recent posts widget
I'd like to do the same thing on the homepage, I don't know what variable to fill in -
Hm... so the "recent posts" widget is not showing the title, and the "recent topics" widget is not showing the post text?
Perhaps @baris can help you
-
@julian No wait now I'm confused.
I wanted to show the post content in the "recent posts" widget, and now it is possible with the latest update.
I have lost the ability to read also the topic title, which I fixed by manually adding{posts.topic.title}
in the tpl file.
What I'd like to add now is the same functionality{posts.topic.title}
in the home page, but I tried adding it and it doesn't work. -
Try
<!-- BEGIN posts --> <div class="category-box"> <div class="post-preview"> {categories.posts.topic.title} <img src="{categories.posts.picture}" class="pull-left" /> <p class=""><strong>{categories.posts.username}</strong>: {categories.posts.content}</p> </div> </div> <!-- END posts -->
in home.tpl
-
@baris yesssss!
-
You can see all the available data to the template by going to api/home. For example on this site http://community.nodebb.org/api/home. You would need to paste it into something like jsonlint or inspect in the network tab to see formatted.
-
@baris awesome!