XF 2.2 How to add a small image on each forum

It's possible but it depends where the image is to be placed.

Is it in place of the standard speech icon or somewhere else?
I'd like to have am image of each vehicle along with the text in the Box , so an Image of a Ford Mustang EV in the "Ford Mustang Mach E" header thread..same in the Ford Focuc etc..

1606087665837.webp
 
Node descriptions allow HTML so you can use standard img src code.

HTML:
<img src="path-to-image.png" style="float: left"/>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Phasellus et leo at tortor semper condimentum sit amet non ex.
Nam nisl lorem, sollicitudin quis sollicitudin a, porta vitae mauris. Praesent non odio est.mi.

1606088077413.webp
 
Node descriptions allow HTML so you can use standard img src code.

HTML:
<img src="path-to-image.png" style="float: left"/>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Phasellus et leo at tortor semper condimentum sit amet non ex.
Nam nisl lorem, sollicitudin quis sollicitudin a, porta vitae mauris. Praesent non odio est.mi.

View attachment 240304
Awesome! I was looking at the Nodes but wasn't exactly how to incorporate them..Thank You again..

I think that's it for the night

Appreciate all your help
 
The importer doesn't cover stuff like that - it's very much style related so something which needs to be set up in XF afterwards.
 
The importer doesn't cover stuff like that - it's very much style related so something which needs to be set up in XF afterwards.

Hi Brogan!

Before i have written here,

I have changed these codes in: node_list_forum like this.

node_list_forum line 48 (default codes):
<span class="node-icon" aria-hidden="true">
<xf:fa icon="{{ $node.Data.TypeHandler.getTypeIconClass() ?: 'fa-comments' }}" />
</span
I have changed like this:
<span class="node-icon"><img src="directory/{$node.node_id}.png" alt="{$node.title}"
align="center" valign="middle" width="36" height="36"> </span>
İ have added all images as numbers in directory for node ids like 1.png, 2.png.....
it is okey for all main nodes.
it doesn't work for parent forums.

1) how can i make the same for parent nodes?
2) or how can i change the "default icon to >> my own image.png"
 
Last edited:
Top Bottom