Support Forum

Is there a hack to make read topics not appear in bold text?

1 Answer

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

The template function to display the topic name (in forum view) is sp_TopicIndexName() and like all template functions one of the optional arguments is ‘tagClass’. This defaults to the class .spRowName which you will find in the theme CSS file.

So… you could put an if statement in there to test whether the current topic has any unread posts – which would need to test the $spThisTopic->unread property. If true then you could set tagClass to spRowName and if false you could set tagClass to an alternative class in which the font is not bold.

Well – Ok  – I have not actually tried this but it should work!