MyBB Community Forums

Full Version: Sticky thread icon
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This should be quite a simple update,or maybe not, if it can't be included in 1.6 series maybe 2.0.
What i mean is most forum software has a sticky thread icon for example a picture of a pin, maybe mybb could include this, if you are unsure what i mean then i'll try to explain.
You ave a paper clip image for a thread with a attachment in the forum listings, what i would like is a image of say a pin to appear there when a thread is stickyed, and also maybe also a auto prefix of Sticky: comes up, If un sure I'll try and get a screen shot of a similar thing.
It's nicely categorized already I think, under important threads.
You can easily change this if you want!
I edited the language file to say sticky instead of important, but still think the icon would be a nice touch, you have one to show attachments and one for locked/closed threads.
Well you coul install the php and template conditionals plugin (I don't remember where to download it), then write a simple IF statement to display a pin icon next to sticky threads, something like this:

<if $thread['sticky'] then><img src="{$theme['imgdir']}/whateveryoucalledyourstickyicon.png /></if>

Then in your forumdisplay_threadlist_thread template, put this code in the cell with the thread title.

Simple as that.

Or you can just try with javascript.