Hey guys,
For the theme I'm currently creating, I would like to have icons displayed on the forumdisplay page to indicate when a thread is stuck or closed, like XenForo:
Normally, I would do this using the php in templates plugin from mybbhacks, and put something like this in the templates:
However, since I'm planning to publicly release this theme, I can't use this plugin in it for copyright reasons.
How to put this in javascript or something, that can also be used in the templates without the need for core file edits? Any help would be greatly appreciated.
Thanks in advance
For the theme I'm currently creating, I would like to have icons displayed on the forumdisplay page to indicate when a thread is stuck or closed, like XenForo:
Normally, I would do this using the php in templates plugin from mybbhacks, and put something like this in the templates:
<if $thread['sticky'] then><img src="pathtostickyicon" /></if>
<if $thread['closed'] then><img src="pathtoclosedicon" /></if>
However, since I'm planning to publicly release this theme, I can't use this plugin in it for copyright reasons.
How to put this in javascript or something, that can also be used in the templates without the need for core file edits? Any help would be greatly appreciated.
Thanks in advance