bbPress

Simple, fast, elegant

bbPress Plugin Browser »

bb Topic Views (1.6.4)

Download

Version: 1.6.4

Last Updated: 2009-2-6

Requires bbPress Version: 0.8 or higher

Compatible up to: 0.9

Author Homepage »

Plugin Homepage »

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(7)

Your Rating

Authors _ck_, wittmania


  1. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    I've now taken over this plugin at wittmania's request and 1.6.0 will work properly under bbPress 1.0

    Also, the Mini-Track Plugin can now suppliment this plugin by properly counting views without using sessions (sessions causing some side effects that I don't care for).

    Posted: 1 year ago #
  2. meitershaker

    Member

    i have an error when i try to edit a first topic on a thread:


    DB Error in update_view_count: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND meta_key='views' LIMIT 1' at line 1

    UPDATE bb_meta SET meta_value=meta_value+1 WHERE object_type='bb_topic' AND object_id= AND meta_key='views' LIMIT 1

    Posted: 1 year ago #
  3. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    meitershaker, I am going to assume you mean first post on a topic.

    I also assume you are using 1.0 alpha

    if you copied that error verbatim, apparently the $topic_id is empty somehow

    I need to know when you say first post, is it a brand new topic with only one post? Or first post on a topic with other posts? Can you reproduce it repeatedly on other topics?

    Unfortunately I cannot reproduce the error here.

    Are you using pretty permalinks (slugs) or does your url have something like ?id=123 in the topic

    Posted: 1 year ago #
  4. meitershaker

    Member

    - i use 1.0 alpha with pretty permalinks
    - i have the error with the first post on a topic, with other posts or not

    Posted: 1 year ago #
  5. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    It must be the pretty permalinks, I will have to investigate.

    Posted: 1 year ago #
  6. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    Try 1.6.1 when you see it here.

    I still don't know how $topic_id can be empty in bb_head, that's well into the topic page, unless 1.0 isn't using it anymore and that would be very bad.

    However my own testing, even with permalinks on 1.0 does not reproduce the error.

    Make sure your view counts are still increasing properly with 1.6.1 too

    Posted: 1 year ago #
  7. meitershaker

    Member

    bug is fixed. but this is a bbpress's bug?

    Posted: 1 year ago #
  8. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    I am uncertain and will have to research it more.
    It might even just be a plugin conflict.

    Posted: 1 year ago #
  9. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    1.6.2 fixes an important caching bug, which will greatly reduce (or remove entirely) extra mysql queries on the front-page and forum pages. Everyone should upgrade for maximum performance.

    Posted: 1 year ago #
  10. Thanks, very nice.

    Posted: 1 year ago #
  11. m_gr@hotmail.com

    Member

    I get an error when I try to activate this plugin. I get this error "Plugin could not be activated; it produced a Fatal Error."

    I'm using bbpress version 0.9.0.2 and bb Topic Views version 1.6.2

    What's wrong?

    Posted: 1 year ago #
  12. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    m_gr, what message (if any) do you get if you try to visit the plugin directly, ie.

    http://your-website-path-example.com/forums/my-plugins/bb-topic-views.php

    Posted: 1 year ago #
  13. So I got a column for views and no longer want the views to show up next to the topic as they do in this plugin. How do I strip down the code to remove those?

    Posted: 1 year ago #
  14. Nevermind. Instructions are in the Readme, of course.

    Posted: 1 year ago #
  15. activation of the plugin fails on bbpress 0.9.0.2 (windows server)

    "Plugin could not be activated; it produced a Fatal Error"

    any ideas ?

    Posted: 1 year ago #
  16. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    Ah, line 211 has a PHP "short tag" which windows PHP sometimes doesn't like.

    Try changing it from <? to <?php

    I will fix that in the original.

    Posted: 1 year ago #
  17. Hey,

    Trying to get a seperate table for the views as described in "other notes". Yet I have no idea what this part means and how I have to about with it. Been trying to figure it out for half an hour...

    http://bbpress.org/plugins/topic/bb-topic-views/other_notes/

    2. Open front-page.php. Find (around line 21). Replace everything between this opening tag and (around line 46) with the following:

    — > "> > ">

    1. Open forum.php and make the same changes.
    2. Open tag-single.php. Find the opening and closing tags (around line 11 and line 27) and replace everything between them with the following:

    — > ">

    What does this mean?? "> > ">??? Do I just remove all the code between those lines mentioned and replace them with "> > ">?? Doesn't make any sense to me.

    Other then that, thanks for the plugin! :)

    Posted: 1 year ago #
  18. Ok seems like that page is just not complete. The readme was very clear though. Thanks! Great plugin as usual.

    Posted: 1 year ago #
  19. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    The formatting on bbpress.org is completely hosed.
    Read the original ReadMe.txt in the zip file to see it properly.
    I didn't write this plugin originally or the notes, they are from the original author.

    Posted: 1 year ago #
  20. Hi

    I tested this plugin again and I can't make it work with 1.06a. It always shows the same number of views.

    I checked bb database and it seems to create a 'views' field for each topic in bb meta table, but the count doesn't change.

    Apart form this, perhaps it should be better to create a whole table for this plugin so you can easily delete records and don't mess bb_meta too much. I don't know if it would be possible.

    Posted: 1 year ago #

RSS feed for this topic

Add a Comment »

You must log in to post.

Code is Poetry.