[WEB] CSS + JavaScript + PHP Monitoring

Discussion in 'Bukkit Tools' started by EpicMan2, Jan 14, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    EpicMan2

    Animated Progress Bar [100x20]
    [​IMG]

    Without PHP. Only style.
    Demo | Download

    Sample (PHP+HTML+JAVASCRIPT+CSS)
    Download

    Configured Script
    Download

    You can use it with
    <iframe src="/path/" frameborder="0" width="x" height="y"></iframe>
    Sample

    Screenshot (open)
    [​IMG]


    Original Thread
     
    Goblom and Ignorex like this.
  2. Offline

    Adrenaline

    It need recode.. and don't work for me. Only display name of the server (or motd.. don't know)
     
  3. Offline

    EpicMan2

    You edit index and info.php for your server?

    Index.php - 45
    Info.php - 13, 42

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 30, 2016
  4. Offline

    Lolmewn Retired Staff

    Screenshot seems to be broken.
     
  5. Offline

    KeybordPiano459

    Last edited by a moderator: May 30, 2016
  6. Offline

    LaxWasHere

  7. Offline

    KeybordPiano459

    Don't ask me, I didn't code the original stuff that caused that :p
    EDIT: Although, I'm getting most of my tests correct, for example the one provided above.
     
  8. Offline

    EpicMan2

  9. Offline

    Adrenaline

    know :), don't work
     
  10. Offline

    EpicMan2

    Last edited by a moderator: May 30, 2016
  11. Offline

    Adrenaline

  12. Offline

    EpicMan2

  13. Offline

    Adrenaline

    Don't use spout ;P, standard plugins :confused: where you see "non-standard" plugins :#
     
  14. Offline

    EpicMan2

    Modification output of the server. Something as fakeplayers or something else. I dont know how to say this. But monitoring is work. You can see it.
     
  15. Offline

    Adrenaline

    MOTDManager :p but he only modificate motd for players ;)

    I repeat again. This code need a remake.. ;s because it slowing loading of website
     
  16. Offline

    EpicMan2

    Try to turn off MOTDmanager and look at monitoring after this.
    Know.
     
  17. Offline

    book777

    something on my monitor looks like :confused:
     
  18. Offline

    Magestickown

    here's an example using MCStatus:
    Code:
    <!DOCTYPE html>
    <html>
        <head>
            <title>Users online progress bar</title>
            <style type="text/css">
                .progress {
                    background-color: #E7E7E7;
                    border: solid 1px #939393;
                    padding: 2px;
                    width: 500px;
                }
     
                .progress div {
                    line-height: 16px;
                    height: 16px;
                    background-color: #2D88F1;
                    width: 50%;
                    text-align: center;
                    color: #eee;
                    font-family: arial;
                    font-size: 8pt;
                }
            </style>
        </head>
     
        <body>
            <?php
            require 'class.MCStatus.php';
            $mcStatus = new Orpheus\MCStatus('PVP.SC');
            $status = $mcStatus->getStatus();
            $percent = floor((($status['maxPlayers'] - $status['players']) / $status['maxPlayers']) * 100);
            ?>
     
            <div class="progress">
                <div class="status" style="width: <?=$percent?>%"><?=$status['ip']?>: <?=$status['players']?>/<?=$status['maxPlayers']?></div>
            </div>
        </body>
    </html>
     
Thread Status:
Not open for further replies.

Share This Page