Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author rehhoff

    (@rehhoff)

    Hello.

    Thank you for using the plugin ??

    You can adjust the sizes, look and feel of the server status boxes with CSS.
    This requires a bt of coding knowledge to understand.

    This will adjust the padding of all boxes, this making it smaller.
    Change the 10px/20px values accordingly to your liking

    .server-box {
        padding-top: 10px;
        padding-right: 20px;
        padding-bottom: 10px;
        padding-left: 20px;
    }

    If you want to adjust colors or add icons to a server box with specific type of response you have to add the “condition” too.

    Please refer to https://www.w3schools.com/cssref/pr_background-image.asp for documentation about background images.

    For example:

    .server-box.is-up {
        background-image: url("/wp-content/path/to/icon.png");
        background-position: center 15px;
        background-repeat: no-repeat;
    }
    .server-box.checking {
        /* Style while box is checking (yellow state) */
    }
    .server-box.is-up {
        /* Style for a successful check (green state) */
    }
    .server-box.is-down {
        /* Style for a failed check (red state) */
    }

    You can also apply generel style for a select server box like so.

    .server-box.server-XXXX {
        /* Replace XXXX with the ID of your server,
           visible in Server status admin screen */
    }

    Or even make a combination of both for more advanced use cases.

    .server-box.is-up.server-XXXX {
        /* Replace XXXX with the ID of your server,
           visible in Server status admin screen */
    }

    Depending on your theme this will have to go in the appropriate .css file,
    usually that would be style.css in your theme.

    If you’re not using a custom theme or a child-theme, you can put it in the wordpress customizer
    Found at: Appearence > Customize > Additional CSS`

    Kind Regards
    – Allan

    • This reply was modified 3 years ago by rehhoff.
    Forum: Reviews
    In reply to: [ATR Server Status] Perfect
    Plugin Author rehhoff

    (@rehhoff)

    Hello.

    First of, sorry for the rather late reply.

    Please be aware that modifying the plugin code directly, can have unforeseen consequences to your site next time I have to update the plugin, your changes to the plugin will be lost.

    If you’d rather have a filter or an action, to act upon in the source code, you can send me a mail here: https://rehhoff.me/contact
    and I’ll look into what can be done. ??

    Kind Regards
    A. Rehhoff

    Thread Starter rehhoff

    (@rehhoff)

    Hello, and thanks for the heads-up ??

    While I appreciate your effort in updating the plugin to allow only dark-mode, I will stand by my rating.

    The plugin is still not what it used to be, and still contains more features than I am looking for in a dark mode plugin, the grey/dark color that was used before was just perfect, now it’s almost too dark/black.

    In addition to that the settings page doesn’t follow the wordpress backend design standards, like it contains toggles that is used nowhere else in the wordpress backend.

    Continueing on, I still believe that is is not ok, to so radically repurpose an otherwise popular plugin, I find it misleading.

    Have a great day.

    – rehhoff

    Plugin Author rehhoff

    (@rehhoff)

    Hello @webtunnel

    Thanks for your ideas.

    1. Adding some sort of pagination, is something I’ve thought about adding for a while, problem is my development time has been severely limited recently, but it’s definetily on the table of things I want to add.

    2. The issue here with a ‘caching mechanism’ is that it’d conflict with the ‘Attempt to bypass cache’ setting already provided with the plugin, and it’d provide inaccurate results, which is a thing I’m trying to avoid.

    3. Pings is a frequent requested feature, but the problem with introducing ICMP pings, as an available protocol, is that I cannot guarantee, or assert a high probability chance, that it’s going to work on all webservers.
    This is due to 2 reasons mainly.

    3.1 PHP functions such as exec();, passthru(); shell_exec(); system(); are disabled on many webhosts for security reasons, So I’d be unable to execute a system-command and just parse the results.

    3.2 The second alternate option would be to use the socket_create(); function. But that requires the script to be run as root. And it’s almost guaranteed that no wordpress sites run as root.

    While I could do a check programmatically and only allow the protocol on sites which has the functions in method 1 enabled. I’d rather not introduce features that only half of the users can use, bvecause if I start allowing myself to go down that road, I’m at risk of creating a bloated and possibly unstable plugin.

    Plugin Author rehhoff

    (@rehhoff)

    Hello @webtunnel

    Thanks for the review.

    As for the suggestion, I’ll definetily note it down, and see what I can do, and if it’s possible for all the protocols. ??

    Maybe I can get some free time throughout this christmas.

    Kinds Regards
    – Allan Rehhoff

    Plugin Author rehhoff

    (@rehhoff)

    Resolved

    Plugin Author rehhoff

    (@rehhoff)

    Hey.

    I have just released a version that should fix this issue.

    Please update to v1.5.0

    Marking this as resolved.

    Kind Regards
    – Allan

    Plugin Author rehhoff

    (@rehhoff)

    Hello André

    Thanks for the bug report.
    And apologies for the slow reply, I very rarely check these forums, response times will be way faster through emails.

    That aside, I’ll make a note of it, and will start debugging on the issue in the next couple days hopefully ??

    Keep an eye out for updates ??

    Kind Regards
    – Allan

    Plugin Author rehhoff

    (@rehhoff)

    No response… marking this as resolved.

    If the above didn’t help you, please feel free to send me an email ??

    Plugin Author rehhoff

    (@rehhoff)

    Hello.very

    Sorry for the (very) late reply, I don’t check these forums as often as I check my mail, so for future reference if you need help, please don’t hestitate to contact me directly.

    yes, this is possible already, but it requires some knowledge of PHP and HTML.
    switch this around, tweak it to your needs, and put it in functions.php

    Something like this could possibly achieve what you’re requesting.

    add_filter("atr_server_success_message", function($message, $server) {
    	$html = "<br><small>Hostname: ".$server->hostname."</small><br>"
    		." appears to be working alright.";
    	return $html;
    }, 10, 2);

    The $server variable contains all available information about the server, as entered in wp-admin, inspect this with print_r(); or var_dump(); if you need to see what it contains.

    Kind Regards
    Allan

    Plugin Author rehhoff

    (@rehhoff)

    Hey ericscoles

    Is it possible you could send me an email at https://rehhoff.me/contact with the servers you’re trying to add?

    I’ll add them on my test intallation and do some testing ??

    Kind Regards.
    – Allan

    Plugin Author rehhoff

    (@rehhoff)

    Hey mmk31

    I was recently updating my contact form, which left it broken for a couple days, without me noticing.

    However if this issue is still a thing, you’re free to contact me at my mail too, or reply here.

    I do also need to know what site the issue is at to help.

    Kind Regards
    – Allan

    Plugin Author rehhoff

    (@rehhoff)

    No, not as it currently is.

    The nature of wordpress would make it really hard to implement such a thing sadly.

    if you really want to monitor your servers and server load/uptime, you should consider using software like nagios or zabix instead.

    Plugin Author rehhoff

    (@rehhoff)

    No reply.. marking this as resolved for now…

    Plugin Author rehhoff

    (@rehhoff)

    Hey @jakours2

    Sorry for the very late reply, I very rarely check those forums, so if you require any future help, please don’t hestitate to contact me at https://rehhoff.me/contact since there’s a bigger chance I’ll see your message there, the response time will most likely be shorter..

    To answer your question, could you please try to increase $priority argument value (that’s the 3rd param in the add_filter function which is currently set to 10)
    To be sure it’s high enough replace 10 with “PHP_INT_MAX” without the quotes.

    Additionally, please try to update to the latest version, as I’ve just recently sent out an update.

    Kind Regards.
    – Allan

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