Search

bbPress Showcase » plugin Plugins by Others

bb-topic-views plugin by wittmania

RSS

Tags:


  1. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 330

    offline

    I recommend and support this plugin:

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

    http://bbpress.org/forums/topic/plugin-bb-topic-views

    My own "My Views" takes advantage of the data it creates.

    Posted 1 year ago #
  2. mazdakam
    mazdakam

    new member
    Joined: Aug '07
    Posts: 3

    offline

    i got this error:

    in
    # Topics with the most views
    # Topics with the least views

    other things is good

    bbPress database error: [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 'WHERE topic_status = 0 AND topic_sticky = 0 ORDER BY FIELD(topic_id, 11,47,16,2' at line 1]
    SELECT * FROM bb_topics WHERE topic_status=0 AND topic_id IN (11,47,16,24,74,68,57,43,46,45,31,13,103,56,52,17,33,34,22,23,10,66,20,32,21,30,5,82,65,80) WHERE topic_status = 0 AND topic_sticky = 0 ORDER BY FIELD(topic_id, 11,47,16,24,74,68,57,43,46,45,31,13,103,56,52,17,33,34,22,23,10,66,20,32,21,30,5,82,65,80)
    WordPress

    also i didnt underestand where should i put <? echo $forum->views; ?>;
    in
    "front-page.php" and "forum.php"

    i put it to
    <tr>
    <th><?php _e('Topic'); ?> — <?php new_topic(); ?></th>
    <th><?php _e('Posts'); ?></th>
    <th><?php _e('Last Poster'); ?></th>
    <th><?php _e('Freshness'); ?></th>
    <th><? echo $forum->views; ?>;</th>
    </tr>

    but nothing happend!!

    Posted 1 year ago #
  3. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 330

    offline

    Ooh, I am not sure what is causing that error.
    I will have to study it and think carefully. Is that mysql 4 or 5 ?

    As far as the views, you are putting it in the table header which is wrong. You are also putting it in the wrong section:
    Ooh, I am not sure what is causing that error.
    I will have to study it and think carefully.

    As far as the views, you are putting it in the table header which is wrong. You are also putting it in the wrong section:

    <table id="forumlist">

    <tr>
    <th><?php _e('Main Theme'); ?></th>
    <th><?php _e('Topics'); ?></th>
    <th><?php _e('Posts'); ?></th>
    <th><?php _e('Views'); ?></th>
    </tr>
    <?php while ( bb_forum() ) : ?>
    <tr<?php bb_forum_class(); ?>>
    <td><?php bb_forum_pad( '<div class="nest">' ); ?>"><?php forum_name(); ?><small><?php forum_description(); ?></small><?php bb_forum_pad( '</div>' ); ?></td>
    <td class="num"><?php forum_topics(); ?></td>
    <td class="num"><?php forum_posts(); ?></td>
    <td class="num"><? echo $forum->views; ?></td>
    </tr>

    This is a demo of the bbPress Signatures plugin!
    If you use my plugins, please considering donating to help continue their development.
    Posted 1 year ago #
  4. mazdakam
    mazdakam

    new member
    Joined: Aug '07
    Posts: 3

    offline

    hi
    i upgrade my bbpress with the latest in svn
    and error was fixed

    i also put the <td class="num"><? echo $forum->views; ?></td>
    in the right place and views appear but...

    1) it shows worng number in latest discussion column: http://forum.wp-persian.com/
    2) and it wont show number of views when you are in sub forum: http://forum.wp-persian.com/forum/4

    here is files please take a look at them....
    http://wp-persian.com/forum/bb-templates/kakumei/_CCK_View.zip

    Posted 1 year ago #
  5. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 330

    offline

    Ah sorry, I keep forgetting to check here.

    To solve the problem on the sub-forums do this instead:
    <td class=num><?php echo $GLOBALS['forum']->views; ?></td>

    Posted 1 year ago #
  6. Null
    Null

    member
    Joined: May '08
    Posts: 10

    offline

    Hi,

    I need a small modification of this plugin. I have a image in every topic called clickme.jpg. Now I want the topic view only count when this image is clicked. So not when the topic link is clicked (and the topic is opened), but when the image in the topic is clicked. How to proceed?

    Many thx

    Posted 6 months ago #
  7. wittmania
    User has not uploaded an avatar

    new member
    Joined: Aug '08
    Posts: 1

    offline

    Hey, _ck_. I noticed that you've been supporting this plugin quite handily since I last checked the BBPress extend site. I developed this plugin specifically for a project that I was working on, whose life cycle is now over. So, if you're willing to "adopt" this plugin, go right ahead.

    Do you know if there's something I can do on the bbP Extend site to list you as the keeper of this plugin?

    Thanks,
    mike at wittmania dot com

    Posted 3 months ago #
  8. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 330

    offline

    Hi, good to hear from you wittmania, thanks for registering.

    To add me you just have to contact Michael (MDAWaffe) and ask him - he's often on the bbPress IRC channel if you know how to use that. If you see Sambauers you can probably just tell him too.

    Or I guess you can list me as a contributor on the plugin authors list and re-upload that, and once he see's that I can just tell him to give me access permission.

    I had a thought last night I could replace the function of your plugin via my new Mini-Track plugin since I can then track what topics a user visits without using sessions which have some issues, like clearing forms when you hit the back button to try again if there was an error. I can also tell the difference between bots and humans so I can give an option to only increment the view count if it's a human.

    But I can still get your plugin up to speed for 1.0

    Posted 3 months ago #

RSS feed for this topic

Post a reply to “bb-topic-views plugin by wittmania”

You must log in to post.

keep _ck_ coding >> donate $1 <<     Theme Switcher:
10 users online from  US  DE  NL  HK in the past 30 minutes. 4 bots 6 guests
291 views today 2798 yesterday 3411 ever. Most at once 19 today 24 yesterday 19 ever. Visited today: _ck_
724 posts in 106 topics over 19 months by 146 of 676 members. Latest: nicoosuna, Wish, insightdesigns