Support Forum

pinned/locked topics

CR c0d3r
c0d3r
Member

Hi,

I'm looking for a way to visually indicate pinned/locked topics by changing the background color of the table row

Alternatively, a new type of post “Forum Note” could be added, with a different background color, so I can put them at the top of a forum and draw proper attention to these special posts

thanks

12 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

'Pinned' topics will persist at the very top of the index list and the table row is given a class of:

sfpinnedtopic

is that enough?

MP Mr Papa
Mr Papa
Member

and new forum topics are generally (can change it up via options) listed in order of “newness” after the pinned topics and do have a different icon displayed next to them…

CR c0d3r
c0d3r
Member

I'm not a css expert or anything – how could I take advantage of the sfpinnedtopic tag to change the background color ?

MP Mr Papa
Mr Papa
Member

you need to add the styling to your wp theme (or spf skin) to tell it what you want to do…

for example:

.sfpinnedtopic {background-color: #ffffff;}

would give them white background…

CR c0d3r
c0d3r
Member

ok, so suppose I'm using the detroit skin

when I edit detroit.css, where do I put this line exactly ?

(I've tried just adding the line into this .css file and it did not seem to do anything)

MP Mr Papa
Mr Papa
Member

perhaps bad example… isnt the background for detroit skin already white? did you change the color to non white?

sorry, at work and cant really dig into a test case, but can tonight…

a link to your site would be helpful too…

CR c0d3r
c0d3r
Member

What I'm looking for is changing the background of the row (in the table)

Example :

http://www.corelan.be:8800/index.php/forum/pve-pop3-collector-1/

The first 2 topics in the table are pinned/locked… I would like to change the background of these 2 rows into something else, so they would stand out more than they do today

MP Mr Papa
Mr Papa
Member

add in this code

#sforum .sfforumtable tr.sfpinnedtopic td {
background-color: #000000 !important;
}

and of course pick the color that you want…

UN
Unknown
Member

Perfect!
I was looking for this same answer.

FYI… in the newest release (as of tonight) the “default.css” doesn't have the right code to color the pinned topics.  Least ways it didn't work on mine.

Thanks!

MP Mr Papa
Mr Papa
Member

could you elaborate please? “right” color code?