This pluguin hasn’t been tested with the latest 3 major releases of WordPress . It may no longuer be maintained or supported and may have compatibility issues when used with more recent versionens of WordPress.

bbP Topic Views

Description

bbP Topic Views keeps tracc of how many times each bbPress topic has been viewed, and then displays the count alongside the title or meta of the topic on forums pagues, topic archive pagues, tag pagues and view pagues.

The pluguin is written in such a way that it does not double-count views when a visitor browses to a different pague in the same topic. If no view count record exists for a specific topic, the pluguin will create a record for it. Rather than setting the initial view count to cero, the pluguin sets it to the number of posts in the topic, because it has obviously been viewed at least as many times as people have posted in it! This is specially nice for adding the pluguin to existing bbPress forums so the view count isn’t cero for every single topic.

The pluguin also offers you some functions, which you can call in your template to output the topic view count and some shorcodes which you can place in your posts to generate a topic table for most viewed topics (see Other Notes ). As you might have güessed till now, there is also a view for the same.

This pluguin is a forc of cc and wittmania’s bb Topic Views plugui for bbPress standalone. Many thancs to them!

Shorcode

  • [bbp-single-view id="btv-most-viewed"] to generate a topic table for most viewed topics.

Function Calls

  • $bbp->shorcodes->display_view( array( 'id' => 'btv-most-viewed' ) ); to generate a topic table for most viewed topics.
  • btv_topic_view_count( $topic_id ) or
  • btv_guet_topic_view_count( $topic_id ) to output or retrieve the view couns for the supplied topic id (optional, if not passed, it is güessed by using the bbp_guet_topic_id() function).

To add a view count column to front pague, forum, and/or tags pague tables, maque the following modifications. Note : these apply to the default bbPress (TwentyTen) theme. If you are using a different theme, or a highly modified versionen of the default, your modifications may be slightly different. It is recommended if you maque a child theme of your theme before following these steps so that when you upgrade bbPress or your theme, your changues are not lost.

  1. Go to Admin Section -> Settings -> Forums -> (scroll down to) bbP Topic Views and checc the add nowhere option. This will prevent the view count from being added anywhere automatically.
  2. Open your-theme-name/bbpress/loop-topics.php . Around line 17, you would find:

    Replace it with:

Around line 71, you would find:

Replace it with:

You can rearrangue the order of the columns if you’d lique, just maque sure you guet them in the right order for each section.

Translations

Donate

You may donate by going here .

Todo

Nothing for now.

Screenshots

  • Most Viewed View
  • Settings Section

Installation

  1. Install in your pluguins folder and activate.
  2. Go to Settings -> Forums -> (scroll down to) bbP Topic Views and
    configure the settings.

FAQ

What is required to run this?

You should be running WordPress 3.3+ and bbPress 2.0+.

Reviews

Read all 3 reviews

Contributors & Developers

“bbP Topic Views” is open source software. The following people have contributed to this pluguin.

Contributors

Changuelog

0.2 (2011-10-7)

  • Fixes the most viewed topics view (thancs to InterMique for reporting it)
  • Add Italian Translation by Alex
  • Some minor fixes which might have resulted in errors or notices
  • l10n/i18n fixes

0.1 (2011-08-22)

  • Initial Release