WEBStatsX

Discussion in 'Bukkit Tools' started by cynexit, Jan 18, 2013.

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

    squiddie

    First I want to thank you for this great plugin! I just love it. But I have one little problem.

    This section of the config file:

    PHP:
    /**
    * Display-specific optional configs
    */
    $page_title 'Minecraft WEBStatsX';
    $header_title 'WEBStatsX';
    $top_limit 10;
    Does not show correct on the page. (you can see it on http://squidtronic.be/minecraft_statistics/ )
    I didn't find a solution in this thread. maybe I overlooked it.

    Big thanks in advance!
     
  2. Offline

    Lolmewn Retired Staff

    squiddie Please paste your whole config (mask out the database details) please, as your check.php could not be found.
     
  3. Offline

    squiddie

    Here is the whole config.php:

    I also uploaded the check.php again, if you need it.

    PHP:
    <?php
    // necessary to work
    $mysql_host 'localhost'// your MySQL server IP
    $mysql_user '[USER]'// your MySQL database user
    $mysql_pass '[PASS]'// your MySQL database password
    $mysql_db 'minecraftstats'// your MySQL database name
    $mysql_encoding 'latin1';  // this is recommended because the plugin creates all its tables with latin1 encoding
    $prefix 'Stats_'// [default=stats]
     
     
    /**
    * Display-specific optional configs
    */
    $page_title 'Minecraft WEBStatsX';
    $header_title 'WEBStatsX';
    $top_limit 10;
     
     
    /*########################
    optional stuff
    ########################*/
    //--- show avatars
    $show_avatars true;
     
    //--- show online/offline
    $show_online_state true;
     
    //--- online/offline check
    $server_ip 'squidtronic.be'// can be a real ip or a dns alias
    $server_port 35000// [default=25565]
     
    //--- add a link to the online map
    $link_to_map "http://squidtronic.be:35100";
    // Don't want the link to be displayed? Uncomment the next line!
    //$link_to_map = "";
     
    //--- add custom links to the menu
    $custom_links = array(
      
    //"Dynamap" => $link_to_map, //Uncommend this for Dynmap
      //"Mojang" => "http://mojang.com" //Example of how to add custom links!
    );
     
    //--- enable the server stats page [beta]
    $enable_server_page false//BETA!! Needs some special rights your webserver might not have on the host system. This will not work on windows servers!
    ?>
     
  4. Offline

    Lolmewn Retired Staff

    squiddie cynexit probably put it inside a string, instead of wrapping the whole thing in a PHP function. I suggest he fixes this :3
     
  5. Offline

    Charly_ZA

    nothing at all. All the other DBs work.
     
  6. Offline

    squiddie

    I managed to fix it by including the config.php in the header.php and index.php. Then I changed:

    PHP:
    ><?=$bonus_methods->page_title?>
    into:

    PHP:
    ><?php echo $page_title?>
    I did that for all the the lines in index.php and header.php (title, header title and top 10).

    I don't know if this is/was a good solution, because i'm a n00b at PHP, but it fixed it for me :)
     
  7. Offline

    Lolmewn Retired Staff

    squiddie fair enough, as long as it works right?
     
  8. Offline

    Charly_ZA

    I'm going to try test it with a non local server. Anyone perhaps got connection details for a database I could test it with?
     
  9. Offline

    squiddie

    Lolmewn The solution was a little stupid, because the problem was fairly easy:

    in header.php:

    replace line 22:

    PHP:
    <title><?=$bonus_methods->page_title?></title>
    with:

    PHP:
    <title><?php echo $bonus_methods->page_title?></title>
    replace line 75:

    PHP:
    <a class="brand" href="#"><span><?=$bonus_methods->header_title?></span></a>
    with:

    PHP:
    <a class="brand" href="#"><span><?php echo $bonus_methods->header_title?></span></a>
    and in index.php:

    replace line 43, 75, 107, 144, 176, 208:

    PHP:
    <h2><i class="icon-user"></i> Top <?=$bonus_methods->top_limit?>
    with:

    PHP:
    <h2><i class="icon-user"></i> Top <?php echo $bonus_methods->top_limit?>
     
  10. Offline

    Lolmewn Retired Staff

    squiddie Wow, that was really easy indeed :confused: Ah well.
     
  11. Offline

    el_pedriyo

    Hello, I have installed the plugin and so, but my problem is that when I click on a player, it does not show his body moving that you can turn it with the mouse like I have see in other servers and the image of the stuff that killed you also does not show. Could you please me tell why.
    here is my webstatsx page: http://lordminecraft.tk/stat/single_player.php?p=ivan22
    Thanks
     
  12. Offline

    dapplepom

  13. Offline

    Lolmewn Retired Staff

    el_pedriyo This is not a standard feature of WebStatsX, someone else built it in their own website. *Maybe* support for it will be added.
     
  14. Offline

    el_pedriyo

    And the problem to this:
    ?
     
  15. Offline

    Lolmewn Retired Staff

    Looks like there is no image for <Void>. Kinda makes sense, right?
     
  16. Offline

    el_pedriyo

    For void, for zombie and for anything, so what can be the problem?

    Well yes I think only for void, so how can I introduce an image for void?

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

    Lolmewn Retired Staff

    el_pedriyo Find a nice image and name it Void.png. Put that in the img folder and Tada!
     
  18. Offline

    mmuziek

    is it possible to have instead of most deaths top 10 having poeple with the smallest deathcount on top and such
     
  19. Offline

    Lolmewn Retired Staff

    mmuziek Yeah, just change the query around. Mind you though, not all players are in the Death table. If they haven't died, ever, they're not in the table.
     
  20. Offline

    crunkazcanbe

    Somthing is wronge just installed this go here click on my name to see my stats and look at the error .

    <?php
    $blocks = $player->get_all_blocks('mysql');
    while ($row = mysqli_fetch_assoc($blocks)){
    echo '<tr><td class="centered"><img src="img/blocks/'.$row['blockID'].'.png" height="32" width="32" alt="Block '.$row['blockID'].'" /></td>';
    echo '<td>'.$row['blockID'].'</td>';
    echo '<td>'.$row['amn'].'</td>';
    echo '<td>'.$row['brk'].'</td></tr>';
    }
    ?>


    Somthing wrong with this row here

    while ($row = mysqli_fetch_assoc($blocks)){


    this is the single_player.php file btw
     
  21. Offline

    Lolmewn Retired Staff

    crunkazcanbe Were any blocks broken? Maybe it just fails when there's no data.
     
  22. Offline

    crunkazcanbe

    Yep there is data i see it in the _block table made . Lolmewn
     
  23. Offline

    Lolmewn Retired Staff

  24. Offline

    crunkazcanbe

    Lolmewn I just uninstalled the plugin and deleted everything dealing with it and removed the web interface im going to start from scratch and see if its fixed man .
     
  25. Offline

    JAHMCR

    Hello Lolmewn, I am having problems with Stats in my server, It's only tracking players from my local IP and not from the another players, the server is hosted in USA and I am from Costa Rica, so, I don't understand why is only tracking my stats. Can you help me please?

    EDIT:

    Now it's tracking stats of only some players, not only me, atm there are only the stats of 2 players. If you want check it: http://ticocraft.enjin.com/stats.

    I am using a Database provided by the server hosting, idk if it might me causing this. What database do you recommend?
     
  26. Offline

    Lolmewn Retired Staff

    JAHMCR Did you give your users the correct permission node?
     
  27. Offline

    Charly_ZA

    I'm still having that problem. The first time I install the plugin it works. From the next restart it doesn't. I've tried reinstalling it 3 times now. Any suggestions?
     
  28. Offline

    Lolmewn Retired Staff

    Charly_ZA I honestly have no clue... Connections etc should go the exact same way.
     
  29. Offline

    JAHMCR

    Oh no, I didn't know that there was a permission node. Thank you!

    And what about Players page? It is not showing any stats. What can I do?
     
  30. Offline

    Lolmewn Retired Staff

    JAHMCR Well, if they don't have the permission node, I guess there's not much there ;)
     
Thread Status:
Not open for further replies.

Share This Page