Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Is there a hack to make read topics not appear in bold text?
Avatar
Duke Leto III
Member
Free Members
sp_UserOfflineSmall Offline
Jul 20, 2012 - 12:07 pm

Topic says it all. I believe it would help forum readability. 

 

Cheers!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 20, 2012 - 2:39 pm

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!

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626