hello Zingaburga community
I’m having trouble with the XThreads Display Item Format for my filmgenre field. My goal is to display each genre value (e.g., "Drama, Romance, Supernatural, Paranoid") as separate HTML tags with individual CSS styling, like this:
here’s my setup:
- key : input :{$tfinput['filmgenre']}. output : {$GLOBALS['threadfields']['filmgenre']}
- filmgenre is a text input field in xThreads, with a value like "Drama, Romance, Supernatural, Paranoid".
- In xThreads settings:
Display Item Format: <span class="genre-tag">{VALUE|htmlspecialchars}</span>
Display Format: <span class="genre-list">{VALUE}</span>
Blank Value: <span class="genre-list"><span class="genre-tag">No genre available</span></span>
- css
However, the output in the thread is not parsed correctly. Instead of the expected HTML, I get:
It seems the {VALUE|htmlspecialchars} syntax isn’t being processed by XThreads. I’m using MyBB 1.8.x (please let me know if you need the exact version or XThreads version).
How can I achieve the desired output where each genre is wrapped in its own <span class="genre-tag"> with proper styling? Is there a better way to split and style each genre value in xThreads?
thank you for your help!
demo: Indolokal