Skip to:
Content
Pages
Categories
Search
Top
Bottom

Activity Widget?


  • chrisHe
    Participant

    @chrishe

    Hi, I am using bbPress as part of a wordpress site. I would like to show “recent activity” in a sidebar widget without using too much screen space. In other words a combination of the “recent topics” and “recent replies” widgets, e.g. as below (1 topic, 1 reply, but able to set number would be good also)
    “Recent Forum Activity”
    Latest Topic…
    Latest Reply…

    Is that possible with shortcodes? else maybe a way to combine the output of the two current widgets?
    Thanks

Viewing 1 replies (of 1 total)

  • chrisHe
    Participant

    @chrishe

    P.S. It is possible to achive the output I want by hacking the common/widgets.php file, (not that I am suggesting this is good, as will be overwritten on upgrades!)
    in widgets.php, changing the Topics widget query on lines 743 and 764 as below does what I want! Maybe not too hard for author to add customise this properly?
    HACK:

    			// Order by most recent replies
    			case 'freshness' :
    				$topics_query = array(
    					'post_type'      => array(bbp_get_topic_post_type(),bbp_get_reply_post_type() ), //HACKED!
    					// 'post_type'      => bbp_get_topic_post_type(),
    
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.