Forum Replies Created

Viewing 15 replies - 1 through 15 (of 135 total)
  • Plugin Author Jake Hall

    (@geekserve)

    Hi,

    I will try and troubleshoot this issue tonight.

    I have been really busy as of late, so I apologise.

    In the meantime, can you delete the plugin entirely from your server and give the older version a go, v1.4.5

    https://downloads.www.ads-software.com/plugin/bbpress-improved-statistics-users-online.1.4.5.zip

    It is stable.

    • This reply was modified 7 years ago by Jake Hall.
    Plugin Author Jake Hall

    (@geekserve)

    Hi both,

    Translations for the user roles is not handled within the plugin, I can see you have managed to translate them within WordPress. If you are unhappy with that, you will need to fire an email off to WordPress support.

    I will provide an updated pot file when I get home from work, and I will be looking at correcting some of the issues people have faced with the most recent update.

    Thank you,

    Plugin Author Jake Hall

    (@geekserve)

    Hi jdegraaf,

    Apologies for the delayed response here.

    Would you mind posting the debug info from the plugin settings page please?

    I feel this is because the database has not been created within WordPress, it should do it automatically but unfortunately at times it doesn’t.

    Have you tried the basics, such as deactivating and reactivating?

    Many thanks,

    Plugin Author Jake Hall

    (@geekserve)

    Hi kingteamdunet,

    I am unable to do anything at the moment as I am on holidayh and thus unable to push any updates out.

    I am aware of the PHP error you are facing. I need to investigate it further as, currently, I have been unable to replicate the issue you are facing. I have, however, spotted this on multiple websites using the plugin and I will put an update out to fix this.

    With regards to translations, the user roles are defined within WordPress, There is nothing for you to translate within this plugin, they are defined within WordPress. You will need to change the names of the roles within WordPress itself – you can do this by following an article such as this: https://premium.wpmudev.org/blog/change-wordpress-role-names/

    Once you update the names within WordPress core, bbPress Advanced Statistics will pick it up and you can then style them accordingly within the stylesheet.

    I will pop a response in here once the php error has been fixed, would you mind providing me a link to the forum you are running the plugin on, and, would you also mind copying the debug info from the plugin settings (or send it to me via email on jake[at]thegeek[dot]info) as that will help with debugging.

    – Jake

    Plugin Author Jake Hall

    (@geekserve)

    Hi jdegraaf,

    That’s not ideal! Are you getting any php errors?

    It doesn’t seem to be inserting anything into the database, can you confirm if yourprefix_bbpas exists within your database and contains data?

    Many thanks,

    Plugin Author Jake Hall

    (@geekserve)

    Hi Tim,

    That’s not a problem, once the API come out I will post a snippet of code here for you to use on your website that utilises the API.

    – Jake

    Plugin Author Jake Hall

    (@geekserve)

    Hi Tim,

    Thank you for the feedback, really glad you’re finding a use for the plugin!

    This was a really difficult part of the plugin to develop as I am passing the data through the normal WordPress Options API, what this means is the data is handled and HTML is stripped – there isn’t a lot of flexibility available here. The functionality is supposed to be used to allow people to customise the wording of the headings, as previously this would require a language override.

    If you know how WordPress Filters work, you would want to filter the following:

    – bbpas_section_bbpress_stats

    This will let you filter the entire section for bbPress Statistics.

    At the moment, I haven’t added any API to expose functions for you to grab any relevant data (such as the actual stats, but, you could manipulate the string you get), I was planning it in this release however I didn’t want to release too much in one go (way more potential to go wrong!)

    I will try and get the API functionality baked in as soon as possible, for the time being I am afraid you will have to see what is possible with the filter, or hold on until some API functionality is released.

    But do bear in mind, the sort of configuration you’re looking for will not be possible in the base plugin – you will need to utilise the API or Filters in order to get the outcome you’d like.

    Many thanks,

    Jake

    Plugin Author Jake Hall

    (@geekserve)

    Hi 3limami,

    You are welcome!

    Currently unregistered visitors is not part of the plugin, however, I will definitely look to adding this functionality in the next versiokn as it includes large overhauls to the way the plugin tracks activity.

    This is still in the early stages, and thus, may be a little off yet.

    Thanks,
    Jake

    Plugin Author Jake Hall

    (@geekserve)

    Hi Andrei,

    Thank you very much!

    I anticipate that update will be a big update as I want to completely rewrite that part of the plugin, so, I imagine the code above will not work.

    Nontheless, there will be API functions in place to allow this sort of behaviour in a cleaner manner.

    Thank you for the review, I really appreciate it!

    Jake

    Plugin Author Jake Hall

    (@geekserve)

    Hi Andrei,

    This is quite hacky, I will try to incorporate some loose API-esque functions in the next veersiokn to avoid this… hackery! I will make it so the API functions will need to be activated, for those whom are worried about performance etc.I never built this plugin with the intention of it being used in such a way, but, as there have been multiple requests for this sort of functionality I will ensure to encorporate this into a future version.

    If you add the following to your functions.php file, you will be able to get a jist of what is happening and where the relevant data you need is. I have setup this example to include all of the relevant variables (users, posts and activity).

    You could potentially hook this into a new widget, or setup a function and simply call it from your php file – down to you on that one.

    function wp_28372873_bbpas_stats() {
    	$stats = bbPress_Advanced_Statistics::instance( __FILE__, BBPAS_VERS );
    
    	$activity_time = $stats->online->parent->option["user_activity_time"];
    	
    	$online_stats = $stats->online->whois_online();
    	$online_stats = array( "inactive" => count( $online_stats["inactive"] ), "active" => count( $online_stats["active"] ) );
    
    	$formatted_stats = $stats->online->get_formatted_statistics();
    	
    	echo "There has been {$online_stats['inactive']} users logged in over the past {$activity_time} hours, of which {$online_stats['active']} are currently active.";
    	echo "There are {$formatted_stats["user_count"]} users registered, we have {$formatted_stats["topic_count"]} topics and {$formatted_stats["reply_count"]} replies!";
    }
    add_action( 'init', 'wp_28372873_bbpas_stats' );

    Or, alternatively, wait a few weeks until I get round to incorporating some API-esque functions into the next release.

    Hope that helps!

    Jake

    Plugin Author Jake Hall

    (@geekserve)

    Hi Andrei,

    So based on my understanding you’d only like to display the number of users whom are online rather than the list of whom?

    If so, that is not currently part of this plugin however I will consider it for a future version, so you can have the choice of a simple vs enhanced statistics widget.

    – Jake

    Plugin Author Jake Hall

    (@geekserve)

    Hi @dealfiles,

    There isn’t a way to change the output of the statistics – it is designed to closely mimic the phpBB and vBulletin stats (for forums moving over like so).

    With that being said, you can access the functions within the plugin by invoking the following code in your file:

    $stats = bbPress_Advanced_Statistics::instance( __FILE__, BBPAS_VERS );

    That should allow you access to the plugins instance, and from there you can call functions to get the data you need (e.g get_formatted_statistics).

    Hope that helps,

    Jake

    Plugin Author Jake Hall

    (@geekserve)

    @narum,

    I am not sure what you are referring to there… there is no such message in this plugin (that I can see)

    Plugin Author Jake Hall

    (@geekserve)

    @narum,

    That wont work as your usergroup names are different – the css file assumes you are in an english setup.

    .moderator will not work as that is the english translation, you will need to enter whatever the groups have been renamed to.

    For example, in order for moderator to work your css should read something along the lines of (based on what I can see on your page)

    .Модератор a {
    colour: green!important;
    }

    This will style all users within the group Модератор as green.

    You can then repeat that for keymaster and so on.

    Jake

    Plugin Author Jake Hall

    (@geekserve)

    Thank you for the rating @tronix-ex!

Viewing 15 replies - 1 through 15 (of 135 total)