[EAE Add-ons] Thread preview widget

[EAE Add-ons] Thread preview widget 1.2

No permission to download

Brad P

Well-known member
Love this add-on, i have a question is it possible to pull an image from the category node? i have your add-on setup as a homepage and have 1 block that sits at the top with the main post from members. It currently has a background image but i want it to display the image of the category someone posts in?
1613929408556.png
Link to homepage https://rivalgaming.com/
 

Lawrence

Well-known member
Love this add-on, i have a question is it possible to pull an image from the category node? i have your add-on setup as a homepage and have 1 block that sits at the top with the main post from members. It currently has a background image but i want it to display the image of the category someone posts in?
View attachment 246929
Link to homepage https://rivalgaming.com/

Nice looking home page, and happy you like the add-on, :)

To answer your question, I would have to add it as an option. The problem I see, is that the cover images you use for your category nodes are pretty huge, and I'm not sure what kind of performance hit they would cause. I would also need to know where the covers are stored, and in what format the source file is in (so the node id can be used to fetch the right cover).
 

Lawrence

Well-known member
Hi @Lawrence
Images are on my server and I'm using TH nodes add-on.

I see that, :) I inspected a node cover on your site, so the filenames of node images are the title of the node. It can be done, via a template edit, but it would be best done as an added option in the widget, to save unnecessary loading of attachment data.
 

Brad P

Well-known member
I see that, :) I inspected a node cover on your site, so the filenames of node images are the title of the node. It can be done, via a template edit, but it would be best done as an added option in the widget, to save unnecessary loading of attachment data.
Awesome that would be amazing!
 

Robert9

Well-known member
Really wonderful! Thank you.
Just one thing, please.

If i dont want to show the newest things, but just always the same ten threads, i need maybe one more detail to fetch them.
A prefix for example?

$thread.prefix_id=='123' maybe?

or

$thread.User.userid == '123'


Something like this?
 

Mouth

Well-known member
Lawrence updated [EAE Add-ons] Thread preview widget with a new update entry:
  • Cover source - you may choose to use an image for the cover from the first post or the last post
I've got mine for Use Covers: Yes, Cover Source: First Post.
The threads are displayed within the widget, but no image is used. The image(s) in the first post are URL inserts. Does it only work for uploaded images, and not URL image inserts?
 

Lawrence

Well-known member
Really wonderful! Thank you.
Just one thing, please.

If i dont want to show the newest things, but just always the same ten threads, i need maybe one more detail to fetch them.
A prefix for example?

$thread.prefix_id=='123' maybe?

or

$thread.User.userid == '123'


Something like this?

I'll add it to my to-do list, I'm just not sure when the next update will be.

I've got mine for Use Covers: Yes, Cover Source: First Post.
The threads are displayed within the widget, but no image is used. The image(s) in the first post are URL inserts. Does it only work for uploaded images, and not URL image inserts?

It works for only image attachments at this time, I'll look into supporting URL's.

To-do list:
  • add support for covers (use the forum cover, if available, for thread covers)
  • add option to fetch threads by prefix id or user id
  • add support for fetching thread covers by URL
 

Mouth

Well-known member
I'll look into supporting URL's.
Thanks.
I'm highlighting news and press release node/threads, and almost exclusively they use URL insert images. Looks great for article type nodes, and would like them to look just as great sourced from this addon :)
 

Robert9

Well-known member
May someone has a tipp where or how i can rid of the function/css that changes the visibility at the end of the text?
 

Lawrence

Well-known member
May someone has a tipp where or how i can rid of the function/css that changes the visibility at the end of the text?
I never dug into that, so as it uses the same CSS as articles do for that (message.less? I believe), you would need to over-write it in the less template provided with the add-on so it does not change the look/behaviour of normal articles in other forums. I'm not into CSS/styling so maybe someone else can provide a more detail set of steps, :)
 
Top