Jump to content

[JIMMO] Top Posters Plus

You are viewing a curated collection of the most significant posts in this topic.

Featured Replies

  • Replies 120
  • Views 14k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • The Jimmo
    The Jimmo

    No update is required for 4.3.

  • Devin Powers
    Devin Powers

    Hi - This error popped up again @The Jimmo I took a look at the source code (widgets/jimmoTopPostersPlus.php) and it seemed to resolve the problem. This error seems to occur when you're not

  • Wayne B
    Wayne B

    Hi I would like the ability for each of your TopContributor Plus and TopPoster Plus plugins (I have both installed) to be able to exclude certain groups from appearing in the list. My view being that

Posted Images

Hi

I would like the ability for each of your TopContributor Plus and TopPoster Plus plugins (I have both installed) to be able to exclude certain groups from appearing in the list. My view being that staff and moderators often make lots of contributions to the forum but I would not want them to be considered so that this then becomes a member only facility.

Would you be able to add that flexibility to both please?

Thanks

  • 2 months later...

Sorry for silly question, where do I upload these files to my host root?

  • 1 year later...

Nope, still got that problem. It only shows "1" all the time at the week view.

Month view seems to work.

week.JPGmonth.JPG

  • 1 year later...
  • Author
 

Any update for 4.3, thanks.

No update is required for 4.3.

Edited by The Jimmo

  • 4 weeks later...
 

Hi @The Jimmo, any news on the update regarding the 'It only shows "1" all the time at the week view' issue? Thanks.

Hi -

This error popped up again @The Jimmo

I took a look at the source code (widgets/jimmoTopPostersPlus.php) and it seemed to resolve the problem. This error seems to occur when you're not in the top 5 and for weekly only. This means its an issue with the default case and as such the widgets rather than the AJAX folder.

This was the code I found inside the if statement that checks to see if the member is logged in.

$you = \IPS\Db::i()->select( 'author_id, COUNT(author_id) as posts', 'forums_posts', array( 'author_id =' . \IPS\Member::loggedIn()->member_id . ' AND post_date>?', \IPS\DateTime::create()->sub( new \DateInterval( 'P1W' ) )->getTimestamp() ), '', '', NULL)->join( 'core_members', 'forums_posts.author_id=core_members.member_id' );

I changed the code to the following:

$myPosts = \IPS\Db::i()->select( 'author_id, COUNT(author_id) as posts', 'forums_posts', array( 'author_id =? AND post_date>?', \IPS\Member::loggedIn()->member_id, \IPS\DateTime::create()->sub( new \DateInterval( 'P1W' ) )->getTimestamp()) , '', '', array('author_id'))->join( 'core_members', 'forums_posts.author_id=core_members.member_id' );
if (count($myPosts > 0)) {
	foreach ($myPosts as $col) {
		$y = $col['posts'];
    }
    $you = $y;
} else {
	$you = 0;
}

 

To explain: I've changed it so both parameters in the where clause are parameterized and I've made it group it by author_id. Then I've checked to see if there is a result (a new member with 0 posts wouldn't have any results returned). Then I've just selected it.

A neater way would probably be the try-catch-block using the ->first() method where if it fails you assign $you to 0, but this was just a quick dirty fix for me.

Hope this helps some other people ?

Cheers.

Edited by Devin Powers

  • 1 year later...
  • Author

To use this in the meta tag editor, you would want to do the below as there are some variables in that URL which may be impacting you:

top-posters-plus/*

 

image.thumb.png.e08eca6538c2bf12cb4b73bbe4aabe87.png

image.png.7a6df3c655ee4eb7ed39f82aab2eae31.png

  • 7 months later...
  • Author
 

Well, but how are posts not counted in a given section? Then probably should not pass in the application.

Sorry, believe there is a language barrier here. I am not understanding what you mean. 

  • Author
 

The application should no count posts where they are added.

Counting posts where they are added is precisely the intention of the application. Sorry that there is either some confusion here due to a language barrier or misunderstanding of this application. I'm not sure where but at this time, I'm afraid, as you've owned this app for over a year, we're beyond a refund possibility but I will take your suggestion under advisement to not count items where post counts are turned off.

Edited by The Jimmo

  • 4 months later...
  • Author
 

Hi @The Jimmo, just wondering when do you think this will be compatible for 4.5? Many thanks in advance.

The current release should be compatible with 4.5. However, sometime soon I will be releasing an updated version with some new features/fixes.

  • 7 months later...
 

The current release should be compatible with 4.5.

It isn't, at least not for 4.5.4.2. Wanting to update, IPS allows updates for 4.4.

For 4.5+ it shows "This application is not compatible with the chosen version."

  • Author
 

It isn't, at least not for 4.5.4.2. Wanting to update, IPS allows updates for 4.4.

For 4.5+ it shows "This application is not compatible with the chosen version."

You will want to download the 4.4 version from the Marketplace and upload as custom. 

 

You will want to download the 4.4 version from the Marketplace and upload as custom.

I did... first it showed an empty block on my forum but now after re-enabling it, it shows the posters under each other instead of next to each other.

Is it meant to be so?

Edit: And the post count is not correct. Example: mine shows 7,042 while it should be 17,185

Edited by Eric BXL

  • Author
 

I did... first it showed an empty block on my forum but now after re-enabling it, it shows the posters under each other instead of next to each other.

Is it meant to be so?

Edit: And the post count is not correct. Example: mine shows 7,042 while it should be 17,185

If it is in the sidebar, it is vertical. If it is in the header/footer, it is horizontal.

Keep in mind it is a post counter of forum posts in your database. It won’t count other applications and won’t do manual edits to the content count. 

 

Keep in mind it is a post counter of forum posts in your database. It won’t count other applications and won’t do manual edits to the content count.

It is in the center footer block, right under the Top Contributors + which shows it horizontally. Previous version (2.0.4) showed it horizontally but not this 2.0.5 one.

One of my members has 77,579 All Time reputations showing in the ACP, and the All Time in the block shows only 3,622

I don't mind to give you access to the ACP if you want to check it.

  • Author
 

One of my members has 77,579 All Time reputations showing in the ACP, and the All Time in the block shows only 3,622

This is the top posters support topic. Are you referring to Top Contributors +? Reputation would not have any bearing on Top Posters, as mentioned, it only counts active forum posts in your database.

 

I don't mind to give you access to the ACP if you want to check it.

Feel free to PM me access.

Edited by The Jimmo

  • 3 weeks later...
  • Author

Anyone running into the orientation issue can apply the following patch:

/applications/jimmotoppostersplus/modules/front/ajax/ajax.php

/applications/jimmotoppostersplus/widgets/jimmoTopPostersPlus.php

Recently Browsing 0

  • No registered users viewing this page.