Inactive [INFO/WEB] WS v0.5 - Web Stat page for mcMMO(whith MySQL only) [1302]

Discussion in 'Inactive/Unsupported Plugins' started by Kiborgik, Apr 30, 2011.

  1. Offline

    Kiborgik

    Project is closed!
    Simple webstat writen on php5, now only for mcMMO whith MySQL and PHP 5.2.1+
    Version: 0.5
    GitHub: https://github.com/Kiborgik/ws
    Demo: http://ratings.crafthero.net
    Screens:
    Show Spoiler
    [​IMG]

    Download: Last version
    Install:
    1. move files to web-folder on your website
    2. edit config.php
    3. chmod 777 "data"
    4. chmod 666 for all .json files on folder "data"
    5. cake? )
    6. p.s. if you have "internal" problem try delete .htaccess
    7. if you disabled mining on your server:
      • open webstats.class.php found "AND ms.`mining` >0" (on line: 64)
        and delete this part, and all be ok
    8. p.p.s if css/js not load:
      • for IIS need change chmod "min" folder
      • go min/config.php
      • found $min_documentRoot = substr(__FILE__, 0, -15);
      • change it like $min_documentRoot = "c:\\xampp\\htdocs\\ws_for_mcmmo_folder";
      • its your path if you used windows, or '/home/accountname/public_html' if linux
    Upgrade:

    1. upload & rewrite all files except config.php
    2. chmod 666 for all .json files on folder "data" if needed
    3. testing and comment
    Changelog:

    Show Spoiler

    v0.5
    • perfomance relise & secure
    • add index_ajax.php for all ajax request
    • add posible gzip compression for css/js (minify_2.1.4_beta)
    • add cache images and others to .htaccess
    • add google charts :D (ideas?)
    • need mining > 0 for adding to table
    • now limit 1000 users whith biggest mining skill
    • fix some html errors
    v0.4

    v 0.3:

    • add icons & tooltips
    • some fixes
    • fixed "zebra"
    • fixed width
    • remove page "users" & add it to popup on click name
    v 0.2: (need chmod 666 for all .json files on folder "data")

    • add powerlevel
    • some bugfix
    • some cleanups
    • compare php version
    • add config (time_cache, prefix)
    v 0.1:

    • initial relise
    • caching 120s
    • json data for API
    • list users and skills


    TODO:
    • better functional
    • chek all variants for work
    • party(?)
    • search functional
    • fix some css errors
    • cache not only json
    • add weeks ratings and all for it
    • tool tips
    • charts and other graf
    • add power level
    P.S. Waite for your comments and sorry for my english )

    working for food, writing sites to order :)
    if you want remove or replace my copyright do this:
    open js / tooltips.js and remove
    $("#first").append(reclam_text);
    $("#second").append(reclam_text);
     
    FaeDine likes this.
  2. Offline

    imaxorz

    It doesn't seem to be showing top 1,000 by mining skill for us.

    It shows top mining skill as 45 which is wrong. User 04blatca has one of the highest mining skills (over 150) and I can't even find him using the search feature.

    http://mc.shadecrest.com/mcmmo/

    Here is a link to our old stats page http://mc.shadecrest.com/mcmmo2/stats.php (takes a while to load XD)
     
  3. Offline

    Kiborgik

    fixed on next version
     
  4. Offline

    vanja

    anyone knows free hosting service in which i can do this???? :(
     
  5. Offline

    sqldude

    Is the download link broken?
     
  6. Offline

    Kiborgik

    nope
     
  7. Offline

    Kiborgik

  8. Offline

    ewized

    I got this working but i want to put this in a iframe because i am using drupal and it just unt come up. This is the website http://actionminecraft.tk
     
  9. Offline

    muchcorrupted

    I tried setting up on my web host got this error whenever attempting to view the index.php file Screen Shot 2011-08-05 at 4.17.04 PM.png
    That will continuously pop up, all the time, every time, here's the website: http://rovercraft.net/statistics/index.php

    And I am %90 percent positive that I have all information in the configuration files correct other %12 Percent is for massive brain farts. Other than that I am stuck in a position that has no exit! I get whole lot 'o' spam from my console as well Screen Shot 2011-08-05 at 4.19.23 PM.png
    It's apparently not receiving any packets. As shown above xD

    Here is the sample from my config
    Code:
    MySQL:
        Enable: true
        Database:
            User:
                Name: 606234_holycowman
                Password: 12345isabadpassword
            Name: 606234_wtf
            TablePrefix: mcmmo_queef
        Server:
            Port: 3306
            Address: mysqlxxxx.xxx.xxxx.stabletransit.com
        Enabled: true
     
  10. Offline

    neo6633

    My os is win7 32bit.
    and I am using warm server. for mysql
    I maked databases.
    But I tested with my id(op,admin) first. But I can't see my skills.
    There is only txt "No data available in table".
    So I looked at the database but that was correct.
    I think because I did not this
    1. chmod 777 "data"
    2. chmod 666 for all .json files on folder "data"
    But I don't know how can I do that.

    P.s I deleted .htaccess

    why "No data available in table"?



    users_skills.json file is empty.
    Only there []

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

    Kiborgik

    chenge to and try update command on client to upload from flatfile to mysql in mcmmo TablePrefix: mcmmo_

    look database table, it empty? configure mcmmo first, then use WS
     
  12. Offline

    DragonMasterNYC

    I have an idea for the stat page.

    What about showing the face of the avatar next to the names on the list. When a name is clicked a popup will have a full avatar view with more in depth stats about the player (for example Minecraft days played). I know this only runs off the database that mcMMO uses, but just something extra for those that want it.

    later,
    Dragon
     
  13. Offline

    Kiborgik

    what plugin can do this?
     
  14. Offline

    DragonMasterNYC

    Not sure if it's something you can just do or something nossr50 might have to add to mcMMO.
     
  15. Offline

    Kiborgik

    write tp mcmmo plugin developer ) now i worked for integration, lwc, huntermobs and dynamik whitelist
     
  16. Offline

    DragonMasterNYC

    No problem I thought maybe you could hook into it without a plugin.

    Thanks for your time
    Dragon
     
  17. Offline

    striker890

    I have a big problem. I don't know but my Webstat page doesn't look like in the screen. There are no borders and so on.
    And i did it like this change it like $min_documentRoot = "c:\\xampp\\htdocs\\ws_for_mcmmo_folder";

    I hope you can help me.
     
  18. Offline

    FuturaEX

    could you add a video tutorial on how to do this?
     
  19. Offline

    Kiborgik

    start new conversion and give me a link to you site - i help you
    yes, i can, but i cant add voice ) i speak very bad on english )
     
  20. Offline

    FuturaEX

    haha, ok :p just make sure to do it slowly then :p
     
  21. Offline

    striker890

    @ Kiborgik
    ok heres the link http://germannitroracing.1x.de/GNR-Server/webstats/
    the problem is that it doestn look like at you example screen. At the moment theres no Player because there is noone who played on this server^^.
    I hope you can help me.
     
  22. Offline

    Kiborgik

    do step 9 install or waiting new version ^)
     
  23. Offline

    0dayderp

    So, the latest stable version of PHP on the Debian repos is 5.1. could you provide a link to your older versions, for those of us not on the bleeding edge? thanks :D

    Never mind! works with php 5.1 as well.
     
  24. Offline

    striker890

    Server is now on Nitrado and it says Host 'www17.subdomain.com' is not allowed to connect to this MySQL server

    I can't do anything to fix this or?
     
  25. Offline

    Kiborgik

    dont know ) asq provider

    new version coming soon
     
  26. Offline

    striker890

    ok will try
    thanks
     
  27. Offline

    Zopiac

    New to MySQL -- trying to get the WS working so first I needed to set up the MySQL part of this.
    I ran into an issue when I ran the server though:

    Code:
    [SEVERE] Error occurred while enabling mcMMO v1.1.05 (Is it up to date?): null
    java.lang.NullPointerException
    	at com.gmail.nossr50.Database.Write(Database.java:135)
    	at com.gmail.nossr50.Database.createStructure(Database.java:45)
    	at com.gmail.nossr50.mcMMO.onEnable(mcMMO.java:149)
    	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    	at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:885)
    	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
    	at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:178)
    	at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:161)
    	at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:286)
    	at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:273)
    	at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:149)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:337)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    Here's my MySQL bit in the config:
    Code:
    MySQL:
        Enabled: true
        Database:
            User:
                Name: mcmmo
                Password: mcmmo
            Name: MCMMOdb
            TablePrefix: mcmmo_
        Server:
            Port: 3306
            Address: localhost
    
    I have made sure I granted permissions to the MCMMOdb database for the user mcmmo. I'm not sure if it's a permission error or not but even so...
     
  28. Offline

    Wiernusz

    How did you get this to work?

    If you could post a link to an older version, it'd be great. It does not work with 5.1, on CentOS anyways.
     
  29. Offline

    Chosen

    Hi
    There is the possibility of addition the own column of statistics? from this same database ?

    sorry for English

    Respect
     
  30. Offline

    lieudusty

    I get
    Code:
    Fatal error: Class 'webstats' not found in /opt/lampp/htdocs/minecraft/index.php on line 63
    Can you please help? Thanks!
     
  31. Offline

    DFreeman

    Спасибо за плагин, жаль ты родной язык туда не впихнул ;)
     

Share This Page