#201 closed defect (bug) (fixed)
How to display topic author instead of last poster?
Reported by: | Owned by: | matt | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 0.1 |
Component: | Front-end | Keywords: | function bg|has-patch |
Cc: |
Description
is there anywhere we can find all functions bbpress support? I try to go through the code but can not find this function: topic_author().
basicly what I want is at the front page display the original topic author instead of the last poster(currently topic_last_poster()), could somebody give me some hints?
thanks, Franky
Change History (5)
#2
@
19 years ago
thanks, tompreuss ,
so I guess I have to wrote one myself. in the future version, it is cool to add this topic_author() function.
Franky
#3
@
19 years ago
- Resolution set to fixed
- Status changed from new to closed
I added one funciton at template-functions.php,
function topic_first_poster() {
global $topic;
echo bb_apply_filters('topic_first_poster', $topic->topic_poster_name);
}
and it works. I really like bbpress coding style. Great work, and keep going.
From what I can tell, function
bb_new_topic
(found in functions.php) inserts the information you are looking for into the topic_poster_name field for each topic in the bb_topics table:There is no
topic_author()
function that I could find.