XF 2.0 Displaying last 3 post on a certain forum node

Joshb_

Member
I want to display the 3 latest last threads on the home page like on https://www.spigotmc.org/ or https://hypixel.net/

They use the forum node labeled Announcements and display it on the homepage.

How can I do this? I need good help with this, please.

P.S Please don't suggest to me these expensive plugins. I know it can be done with a little html and xen:loop

vPrx3et.webp
 
This doesn't work for me. Something I'm doing wrong?

3ph0ifd.png


PtPXG0d.png


EILbwgz.png

ju2fLlu.png


And to save space. The forum limit is all forums
 
I'd try with all add-ons disabled, I mean it works just fine:

Code:
<h2>
    test 1
</h2>
<xf:widget key="newthreads1" />
<h2>
    test 2
</h2>
<xf:widget key="newthreads2" />


1.webp

Screenshot_21.webp
 
Did you disable your style aswell or try it in the default style with no template modifications at all? Becasue, well, your screenshot above clearly shows a modificated style. On the other hand, the question could be: are you editing the correct style?
 
Did you disable your style aswell or try it in the default style with no template modifications at all? Becasue, well, your screenshot above clearly shows a modificated style. On the other hand, the question could be: are you editing the correct style?

It shouldn't matter in my opinion. There's no option where it makes you select the style to apply it on
 
You have to edit a template to add the widget key to it. So if you're editing the wrong style, obviously, the widget would not show up. Besides that, there could be issues within your style templates, so just give it as shot and try it on stock style first.
 
If you want to PM me a login I can take a closer look. Only other thing I can think of is the node you're pulling from is either restricted or has no actual posts in it.
 
Top Bottom