• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 Last Posts on the sidebar.

#1
I wan to show the last posts in the sidebar on the index page.
I would like this to be done without the use of any addons, ie via template edits and using the xenforo helper functions to do so. Kindly please assist me on how to proceed.
Thankyou.
 

Mr. Goodie2Shoes

Well-known member
#2
I don't think you will be able to do it without using an add-on as you'll need to fetch the 'latest' posts from the database...
Or do you want something like fetch all the last post from each of the nodes from the main node list and display them in the sidebar block?
 
#5
I dont want to put any extra queries. MyBB had a variable to output the latest threads. I am waiting for @Brogan or @Jake to comment if Xenforo does have some equivalent feature.
 
#7
Sure mate. Why not. Rather than you creating I would love if you can teach me bro. I am a budding web developer and well xenforo is just a day old to me.
 

Mr. Goodie2Shoes

Well-known member
#8
okay... so you have to port into XenForo_ViewPublic_Forum_List and extend renderHtml and get the list of recent posts from there. And then create a template modification to add a new sidebar block where the recent posts will be shown (you will need to stylize the look).