@marcos2 gh#1375
[Solved] recent posts displays *threads*, not posts
-
I noticed the recent posts widget displays new threads, but not the content of the posts.
-
BUMP @julian @baris @psychobunny
-
Upgrade https://github.com/designcreateplay/nodebb-widget-essentials it should have a new type of widget for recent posts. You will need the latest NodeBB code for it to work though.
-
so i just
./nodebb upgrade
? -
git pull ./nodebb upgrade
If you don't see the new widget after that try
npm install nodebb-widget-essentials
-
@baris I'm getting an error while upgrading
error: [upgrade] Errors were encountered while updating the NodeBB schema: Error: ERR Operation against a key holding the wrong kind of value
-
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!