Title: pg_Activity_Widget and pg_Forums_Widget
Last modified: February 8, 2017

---

# pg_Activity_Widget and pg_Forums_Widget

 *  Resolved [Jesper Bay Eriksen](https://wordpress.org/support/users/bayeriksen/)
 * (@bayeriksen)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/pg_activity_widget/)
 * In the class pg_Activity_Widget there is a problem in the function widget
 * If `empty( $allowed_posts )` is true in line 888 it’s execute a return in line
   892,
    then you are missing the `echo $args['after_widget'];`
 * Another thing:
    It would be nice if pg_Forums_Widget and pg_Activity_Widget works
   equally. In the pg_Activity_Widget class the `if ( empty( $allowed_posts )) {`
   is called after `echo $args['before_widget'];`
 * In the class pg_Forums_Widget `if ( empty( $allowed_posts )) {` is called before`
   echo $args['before_widget'];`
 * That means in pg_Forums_Widget there is no widget title set and in pg_Activity_Widget
   the widget title is set. I prepare to see the title, also in the case there is
   no items.
    -  This topic was modified 9 years, 4 months ago by [Jesper Bay Eriksen](https://wordpress.org/support/users/bayeriksen/).
    -  This topic was modified 9 years, 4 months ago by [Jesper Bay Eriksen](https://wordpress.org/support/users/bayeriksen/).

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Robin W](https://wordpress.org/support/users/robin-w/)
 * (@robin-w)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/pg_activity_widget/#post-8777214)
 * thanks, and always pleased to received improvement suggestions to my code.
 * Let me take a look, and I’ll come back.
 *  Plugin Author [Robin W](https://wordpress.org/support/users/robin-w/)
 * (@robin-w)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/pg_activity_widget/#post-8780031)
 * I’ve taken a look and altered both to make them consistent.
 * It will be in the next release, which I expect to do in the next couple of days
 *  Plugin Author [Robin W](https://wordpress.org/support/users/robin-w/)
 * (@robin-w)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/pg_activity_widget/#post-8786840)
 * version 3.3.5 just released should correct this
 *  Thread Starter [Jesper Bay Eriksen](https://wordpress.org/support/users/bayeriksen/)
 * (@bayeriksen)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/pg_activity_widget/#post-8786890)
 * Nice work, my problems is solved.
 * I don’t use pg_Topics_Widget and pg_Replies_Widget, but i think you should add`
   echo $args['after_widget'];` to `if ( empty( $allowed_posts ))`
 *  Plugin Author [Robin W](https://wordpress.org/support/users/robin-w/)
 * (@robin-w)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/pg_activity_widget/#post-8786962)
 * thanks

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘pg_Activity_Widget and pg_Forums_Widget’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bbp-private-groups.svg)
 * [Private groups](https://wordpress.org/plugins/bbp-private-groups/)
 * [Support Threads](https://wordpress.org/support/plugin/bbp-private-groups/)
 * [Active Topics](https://wordpress.org/support/plugin/bbp-private-groups/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bbp-private-groups/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bbp-private-groups/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Robin W](https://wordpress.org/support/users/robin-w/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/pg_activity_widget/#post-8786962)
 * Status: resolved