bbPress

Simple, fast, elegant

bbPress Plugin Browser »

My Views (0.1.4)

Download

Version: 0.1.4

Last Updated: 2009-8-15

Requires bbPress Version: 0.8.2 or higher

Compatible up to: 0.9

Author Homepage »

Plugin Homepage »

Donate to this plugin »

Average Rating

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

Your Rating

Author: _ck_


  1. bramruiter

    Member

    I've found a bug:

    I use the Private Forums plugin and when a normal user checks out the statistics, he can see the hidden topics in both the "Top Topics (per post)" and "Top Topics (per views)". Not that they can enter the private areas of the forum, but they can see the titles.

    Posted: 1 year ago #
  2. csseur3

    Member

    I have installed the plugin, and put this code: <td class="num"><?php echo $forum->views; ?></td> in front-page.php, in the listing of forums categories. But i have a blanck espace :/ why?

    bye,
    Fred

    Posted: 1 year ago #
  3. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    csseur3, $forum->views also needs this plugin installed:
    http://bbpress.org/plugins/topic/bb-topic-views

    Posted: 1 year ago #
  4. I was just wondering _ck_ if it was possible to add unread posts to the list of views.

    I tried downloading someone else's plugin with no success and the other ones I see on this site just put icons next to the posts on the front page rather than having them as a separate view.

    Hopefully you get the jist of what I am blabbing on about?

    Posted: 1 year ago #
  5. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    That's a very good idea Brad.
    I'll work on that and should have something shortly.
    You'll need my "Unread Posts" plugin for the view to work.

    update: Try 0.1.2 for "Topics with new posts"
    requires the "Unread Posts" plugin

    Shows topics with new posts from topics you have either read, or since your last login, or since 48 hours ago if there's nothing actually new.

    Posted: 1 year ago #
  6. Great!

    But I still don't see an option for unread posts.

    I have upgraded the plugin and installed the "Unread Posts" plugin but I cant see a module for it in the list of files.

    Am I missing something?

    Posted: 1 year ago #
  7. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    If you uploaded it to /my-plugin/ you definitely should see it in the bbPress plugin activation list. Maybe search for the word "unread" on the page. Are you using 0.9 or 1.0? I haven't tested it on 1.0 yet.

    Posted: 1 year ago #
  8. This is kind of interesting:

    If I activate the forum-statistics module, I get this grey line that appears.

    Am I missing something in my css or is this a bug?

    Posted: 1 year ago #
  9. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    That may be a variety of errors, including a PHP error. The statistics module does not work properly with bbPress 1.0 yet.

    I need more info about your bbpress setup and server.

    Posted: 1 year ago #
  10. running bbpress 1.0 alpha

    the grey bar only appears if I go over 8 items

    my bbpress: http://www.liricistas-asura.com/bbpress

    Posted: 1 year ago #
  11. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    Sorry, it won't work yet with the alpha.

    It makes queries on tables that either don't exist anymore or don't have the data it's requires to make the results - hence the garbled output.

    I'll look into fixing it soon for 1.0
    Some of the queries are a bit lazy too so it's a good chance to improve them.

    Posted: 1 year ago #
  12. Ok cool, look forward to it ^.^

    A lot of the actual plugin works with 1.0, just seem to be some weird quirks

    Posted: 1 year ago #
  13. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    Okay try replacing this updated statistics:
    http://plugins-svn.bbpress.org/my-views/trunk/my-views-statistics.php

    I'd say about 9 out of 10 plugins work, unless they directly access topicmeta or tags due to major changes.

    Posted: 1 year ago #
  14. I am using bbpress 0.9.0.2.

    When I download the plugin the only php files I had were myviews.php, statistics.php, most least views.php, most least posts.php and participated/started topics.

    Cant see anything for unread posts in the plugin list either.

    Is it incorporated in one of the other modules?

    Posted: 1 year ago #
  15. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    Unread Posts is a separate plugin
    http://bbpress.org/plugins/topic/unread-posts

    Posted: 1 year ago #
  16. I'm beginning to think I have a more fundamental bbpress issue than any one particular plug-in. But, here's what my front page looks like right now:

    http://img246.imageshack.us/img246/909/1701scrnshtul4.png

    I have the following plug-ins activated: My Views, My Views module - most/least views, and bb-topic-views.

    Here's what my front-page.php looks like:

    <?php bb_get_header(); ?>
    
    <?php if ( $forums ) : ?>
    
    <?php if ( bb_forums() ) : ?>
    <table id="forumlist">
    
    <tr>
    	<th><h2 style="border:0;margin:0;padding:0;float:left;text-align:left;"><?php bb_option('name'); ?> <?php _e('Forums'); ?></h2></th>
    	<th><?php _e('Topics'); ?></th>
    	<th><?php _e('Views'); ?></th>
    	<th><?php _e('Posts'); ?></th>
    </tr>
    <?php while ( bb_forum() ) : ?>
    <tr<?php bb_forum_class(); ?>>
    	<td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><small><?php forum_description(); ?></small><?php bb_forum_pad( '</div>' ); ?></td>
    	<td class="num"><?php forum_topics(); ?></td>
    	<td class=num><? echo $forum->views; ?></td>
    	<td class="num"><?php forum_posts(); ?></td>
    </tr>
    <?php endwhile; ?>
    </table>
    <?php endif; // bb_forums() ?>
    
    <div id="discussions">
    <?php if ( $topics || $super_stickies ) : ?>
    
    <table id="latest">
    <tr>
    	<th><h2 style="border:0;margin:0;padding:0;float:left;text-align:left;"><?php _e('Latest Discussions'); ?> — <?php new_topic(); ?></h2></th>
    	<th><?php _e('Views'); ?></th>
    	<th><?php _e('Posts'); ?></th>
    	<th><?php _e('Last Poster'); ?></th>
    	<th><?php _e('Freshness'); ?></th>
    </tr>
    
    <?php if ( $super_stickies ) : foreach ( $super_stickies as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    	<td><?php _e('Sticky:'); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big></td>
    	<td class="num"><?php echo $topic->views; ?></td>
    	<td class="num"><?php topic_posts(); ?></td>
    	<td class="num"><?php topic_last_poster(); ?></td>
    	<td class="num"><small><span class=timetitle title="<?php echo date("r",strtotime($topic->topic_time)); ?>"><?php topic_time(); ?></span></small></td>
    </tr>
    <?php endforeach; endif; // $super_stickies ?>
    
    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    	<td><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td>
    	<td class="num"><?php echo $topic->views; ?></td>
    	<td class="num"><?php topic_posts(); ?></td>
    	<td class="num"><?php topic_last_poster(); ?></td>
    	<td class="num"><small><span class=timetitle title="<?php echo date("r",strtotime($topic->topic_time)); ?>"><?php topic_time(); ?></span></small></td>
    </tr>
    <?php endforeach; endif; // $topics ?>
    </table>
    <?php endif; // $topics or $super_stickies ?>
    
    <table id="frontpagemeta">
    <tr>
    <th><h2><?php _e('Views'); ?></h2></th>
    <th><h2><?php _e('Hot Tags'); ?></h2></th>
    </tr>
    <tr>
    <td id="viewdiv">
    <ul id="views">
    <?php foreach ( get_views() as $view => $title ) : ?>
    <li class="view"><a href="<?php view_link(); ?>"><?php view_name(); ?></a></li>
    <?php endforeach; ?>
    </ul>
    </div>
    </td>
    <td class="frontpageheatmap">
    <?php tag_heat_map(); ?>
    </td>
    </tr>
    </table>
    
    </div>
    
    <?php else : // $forums ?>
    
    <h3 class="bbcrumb"><a href="<?php bb_option('uri'); ?>"><?php bb_option('name'); ?></a></h3>
    
    <?php post_form(); endif; // $forums ?>
    
    <?php bb_get_footer(); ?>
    Posted: 1 year ago #
  17. Oops, my issue is that I cannot get views to be listed under the views column for forums.

    Posted: 1 year ago #
  18. I do have the Unread Posts plugin installed but am unsure about how to add the unread posts to my list of views thats all.

    Posted: 1 year ago #
  19. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    mawazi, did I release the theme like that?
    if so, I made a mistake, as $forum is not a global so it won't work - you'll have to make a simple edit:

    change this line:
    <?php while ( bb_forum() ) : ?>
    to
    <?php global $forum; while ( bb_forum() ) : ?>

    and the view counts should magically appear.

    Posted: 1 year ago #
  20. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    brad, the view should automatically appear when a user is logged in as "Topics with new posts".

    If it does not, I may have done something wrong.
    It does work on my forum however.
    I'll test it on another.

    update: it's working fine elsewhere too.
    1. install unread posts plugin and activate
    2. install my views and activate
    3. install updated my-views-started-participated-topics.php and activate
    4. login & check list of views for "Topics with new posts"

    Posted: 1 year ago #

RSS feed for this topic

Add a Comment »

You must log in to post.

Code is Poetry.