[WEB] Webstatistic for Minecraft v3.1 - mrplows

Discussion in 'Bukkit Tools' started by cky2250, Feb 19, 2012.

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

    cky2250

    • Adf.ly links
    headphoto.png
    This was based on [WEB] Webstatistic for Minecraft v1.10b [1337] - the code used in this is far more superior. It is being made into a Wordpress or phpwiki or any good website project that has an installer, login, admin page, and many goodies.

    Webstatistic for Minecraft is shortened to WS in the following text:


    [​IMG]

    Demo site may or may-not be up and running HERE

    For issue, suggestion, source code, and other content go HERE

    Vote For The Plugin. HERE

    I Want to see it!!! HERE

    - Steam Group HERE

    Cool Links To Use
    Achievement Maker
    Database Converter

    What's "Webstatistic for Minecraft"?

    Every server admin, at some point would like to host some statistics for the users. So that they can compete which each other (e.g. who destroyed the most cobblestone blocks). They can use it as a system to determine prices, or just to have an overview to compare stuff with each other. If there are plugins WS should support in future, the plugin must be MySQL based, and if there are enough requests.

    What you mean with "modular system" ?

    These are plug-ins that anyone can create and throw into the modules folder to view any MySQL data or other forms of data that is provided. At this time there are some areas that require more then just creating ("functions.php, config.php, and api.php"), later down you will see information on how to create your own plug-in extension. WS supports any plug-in which collects data with MySQL. The following plugins are already supported:

    What are the requirements of WS?

    - A website.
    - PHP (tested with v5.2.5 and above) * not know now
    1. PHP GD - For linux users, 'sudo apt-get install php5-gd' then restart apache.
    2. PHP Curl - For linux users, 'sudo apt-get install php5-curl' then restart apache.
    3. Your INI file shows variables_order = "GPCS", however we would like it to be "EGPCS"
    - MySQL

    And for the noobs use xampp *as seen below

    Suggested:
    - XAMPP ~ sets up everything for you.
    - EasyPHP ~ sets up everything for you.
    - Ping MOTD ~ Plugin that seems to never brake, try it out.
    - PHPMyAdmin ~ Allows for use of MySQL commands from the browser anywhere in the world.
    Installation:
    1~Extract the zip file in your webserver directory *most likely
    2~The fallowing directories need write permission of (chmod 777) !
    ~'\modules\player-image\image-cache\'
    ~'\modules\player-image\image-cache\player-skin\'
    ~'\config\'
    3~Open the location to website.com/{Webstats location} This will auto start a config installation. If you do not want or cannot create a admin login and password while using the "Lets's go!" button back at the main start page click "I'll pass and lose a lot of options button".
    4. If you use apache I have created a ".htaccess" file that blocks hot-linking. You will need to edit it with the name of your website
    PHP:
    RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mrplows-server\.tk/ [NC]
    or
    PHP:
    RewriteCond %{HTTP_REFERER} !^http://(.+\.)?google\.com/ [NC]
    *Suggest the use of PHPMyAdmin. If you cannot make an admin username and password from the website access your MySQL. Create a database named of something of your choice I seggest WebStats. Open on your backend file system \{location of the WebStats files}\include\sql.sql and use this code in whatever way you are able to add. Then you can add all the variables -- located in the sql.sql file -- you would like to a SQL string. Do note that the password has to be MD5 so you will need to suround the password in the SQL string with MD5('password'). And lastactive and lastlogin uses this format 2013-07-04 10:22:47. Format for rank is going to be 1.

    Creation:
    To create your own plug-in extension you will need to have at lease the following:
    1: A folder with a relative name to your Minecraft plugin or some other type of project you would like to add. This will pe created in the modules folder located from the root of the folder.
    2: 3 folders name "api", "config", and "include" will required.
    3: Inside the api folder you will need to create a file named "api.php", then add in
    PHP:
    <?php include('modules/{name of the plugin}/include/functions.php');include('modules/{name of the plugin}/config/config.php');?>
    along with any other plugins you would like to tie into.
    4: Inside the config folder you will need to create a file named "config.php", then add in
    PHP:
    <?php define('WS_CONFIG_NoMySQL'false);?>
    and change to true if you are not using MySQL.
    5: Inside the include folder you will need to create a file named "functions.php", then add in any php code that you would like to use as functions to be called in the index.php file.
    6: Create a "index.php" and add functions and other data and any css you would like for this plugin.
    7: Do a pull request to WebStats, and I will add the rest.

    To-Do:
    - Finish Crafting Pages * ongoing
    - Finish Brewing Pages * ongoing
    - Add Smelting Pages
    - Remove The Achievements Tab and Move It To The Players Page With It Grayed Out and Not Showing The Requirements Until The Player Unlocks The Achievement
    - Add Rest Of ID's and Add The Extra ID's To Main ID's Page example ( 17:1 17:2 goes onto 17 page)
    - Add InventorySQL
    - Add Stats & Achievements Support
    - Add BeardStat & BeardAch Support
    - Add HawkEye Support
    - Add Statistician v2.0 Support
    - Add Smart Phone Support * iPhone, Droid.

    Current Pending Update
    v3.2(No ETA) current GitHub Source changes
    • As Place holder for now. Added Stats & Achievements ~ source
    • Fixed Login process that never killed.
    • Moved all MySQL function to mysqli since mysql was deprecated as of PHP 5.5.0. -- could have missed some.
    Will Not Add:
    -Achievement, since it does not support craftbukkit build 2126
    -Logblock, since it does not support craftbukkit build 2126 * works now but will take time to review.
    Downloads:
    Last output version: ace23a31c9.png

    Latest beta: ace23a31c9.png
    Change Log: (open)

    v3.1 (05/24/2013)
    • Added Location Info on Users Online Text in Footer.
    • Fixed Page Navigation
    • Fixed IP Tracker
    • Updated some MySQL statments
    • Updated 404 page and now is working
    • Updated ID list
    • Updated Material Stats
    • Added Support for Stats v1.071 by lolmewnstats~source
    v3.0(04/20/2013)
    • Added Admin Page.
    • Added Capability of a dynamic achievments, economy, and stats plugin change.
    • Added IP Tracker.
    • Added mcstats.org tracker.
    • Added On/Off for Player Page Plugins, this is dynamic with your selection from the installer.
    • Added Sample Config.
    • Added Smart Phone Support * iPhone(Added Foundation v3.2.2)
    • Added Smelting function and added all current. ~ (12/16/2012)
    • Added Support for Stats v1.071 by lolmewnstats ~ source
    • Added Support for MineConomy ~ GitHub
    • Fixed errors with dynamic photo. ~ GitHub
    • Updated A few items photos larger image.
    • Updated Brewing Functions, Added All Brewing Items Up To Minecraft v1.4.5 ~ (12/16/2012)
    • Updated ID page functions * still slow (using foundations) due to the amount of css.
    • Updated Config Installer with notes on what is what.
    • Updated MySQL, much more easy for people to understand *(now once more able to set databases for each plugin verse 1 for all - not recommended).
    v2.1(4/5/2012 EST 10:23AM)
    • Add PermisionsEX Support
    • Fixed PHP Errors Showing For The Banner Photo.
    • Fixed McMMO Images Only Showing Under Some Servers. *Thanks To beleg
    • Fixed Main Menu Problem.*Thanks To holsamoht
    • Added McMMO Skill Bar.
    • Added McMMO Power Level.
    March Changes (open)

    v2.0 (3/29/2012 EST 1:--PM)
    • Changed PHP Errors.
    • Fixed Code Making PHP Errors In Some Settings.
    • Added A Background, (not the best shape) For 3D Players
    v2.0-Delta (3/26/2012 EST 8:--PM)
    • Fixed Players Not Being Shown On Material Page.
    • Added Search Feature*works to ID page.
    • Added Search For Players in Any Plugin.
    • Added Jail.
    • Re-Added Return To Homepage.
    v2.0-gamma (3/21/2012 EST 4:51PM)
    • Added Ping To Website.
    • Added Dynamic Photo.
    • Added Players Online, MOTD.
    • Improved Installer.
    • Removed Some Files.
    * Please Report Any Problems Since This is Pre-Final.
    v1.9.5-source (3/19/2012 EST 11:45AM)
    • Removed Uneeded Files
    • Fixed Menu jQuery ~ Dynamic Index still needed
    • Source Files
    * Plugin Is Still Not being Dev. Fully.
    v1.9 (3/19/2012 EST 11:30AM)
    • Added The Installer Locally.
    • Reloaded v1.9 - Has Raw Source Data Now ~ Plugin Terminated For Now
    v1.8b ~ (3/13/2012 EST: 8:18PM)
    • Introducing Install page - Outsourced
    • Minor CSS Fixes
    • Fixed No Data In MySQL Loading Crash
    • Added Session For Player Search
    v1.7.3 ~ (3/9/2012)
    • Fixed Style On Player Page.
    • Moved Achievements To Player Page.
    • Fixed ID Page Dynamic Search Box 90% Done.
    • Fixed Background Not Loading On ID Page.
    • Fixed Slow Code
    * Known Bug ~ Menu No Being Dynamic.
    v1.7.1.1 ~ (3/8/2012)
    • Shortend some code.
    • Fixed Player Page Hide and Show.
    v1.7.1 ~ (3/8/2012)
    • Added Bookmark - with current page location.
    • Added Some Recipes.
    • Added Live Search Code To Be Added.
    • Changed Location of Player Search Box.
    • Changed Background From .jpg To .png ~ Decreased Size.
    • Deleted Unused Files.
    • Fixed Backgrounds Not changing on click.
    • Added Some new Style.
    * Known Problem Background Does Not change in ID LIST page.
    v1.6.5 ~ (3/3/2012)
    • Fixed Some Errors in McMMO.
    • Changed Some Photo Sizes.
    • Added New Creatures * 'Minecraft V1.2.2'
    • Added Some Recipes.
    • Added McMMO Onto Profile Page.
    • Added Code To Turn Off 3D File From Being Used By Others When Turned Off * will add localhost only if needed.
    • Deleted Unneeded Items.
    v1.6 ~ (3/1/2012)

    • Added Brewing Recipe config.
    • Added Some Brewing Recipes.
    • Added Some New Crafting Recipe.
    • Added Photos of Items.
    • Cleaned Up Code.
    • Fixed McMMO.


    February Changes (open)

    v1.5.2 ~ (2/27/2012)
    • Added 3d on and off in the config*
    • Added Some Names to ID's in The Stats.
    • Cleaned up code.
    * 3d Photos may be slow on some servers.
    v1.5.1 ~ (2/27/2012)
    • Removed Un-Needed Files.
    • Removed CSS Widths File to Make Only 1 File.
    • Deleted Flags Folder.
    v1.5 ~ (2/26/2012)
    • Added 3d players *No config yet to turn on and off. But info on how is in the config file.
    • Some Code Fixes.
    • Added Some New Files That Are Needed.
    v1.4.9.5
    • 3d players almost done works 100% just not linked to player page.
    • Fixed some code
    • Fixed cursors not working in all browsers
    v1.4.9
    • Fixed achievement install - will not change unless the MySQL does.
    • Cleaned up code.
    • Added index.php file change to index.installed when you run the achievements-install and it works (so that you don't have to delete the file).
    v1.4.7
    • Changed background input option.
    • Added items to the Stats plugin page.
    • Fixed item photo viewing in material.
    • cleaned up code.
    v1.4.6
    • Added cursors for page.
    • Google translate * just testing this.
    • added php requirement code.
    • added MySQL error code.
    • cleaned up code.
    v1.4.5 ~ (2/19/2012)
    • Updated way to change background.
    • Added more backgrounds.
    • Fixed Achievement install.
    • Added Error Codes for Achievement install page.
    • Added Code For Ads On The Page.
    • Changed All Config Files To One Config File in 'config/config.php'.
    • Cleaned up code.
    • Added a return to main page icon.
    • Added new item id's * 381-385 and item 200.
    • Added new item images.
    • Added link to http://www.minecraftwiki.net for all English items.
    • Added titles to all pages.
    • Added Link To McMMO wiki On The Title.
    • Added Hover Pop Up Text.



    [​IMG]

    Donate to my BitCoin Address:
    1HH7ovyk2LY6SpSHEWFkde8pvuHXmaD2Bd

    What Browser Does This Work With?
    Known
    *At least... Please Post otherwise. Thank You.
    This is using HTML5 in some areas, but the main areas are not so that everyone can view.
    - IE9+, Firefox 1.5+, Opera 8+, Safari 3+, Chrome 0.2+

    **DOWNLOADING FROM ANY SOURCE, FOR COMMERCIAL USE IS PROHIBITED. IF YOU NEED THIS PROJECT FOR COMMERCIAL USE, YOU WILL NEED TO PURCHASE A LICENSE. BY DOWNLOADING THIS PROJECT YOU AGREE TO THESE TERMS.
    **I HAVE A LAWYER, IF THERE IS ANY PROBLEM.
     
  2. Offline

    beleg

    Hi, nice to see this activ :)
    Could you create a poll here for the next module..?
    All I want is mcMMO support :)
     
  3. Offline

    cky2250

    beleg
    i am working on geting it to work
     
  4. Offline

    beleg

    okay and we need a Stats plugin? Link please
     
  5. Offline

    cky2250

    the stats plugin is bad someone needs to rework the code.

    McMMO is 75% done, but i have an english paper, and a calc test coming up.

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

    minejames1

    Hi There,
    Great plugin! I know McMMO is broken, (www.jaycraft.co/stats) when do you think it will be fixed?
    Thanks,
    James Allison
     
  7. Offline

    cky2250

    No idea I know I can re write it, but then I will have to re write the whole plugin. Right now I am going to copy the same layout as iConomy since that one works. I believe it is the sort comand since it print out the same data.

    I am going to take a break from this for some time, what I have updated I will post in the next few days.

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

    patey

    my furniture gets packed today, ill be moved into my new house and have internet back hopefully by next week then i can start helping with this,.

    glad to see your making good progress with the mcmmo module, are you planning to keep the multiple languages?
     
    cky2250 likes this.
  9. Offline

    cky2250

    I dont know If I switch to the google one everyone can use this, but the problem is that google does not translate 100%. Also the way this is coded is that it saves a cookie on the computer so the only way to use it is by refreashing after it loads.
     
  10. Offline

    patey

    maybe use one central "loacalization" file users can customize? translations could be community done then if needed, kinda just throwin out ideas not sure if or how it would work atm if it was done that way.
     
  11. Offline

    cky2250

    What do you mean? Right now it is fine. I was just throwing out the idea of Google.
     
  12. Offline

    dwi

    No icons for new mobs/animals/blocks?
     
  13. Offline

    cky2250

    i added items 381-385 and item 200
     
  14. Offline

    patey

    well i've seen ways of doing the pages so that all the text is generated from a file of defined stuff-

    ex. for it to show the names of different modules in french it would check the french file for the name of the module in french, and you would just define your language in the main config

    i'm not sure if itd be a good idea, just something to look into

    **edit** just gotta point out i'm horrible at explaining things lol
     
  15. Offline

    cky2250

    patey
    it is already like that.

    ok 8 new monsters will be added after some time

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

    patey

    oops -.- got it mixed up with another project im working on, my bad.

    for the actual translations itd be easier to use google translate and users who use that language can report mis-translations
     
  17. Offline

    cky2250

    just want to let you know i have made a breakthrew in the mcmmo. I have learned that the code $output was not working at the best
     
  18. Offline

    bootscreen

    hy, is it possible to get support for this plugin: achievement ?
     
  19. Offline

    cky2250

    once I get mcmmo working and that achievement plugin works on minecraft v1.2 i will add it.
     
  20. Offline

    bootscreen

    this sounds like a plan, thanks =)
     
  21. Offline

    cky2250

    wow it was working when i went to upload now it is not. it works with every browser but IE
     
  22. Offline

    minejames1

    Ah well, IE is only for downloading other browsers
     
    BradleyDS2 likes this.
  23. Offline

    dwi

    Can someone post me exact version of Stats plugins, which are working with Webstatistics? Without this nonsenses?

    [​IMG]

    or this

    [​IMG]
     
  24. Offline

    cky2250

    dwi

    that would be the first stats plugin
     
  25. Offline

    dwi

    cky2250

    This one? You say it's not working too, so I'm quite confused...
     
  26. Offline

    cky2250

    dwi
    ok i will re word that, it works with that stats just not the latest craftbukkit build
     
  27. Offline

    dwi

    cky2250
    So I can't use latest recommended build of CraftBukkit if I want to have Stats?
     
  28. Offline

    cky2250

    I will fix the mob pic. But the extra item numbers that do not exist i can fix but would be pointless, since it is the plugins fault. And Yes you cannot use the latest builds with stats. It will not load and give errors. Find someone to fix it for the latest build
     
  29. Offline

    dwi

    cky2250
    I have latest Craftbukkit with Stats 2.0 and everything is working okay, no errors at all.

    About those ID's, for example id 109, 109:1, 109:2 and 109:3 is still Stairs block, That "data" thing after that is "Orientation".

    Same with Nether Wart, 115:1, 115:2, 115:3 is all the same Nether Wart thing, just :1, :2 and :3 means size of it.

    It is not Stats plugin error, its a feature.

    You can check wiki (http://www.minecraftwiki.net/wiki/Data_values#Data) and see, what items can have data values (number after ":").

    Of course wool have different color for different number and potion have different name/effect for different number but almost rest of it are same blocks. Shouldn't be hard to fix. I would do it myself, but I don't know, how for example merge block ID's 115,115:1,115:2,115:3 to only one block called Nether Wart
     
  30. Offline

    cky2250

    dwi

    wow ok when i was talking to the orig creator of this/stats 2.o he said it was an error in the plugin. now that you are saying this I will fix it when i have the time.

    Most of what i am doing is putting comments in to try and reverse engineer the code that has been made. I am also going to add 3d players in as an option so people can view that. As seen here.

    dwi
    This really is an easy code to fix just adding the name to the decode file lol. But i am going to add the 3d player before I post new update. Unless it takes too long.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 24, 2016
Thread Status:
Not open for further replies.

Share This Page