![]() |
Want to display icons in place of certain tags
Alright, I recently enabled tags on a forum I'm newly an admin on, and people are suggesting icons in place of tags in a subforum called "Gaming."
So basically if a thread is tagged "wii, action-adventure, zelda" I want the threadbit to ignore the action-adventure and zelda tags, and display an icon for the Nintendo Wii in place of the "wii" tag. I'm thinking something like... <if condition="$show['taglist'] AND $forumid == 41"> <if condition="inarray('playstation', $thread[taglist])">$psx_icon</if> <if condition="inarray('n64', $thread[taglist]")>$n64_icon</if> </if> I'm just not sure if $thread[taglist] is an array. And if it's not I need to know how to turn it into one using PHP functions that are safe to use in conditionals. |
You would be much better off doing this in a plugin. Find when the tags are processed in showthread.php, and I'm sure there is a hook there to play with. :)
|
I've resigned myself to this fact too. Well, time to learn me some PHP (luckily I have a CS degree).
|
All times are GMT. The time now is 03:51 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|