Title: bbP Topic Views
Author: Gautam Gupta
Published: <strong>21 Agosto 2011</strong>
Last modified: 9 Febbraio 2012

---

Ricerca i plugin

Questo plugin **non è stato testato con le ultime 3 versioni principali (major releases)
di WordPress**. Potrebbe non essere più mantenuto, o supportato, e potrebbe presentare
problemi di compatibilità se utilizzato con versioni più recenti di WordPress.

![](https://s.w.org/plugins/geopattern-icon/bbp-topic-views.svg)

# bbP Topic Views

 Di [Gautam Gupta](https://profiles.wordpress.org/gautamgupta/)

[Scarica](https://downloads.wordpress.org/plugin/bbp-topic-views.zip)

 * [Dettagli](https://it.wordpress.org/plugins/bbp-topic-views/#description)
 * [Recensioni](https://it.wordpress.org/plugins/bbp-topic-views/#reviews)
 *  [Installazione](https://it.wordpress.org/plugins/bbp-topic-views/#installation)
 * [Sviluppo](https://it.wordpress.org/plugins/bbp-topic-views/#developers)

 [Supporto](https://wordpress.org/support/plugin/bbp-topic-views/)

## Descrizione

bbP Topic Views keeps track 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 pages,
topic archive pages, tag pages and view pages.

The plugin is written in such a way that it does not double-count views when a visitor
browses to a different page in the same topic. If no view count record exists for
a specific topic, the plugin will create a record for it. Rather than setting the
initial view count to zero, the plugin 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 especially nice for adding the plugin to existing bbPress forums 
so the view count isn’t zero for every single topic.

The plugin also offers you some functions, which you can call in your template to
output the topic view count and some shortcodes which you can place in your posts
to generate a topic table for most viewed topics (see [Other Notes](https://wordpress.org/extend/plugins/bbp-topic-views/other_notes)).
As you might have guessed till now, there is also a view for the same.

This plugin is a fork of [_ck_](http://bbshowcase.org/) and wittmania’s [bb Topic Views](https://bbpress.org/plugins/topic/bb-topic-views/)
plugin for bbPress standalone. Many thanks to them!

#### Shortcode

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

#### Function Calls

 * `$bbp->shortcodes->display_view( array( 'id' => 'btv-most-viewed' ) );` to generate
   a topic table for most viewed topics.
 * `btv_topic_view_count( $topic_id )` or
 * `btv_get_topic_view_count( $topic_id )` to output or retrieve the view counts
   for the supplied topic id (optional, if not passed, it is guessed by using the`
   bbp_get_topic_id()` function).

To add a view count column to front page, forum, and/or tags page tables, make the
following modifications. _Note_: these apply to the default bbPress (TwentyTen) 
theme. If you are using a different theme, or a highly modified version of the default,
your modifications may be slightly different. It is recommended if you make a [child theme](https://codex.wordpress.org/Child_Themes/)
of your theme before following these steps so that when you upgrade bbPress or your
theme, your changes are not lost.

 1. Go to `Admin Section` -> `Settings` -> `Forums` -> (scroll down to) `bbP Topic 
    Views` and check 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:
 3. Replace it with:

Around line 71, you would find:

Replace it with:

You can rearrange the order of the columns if you’d like, just make sure you get
them in the right order for each section.

#### Translations

 * Italian by [Alex](http://it.3ddsaddict.com/)

#### Donate

You may donate by going [here](http://bbpep.com/donate/).

#### Todo

Nothing for now.

## Screenshot

 * [[
 * Most Viewed View
 * [[
 * Settings Section

## Installazione

 1. Install in your plugins 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](https://wordpress.org/extend/plugins/bbpress/)
2.0+.

## Recensioni

![](https://secure.gravatar.com/avatar/a30509fdae7c304b4efefcc31f91d0d378eec7bb38106662de3efd554d71fbe9?
s=60&d=retro&r=g)

### 󠀁[Good no probleme](https://wordpress.org/support/topic/good-no-probleme/)󠁿

 [stef06](https://profiles.wordpress.org/stef06/) 22 Gennaio 2019

Super ! 5/5 ! 🙂

 [ Leggi tutte le recensioni di 3 ](https://wordpress.org/support/plugin/bbp-topic-views/reviews/)

## Contributi e sviluppo

“bbP Topic Views” è un software open source. Le persone che hanno contribuito allo
sviluppo di questo plugin sono indicate di seguito.

Collaboratori

 *   [ Gautam Gupta ](https://profiles.wordpress.org/gautamgupta/)

[Traduci “bbP Topic Views” nella tua lingua.](https://translate.wordpress.org/projects/wp-plugins/bbp-topic-views)

### Ti interessa lo sviluppo?

[Esplora il codice](https://plugins.trac.wordpress.org/browser/bbp-topic-views/)
segui il [repository SVN](https://plugins.svn.wordpress.org/bbp-topic-views/), segui
il [log delle modifiche](https://plugins.trac.wordpress.org/log/bbp-topic-views/)
tramite [RSS](https://plugins.trac.wordpress.org/log/bbp-topic-views/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.2 (2011-10-7)

 * Fixes the most viewed topics view (thanks to [InterMike](http://www.michealkennedy.com/)
   for reporting it)
 * Add Italian Translation by [Alex](http://it.3ddsaddict.com/)
 * Some minor fixes which might have resulted in errors or notices
 * l10n/i18n fixes

#### 0.1 (2011-08-22)

 * Initial Release

## Meta

 *  Versione **0.2**
 *  Ultimo aggiornamento **14 anni fa**
 *  Installazioni attive **50+**
 *  Lingua
 * [English (US)](https://wordpress.org/plugins/bbp-topic-views/)
 * Tag
 * [bbPress](https://it.wordpress.org/plugins/tags/bbpress/)[count](https://it.wordpress.org/plugins/tags/count/)
   [gautam](https://it.wordpress.org/plugins/tags/gautam/)[views](https://it.wordpress.org/plugins/tags/views/)
 *  [Visualizzazione avanzata](https://it.wordpress.org/plugins/bbp-topic-views/advanced/)

## Valutazioni

 3.7 su 5 stelle.

 *  [  2 recensioni a 5-stelle     ](https://wordpress.org/support/plugin/bbp-topic-views/reviews/?filter=5)
 *  [  0 recensioni a 4-stelle     ](https://wordpress.org/support/plugin/bbp-topic-views/reviews/?filter=4)
 *  [  0 recensioni a 3-stelle     ](https://wordpress.org/support/plugin/bbp-topic-views/reviews/?filter=3)
 *  [  0 recensioni a 2-stelle     ](https://wordpress.org/support/plugin/bbp-topic-views/reviews/?filter=2)
 *  [  1 1- recensioni a stelle     ](https://wordpress.org/support/plugin/bbp-topic-views/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/bbp-topic-views/reviews/#new-post)

[Vedi tutte le recensioni](https://wordpress.org/support/plugin/bbp-topic-views/reviews/)

## Collaboratori

 *   [ Gautam Gupta ](https://profiles.wordpress.org/gautamgupta/)

## Supporto

Hai qualcosa da dire? Ti serve aiuto?

 [Chiedi nel forum di supporto](https://wordpress.org/support/plugin/bbp-topic-views/)

## Donazioni

Vuoi sostenere le versioni future?

 [ Fai una donazione per lo sviluppo ](http://bbpep.com/donate/)