• Resolved bkjproductions

    (@bkjproductions)


    FANTASTIC plugin, works nicely on a site we are doing for a financial services company and they want a log of changes to the site in case the SEC comes a-knockin’.

    Please add settings, or maybe you can put them in a Pro version:

    • Specify the number of days to retain the log (rather than 60, would like to go for a full year)
    • Move the “Export” button to the Log display, that is where you would want to look, not in Settings. Perhaps put it below the Stats box on the right, would be where I would look for it.
    • When the Export file is named, use today’s date and hh:mm:ss, e.g. [email protected]
    • Within the CSV export include the details of what content was updated in a post edit. (Question: Is the nifty display you have of the “diff” showing the edit, generated by Post Revisions in WordPress, or are you actually recording that in your own table? Reason I ask: fairly major host WPengine.com does NOT include Revisions by default.)
    • Ability to Turn off some features, such as Found an update to plugin “Yoast SEO” (because as we all know, hardly a day goes by that there is not another Yoast update!) There could be a few other events to ignore; maybe not everyone cares about user-switching. Something to cut down on the noise on a busy site.
    • Add a way to automatically email the log, including a nonce-link-back to clear the log once you’ve received it.
    • Integrate with iThemes Security, perhaps?
    • Integrate with Elementor since it’s selling like hotcakes.
    • Provide a way to copy settings from one website to another, now that you’ve added all these options. 🙂

    I notice that you have options to Show history: on the dashboard, and as a page under the dashboard menu, which effectively hides the history. Suggest, in that event, perhaps, to add a tab under Settings to show the history, or in some way make them visible without having to set that and then un-set it.

    Anyway, this is a very useful tool you have created! Thanks. I’ve sent some money via Paypal, hope others are doing so as well.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Pär Thernström

    (@eskapism)

    Thanks for the suggestions @bkjproductions, I think they are all worth considering. Also lots of thanks for the donation 🙂

    Thread Starter bkjproductions

    (@bkjproductions)

    Client would be willing to donate more for the ability to specify number of days… 🙂

    I am thinking at line of 2168 of SimpleHistory.php

    	public function get_clear_history_interval() {
    		$days = 365;
    Plugin Author Pär Thernström

    (@eskapism)

    @bkjproductions There is no GUI for that but there is a hook/filter you can use:

    https://docs.simple-history.com/hooks#simple_history/db_purge_days_interval

    Thread Starter bkjproductions

    (@bkjproductions)

    @eskapism Thanks for the link to the Docs, that is great!
    For fun I added my own event in my plugin:
    SimpleLogger()->info( 'BKJ Functions ITSR' );
    How would I go about getting a list of all of the events, in PHP?
    I was trying

    $query = new SimpleHistoryLogQuery();
    
    	$query_args = array(
    	'paged' => 1,
    	'posts_per_page' => 3000,
    	);
    
    	$events = $query->query( $query_args );
    
    	// $events->total_row_count;
    	$pages_count = $events['pages_count'];
    	$page_current = $events['page_current'];

    but that doesn’t work, maybe because the SimpleHistoryLogQuery() needs to be called by a method or maybe it is not public? I have no clue.

    My goal is to have my plugin use yours to grab a list of the events and put them into an array in PHP and then I can look through that and build a different report. I am looking only for plugin updates, but would be curious to loop through the entire list of events (messages?) and perhaps do a couple of different things based on that information.

    Plugin Author Pär Thernström

    (@eskapism)

    I think it looks ok. How and when are you calling that code? Perhaps you are not running it when logged in as an admin? Maybe it’s the same problem as this user had? –> https://ww.wp.xz.cn/support/topic/simplehistorylogquery-not-showing-results-for-non-logged-in-users/

    Thread Starter bkjproductions

    (@bkjproductions)

    Another feature request: Can you track when an inline Edit has been done to a Advanced Custom Field? That is, through the magic of Admin Columns and Advanced Custom Fields, we can add Custom Fields to display in the Post List, and there is a way to edit “inline” without actually going to the Post to make the edit. I see that a “Quick Edit” is logged in Simple History, but that is a different sort of edit than the inline edit, apparently, because that is not tracked.

    I am wondering if it would be via this hook:
    https://developer.ww.wp.xz.cn/reference/hooks/quick_edit_custom_box/
    add_action('quick_edit_custom_box','track_simple_history');

    Or maybe it would be via an ACF hook?
    https://github.com/codepress/admin-columns-hooks/blob/master/acp-editing-saved.php

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Feature Requests’ is closed to new replies.