Jake Hall
Forum Replies Created
-
Forum: Plugins
In reply to: [bbPress Advanced Statistics] Cannot Delete PluginForum: Plugins
In reply to: [bbPress Advanced Statistics] user’s colorHi @narum,
I am afraid I am going to have to ask for some more information here. What seems to be the issue?
If you are trying to change the colours of the groups, don’t forget the names you have are probably different… so, for the group
Модераторyou will need the following css code added:.Модератор a { color: green!important; }And that will style those users green for example.
Kind Regards,
- This reply was modified 9 years, 5 months ago by Jake Hall.
Forum: Plugins
In reply to: [bbPress Advanced Statistics] Topics and Post statisticsThis issue has been resolved in the latest update, it was quite a deep-rooted issue and a big oversight on my behalf.
The issue affects a specific set of forums…
- Forums with more than 10000 posts
- Forums with the
Merge bbPress Statisticsoption enabled
This issue has been present in the plugin for a year and a half!
Apologies to everyone who experienced the issue… the next version (1.4.1) will correct this and I am pushing it out as we speak.
– jake
Forum: Plugins
In reply to: [bbPress Advanced Statistics] Cannot Delete PluginFantastic!
thanks for your help with this.
Both issues now resolved… will be pushed out in the next update.
Forum: Plugins
In reply to: [bbPress Advanced Statistics] Cannot Delete PluginForum: Plugins
In reply to: [bbPress Advanced Statistics] Cannot Delete PluginHi @tronix-ex,
Based on the page you provided earlier, doesn’t look like you’ve uploaded the latest version.
You are using 1.4.03-Multisite – which was one I asked you to use previously.
The latest version should be showing as 1.4.1… try this, I created a new tag for it.
https://downloads.wordpress.org/plugin/bbpress-improved-statistics-users-online.1.4.1.zip
Jake
Forum: Plugins
In reply to: [bbPress Advanced Statistics] Cannot Delete PluginHi @tronix-ex,
Hopefully fully resolved now… the issue is due to how bbPress format those statistics… completely flew over my head and is a bug that affects ALL versions since 1.1.1! (which was released a year and a half ago… wow!) Thank you for assisting with this, it feels good to get this bug out of the way.
Could you deactivate the current version you have installed, delete it and then upload and install this version? You should then see the issue is corrected, regardless of whether or not the merge option is enabled.
https://downloads.wordpress.org/plugin/bbpress-improved-statistics-users-online.zip
– Jake
- This reply was modified 9 years, 5 months ago by Jake Hall.
Forum: Plugins
In reply to: [bbPress Advanced Statistics] Cannot Delete PluginHi @tronix-ex,
Don’t worry about running that code – I have managed to replicate it.
It is the comma. Your forum has more than 10000 posts, so, bbPress adds a comma in (10,000). When adding, this doesn’t work.
I will see what I can do to correct this.
Jake
Forum: Plugins
In reply to: [bbPress Advanced Statistics] Cannot Delete PluginCan you uncheck it and see what happens. That will then display the replies.
It seems to be an issue when adding the replies and topics… could you try this code with the option ticked and let me know what happens?
$stats = bbp_get_statistics(); $stat_replies = $stats['reply_count']; if( $this->parent->option['bbpress_statistics_merge'] == "on" ) { $stat_replies = ( intval($stats['reply_count']) + intval($stats['topic_count']) ); } $HTMLOutput["forum_stats"] = $this->shortcode_tool_build_title( __('Forum Statistics', 'bbpress-improved-statistics-users-online'), false ); if( $this->parent->option['bbpress_statistics'] == "on" ) { $HTMLOutput["forum_stats"] .= '<span class="bbpas-title">' . __('Threads', 'bbpress-improved-statistics-users-online') . ": </span>{$stats['topic_count']}, " . '<span class="bbpas-title">' . __('Posts', 'bbpress-improved-statistics-users-online') . ": </span>{$stat_replies}, " . '<span class="bbpas-title">' . __('Members', 'bbpress-improved-statistics-users-online') . ": </span>{$stats['user_count']}<br>"; }Thank you
Forum: Plugins
In reply to: [bbPress Advanced Statistics] Cannot Delete PluginHi @tronix-ex,
Do you have the option
bbPress Statistics Mergeenabled?Really bizarre this issue, I would very much like to resolve it.
– jake
Forum: Plugins
In reply to: [bbPress Advanced Statistics] Cannot Delete PluginHi @tronix-ex,
Glad you managed to suss that – do note with the change you have made you will not be able to count the original post within each topic in the stats.
Could you do me a quick test? Before I push this fix out, can you update
class.online.phpwith the following code and let me know if it works?Replace:
$stat_replies = ( ( $this->parent->option['bbpress_statistics_merge'] == "on" ) ? ( $stats['reply_count'] + $stats['topic_count'] ) : $stats['reply_count'] );with:
$stat_replies = $stats['reply_count']; if( $this->parent->option['bbpress_statistics_merge'] == "on" ) { $stat_replies = $stats['reply_count'] + $stats['topic_count']; }and change the variable you changed earlier back to
$stat_replies? That should hopefully fix the issue fully!– Jake
Forum: Plugins
In reply to: [bbPress Advanced Statistics] Cannot Delete Pluginhi @tronix-ex,
thanks for that. honestly not sure where this is going AWOL. I’ll take a look into it tomorrow a little more, however, I can’t replicate this bug so it’s essentially guesswork.
what version of PHP do you have installed?
also – I didn’t manage to see the link. if you’d like to keep it private, email it to me 🙂
thanks,
Forum: Plugins
In reply to: [bbPress Advanced Statistics] Cannot Delete PluginSo for some forums this is working.
Others, such as your own, it isn’t. I have actually create a test plugin for this, would you mind installing it and letting me know what it returns? Simply add the code below to your functions.php file:
<?php function bbp_get_stats_bf() { $stats = bbp_get_statistics(); return "Replies: ." . $stats['reply_count'] . "<br>Topics: " . $stats['topic_count']; } add_shortcode( 'bbp-get-stats', 'bbp_get_stats_bf' );All it will do is fetch the stats, and, return them in a shortcode. Once you install this, can you add the shortcode ‘bbp-get-stats’ to the others you’ve setup and get back to me? Can I also have a link to your forum if possible?
Thanks,
Forum: Plugins
In reply to: [bbPress Advanced Statistics] Cannot Delete PluginHi @tronix-ex,
Can you enable the shortcode within
Forums > bbPress Advanced Statistics > Extras > Enable Shortcodeand give it another shot.Thanks.
`
Forum: Plugins
In reply to: [bbPress Advanced Statistics] Cannot Delete PluginCan you confirm
[bbp-stats]and[bbpas-activity]return the same data? (They are shortcodes, pop them on a page somewhere)