#1763 closed enhancement (fixed)
Additional reply classes
Reported by: | jaredatch | Owned by: | jaredatch |
---|---|---|---|
Milestone: | 2.1 | Priority: | normal |
Severity: | normal | Version: | 2.0 |
Component: | Front-end | Keywords: | |
Cc: |
Description
Right now the default div for a reply looks like:
<div id="post-8" class="post-8 reply type-reply status-publish hentry even bbp-parent-forum-5 bbp-parent-topic-7">
It would be pretty nifty if we could add a few classes if the conditionals are met. Off the top of my head:
- 'topic-author', could be used to highly responses from the topic's original author
- 'forum-admin' / 'forum-moderator' - style admin/moderator replies to stand out
- 'user-%username%' - could be used to style/highly specific users
There might be some other good ones, this is what I came up with on first pass.
Attachments (1)
Change History (7)
#1
@
13 years ago
- Keywords needs-patch added; 2nd-opinion removed
- Milestone changed from Awaiting Review to Future Release
- Owner set to jaredatch
Note: See
TracTickets for help on using
tickets.
Patch attached, tacks on the following to reply classes:
user-%username% - currently using str_replace to remove spaces in favor for hyphens, this doesn't seem smart. Maybe just use user ID, eg user-1? Either way they can target specific users with it via CSS.
topic-author - if reply author is the same as original topic author
forum-admin or forum-moderator - think that says it all. Right now it's in an if-statement that looks out of place in the function, but I wasn't sure where else to put it.
See what you think :)