Hello,
As you all know the sticky thread icons are the same as the normal threads.
I would like to know if it is possible to change the images for sticky threads and if yes, how?
Thank you
You'd need a plugin or code modification of some sort.
Open forumdisplay.php
Find
$folder .= "folder";
Add Below
if($thread['sticky'] == 1)
{
$folder = "dot_stickythread";
$folder_label = "Sticky Thread";
}
Upload dot_stickythread.gif (selfchosen image) into your ./images/ folder.
Thank you LeX, it worked just fine.
I was thinking of making it just like any folder with 4 different images:
stickythread
newstickythread
dot_stickythread
dot_newstickythread
Is it also possible?
Thanks a lot for your help.
That's possible,
Delete the previous code.
Find
else
{
$folder_label .= $lang->icon_no_new;
$new_class = "";
}
Add Below
if($thread['sticky'] == 1)
{
$folder .= "sticky";
$folder_label .= " Sticky Thread.";
}
By viewing the available images in my ./images/ folder you probably need all these new images =P
dot_newstickyhotlockfolder.gif
dot_newstickylockfolder.gif
dot_newstickyfolder.gif
dot_stickyfolder.gif
dot_stickyhotlockfolder.gif
dot_stickylockfolder.gif
newstickyfolder.gif
stickyfolder.gif
stickyhotlockfolder.gif
stickylockfolder.gif
newstickyhotlockfolder.gif
newstickylockfolder.gif
That's perfect!
Thanks a lot for your help LeX. =D
That is a great tutorial, LeX-. Thank you very much.
Thanks Lex
Lex, add this to the Tut section