Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Icons
This discussion has been closed.
Comments
The top one is [Sticky] only
The bottom one is [Sticky] and [Closed]
.Bookmarked .DiscussionTopic, .Whispered .DiscussionTopic, .Sticky .DiscussionTopic, .Closed .DiscussionTopic, .Hidden .DiscussionTopic { background: none; padding-left: 0px !important; }
if not, I'm not sure what's going on.... Here is the icon part of my vanilla.css, it works for me...
.NewComments, #Discussions li.Read.NewComments ul { background-color:#f1f1f1 !important; background: url('new.png') no-repeat center left ; } .Sticky .DiscussionType { background: url('Sticky.png') no-repeat center left; } .Bookmarked .DiscussionType { background: url('bookmark.png') no-repeat center left; } .Whispered .DiscussionType { background: url('whisper.png') no-repeat center left; } .Closed .DiscussionType { background: url('closed.png') no-repeat center left; } .Hidden .DiscussionType { background: url('closed.png') no-repeat center left; } .Sticky.Closed .DiscussionType { background: url('sticky_closed.png') no-repeat center left; } .DiscussionTopic { background: url('comments.png') no-repeat center left; padding-left: 30px !important; } .Bookmarked .DiscussionTopic, .Whispered .DiscussionTopic, .Sticky .DiscussionTopic, .Closed .DiscussionTopic, .Hidden .DiscussionTopic { background: none; padding-left: 0px !important; }
update: fixed it, had to do a padding-left: 10px for the sticky and close to line them up with the regular dicussiontopics
Because an element can only have one background image at a time. Whichever selector you specify last overrides the background image from the other.
It is possible to make a third image for discussions that have both classes, but IE6 chokes on the syntax.
Go to application settings, then in label prefix put in
Lable suffix should have
Then upload some images named in that images folder.
I always tried to put the whole thing in the label text field, which caused problems.
Forum Help: [Sticky, Closed] Getting Started
The comma and space are still there.
An extension would be cool.
Forum Help: [Sticky] [Closed] Getting Started
etc.
Exactly, what I asked for way back on Jul 13th 2006!
library\Vanilla\Vanilla.Functions.php
. Replace it with this to get icons working as I mentioned five days ago.function DiscussionPrefix(&$Configuration, &$Discussion) { $delimiter = $Configuration['TEXT_SUFFIX'] . $Configuration['TEXT_PREFIX']; // $delimiter = ', '; // Uncomment this line to return Vanilla to its factory default behavior $Prefix = ''; if (!$Discussion->Active && $Configuration['TEXT_HIDDEN'] != '') $Prefix = $Configuration['TEXT_HIDDEN']; if ($Discussion->Sticky && $Configuration['TEXT_STICKY'] != '' && $Prefix != '') $Prefix .= $delimiter; if ($Discussion->Sticky && $Configuration['TEXT_STICKY'] != '') $Prefix .= $Configuration['TEXT_STICKY']; if ($Discussion->Closed && $Configuration['TEXT_CLOSED'] != '' && $Prefix != '') $Prefix .= $delimiter; if ($Discussion->Closed && $Configuration['TEXT_CLOSED'] != '') $Prefix .= $Configuration['TEXT_CLOSED']; if ($Discussion->Bookmarked && $Configuration['TEXT_BOOKMARKED'] != '' && $Prefix != '') $Prefix .= $delimiter; if ($Discussion->Bookmarked && $Configuration['TEXT_BOOKMARKED'] != '') $Prefix .= $Configuration['TEXT_BOOKMARKED']; if ($Discussion->Sink && $Configuration['TEXT_SINK'] != '' && $Prefix != '') $Prefix .= $delimiter; if ($Discussion->Sink && $Configuration['TEXT_SINK'] != '') $Prefix .= $Configuration['TEXT_SINK']; if ($Discussion->WhisperUserID > 0 && $Configuration['TEXT_WHISPERED'] != '' && $Prefix != '') $Prefix .= $delimiter; if ($Discussion->WhisperUserID > 0 && $Configuration['TEXT_WHISPERED'] != '') $Prefix .= $Configuration['TEXT_WHISPERED']; if ($Prefix != '') return $Configuration['TEXT_PREFIX'].$Prefix.$Configuration['TEXT_SUFFIX'].' '; }
.DiscussionType { text-indent:-9999px; float:left; margin:0 !important; padding:0 !important; height:16px; width:16px; } /* Discussion type icons */ .Sticky .DiscussionType{ background:url(sticky.png) 0 0 no-repeat; } .Sink .DiscussionType{ background:url(sink.png) 0 0 no-repeat; } .Closed .DiscussionType{ background:url(closed.png) 0 0 no-repeat; } .Bookmarked .DiscussionType{ background:url(fav.png) 0 0 no-repeat; } .Whispered .DiscussionType{ background:url(whisper.png) 0 0 no-repeat; } .Sticky.Closed .DiscussionType{ /* This one is for when we have two statuses on a topic: sticky and closed */ background: url('sticky-closed.png') 0 0 no-repeat; } .Sticky .DiscussionType, .Sink .DiscussionType, .Closed .DiscussionType, .Bookmarked .DiscussionType, .Whispered .DiscussionType{ /* Add margins */ margin:2px 3px 0 0 !important; padding:0; }
Forget it, Wallphone's method works perfectly