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. bb-gian

    Member

    Ok, I tried to create a plugin with the above code, since you called the code PLUGIN.
    I activate it.
    Nothing new. Can't display views in the views colum.

    And really, how can I deactivate the views dispaying aongside the Topic title. That is so weird as a place to dispaly the views. And how come that on any other forum using this functionality they got it right as I wanted: views in views colum and NO values ALONGSIDE the Topic title, even if from what I read in the plugin information is default behaviour?

    Am I missing something, or the plugion lacks proper and simple instructions?

    Posted: 8 months ago #
  2. bb-gian

    Member


    Posted: 8 months ago #
  3. bb-gian

    Member

    Ok, my bad. I didn't read the Other Notes info.

    I got to deactivate the alongside function.

    BUT: stil can't get the numbers to work properly in the column.

    I can't get this:

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

    Sorry, but it doesn't make any sense to me.

    1) Find (around line 21).
    Find what?

    2) The following: — > "> > ">

    Never saw something like this.

    Logically you should just put the function in a tab cell between <td></td> and it should work.

    Like this: <td><?php showviewcount() ?></td>

    But I got an error if I do that.

    Any help is appreciated.

    Posted: 8 months ago #
  4. bb-gian

    Member

    Ok, finally got it to work.

    (Feels like I'm talking to myself here, but well…).

    I can't believe I spent 2 hours or more to get the plugin to work. How can you put "showviewcount ()" as code, in the Other Notes page, when actually is:
    show_view_count()

    I mean, how should you figure out that you need to put underscores?
    the documentation should read:

    Insert this code <?php show_view_count(); ?> where you want the view count to appear. (Only in the Loop).

    If for example you want it in a column, add this to your table: <td class="num"><?php show_view_count(); ?></td>.

    And this, as table heading: <th><?php _e('Views'); ?></th>.

    Wouldn't it be easier to understand?

    Posted: 8 months ago #
  5. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    You should always read the readme.txt file directly.
    The plugin viewer here always messes text up, just like wordpress.org does.

    Posted: 8 months ago #
  6. bb-gian

    Member

    Oh..., ok, didn't know.

    From now on I'll read the .txt file.

    But it's so absurd that the text for the info on the oficial plugin site is screwed up and not fixed. A text on a web page should display correctly. We build complex applications, have discussions about coding miracles and all on this (and other) forums, and than we can't make a simple basic text display properly on a web page… I 'm always so fascinated by this kind of contradiction.

    Anyway, thanks for the reply, _ck_. Onward…

    (My forum is getting better and better now, and when it's the way I wanted it to be, it'll be a great example to showcase a bbPress powered forum.)

    Posted: 8 months ago #

RSS feed for this topic

Add a Comment

You must log in to post.

Code is Poetry.