[INACTIVE][INFO/WEB] mcMMO Web Stats v1.1 - A web-based view of your mcMMO Stats [0-556+]

Discussion in 'Inactive/Unsupported Plugins' started by FiZi, Mar 24, 2011.

  1. Offline

    FiZi

    [INFO/WEB] mcMMO Web Stats v1.1 - A web-based view of your mcMMO Stats [0-684]
    Version: v1.1

    mcMMO Web Stats is a simple PHP page you can link to directly or include in an existing page to display the mcMMO stats of every player on your server. Think of it like a character sheet for your players.

    Features:
    • Lists mcMMO stats of each player on your Minecraft server in a simple HTML table
    • Easy to configure!
    • Link to the page directly or include it in an existing page on your website
    • Compatible with mcMMO 0.9.2 and newer (chances are it works on older versions as well)
    Download
    MD5: d1740c75d9741f60c83da7f5708f1b82
    SHA1: 01e9219203f115734fcd0f6bcdd6b864d888dcca
    Source Code can be found in the download

    Screenshot
    mcMMOPlayerStatsScreenshot01.png

    Changelog:
    Version 1.1
    • Better code for checking for unset values and displaying a 0 (Thanks Digi)
    • Tested with mcMMO 0.9.10
    • Cleaner error handling (Again thanks Digi)
    • Fixed a problem where the skills weren't being read in the correct order. Turns out Herbalism XP wasn't being counted. This fix doesn't effect the displaying of stats and is really just for completeness.
    Version 1.0
    • Initial release
     
    Rytharr likes this.
  2. Offline

    fantarn

    When i try to open it i get this error :

    Error: I can't read the 'mcmmo.users' file. Please check your permissions and try again.

    How can i make a file public via FTP ?
     
  3. Offline

    Cydox Master

    I dont work!
    I get a wronge message. Server has permission to read and write on userfiles.

    Messages:

    ) [Ignore those backslashes in the example] // OR link directly to this file somewhere on your website // // Configuration section // ---------------------------------------------- // Fill out the full path to your 'mcmmo.users' file. Keep in mind that what ever account your webserver runs under must have at least // read-only access to the file. // Example: '/home/sa_minecraft/minecraft/plugins/mcMMO/mcmmo.users' $mcMMOPlayers = '/minecraftbukkit/plugins/mcMMO/mcmmo.users'; // Some quick error checking. Make sure the script is actually configured correctly. if (empty($mcMMOPlayers)) { die ('
    Error: Looks like you didn\'t configure $mcMMOPlayers.
    '); } // Make sure we can read the mcmmo.users file if (!fopen($mcMMOPlayers, "r")) { die('
    Error: I can\'t read the \'mcmmo.users\' file. Please check your permissions and try again.
    '); } // Open up the mcmmo.users file (read-only) $handle = fopen($mcMMOPlayers, "r"); $playerFileRaw = fread($handle, filesize($mcMMOPlayers)); fclose($handle); // Print out the tables header and column titles print ''; // Loop through each line of the mcmmo.users foreach (explode("\n", $playerFileRaw) as $player) { if (!strstr($player, "#") && !empty($player)) { // If the line starts with a # then it's a comment and we can ignore it // Create a list of values in the order that they are stored in the mcmmo.users file using a colon :)) as the delimiter between each value list($username, $mining, $mySpawn, $party, $miningXp, $woodCutting, $woodCuttingXp, $repair, $unarmed, $herbalism, $excavation, $archery, $swords, $axes, $acrobatics, $repairXp, $unarmedXp, $herbalismXp, $excavationXp, $archeryXp, $swordXp, $axeXp, $acrobaticsXp, $world) = explode(":", $player); // Print out the relevant information for this player print ''; } }
     
  4. Offline

    DannyCare

    Got an issue :(

    Code:
    Warning: filesize() [function.filesize]: stat failed for http://defcongaming.minecrafton.com/mcmmo.users in /var/www/defcongaming/minecraft/mcmmo/index.php on line 48
    
    Warning: fread() [function.fread]: Length parameter must be greater than 0 in /var/www/defcongaming/minecraft/mcmmo/index.php on line 48
     

  5. I got that prob at the beginning to. Fixed it by changing the / to \ in the path to the mcmmo.users file.
     
  6. Offline

    Cydox Master

    No. IT dont work yet.

    Fault: Error: I can't read the 'mcmmo.users' file. Please check your permissions and try again.

    But the files has all rights.

    It dont work.

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

    Plague

    A long time ago this thread was warned about the CB version in title, considered inactive
     
  8. Offline

    thegofa

    Totally the best plugin, love it man !!!

    Peace out,
    TG [diamond]
     
  9. Offline

    thegofa

    OMG is that it, no more mcmmo ???
     
  10. This is a statistic web page for mcMMO, not the actual mcMMO plugin.
     
  11. Offline

    robisaks

    screenshot.jpg

    I made some more changes based on what you had.

    Changelog:

    • Rebuilt the UI (added search, pagination, etc)
    • Themable via jqueryUI Themeroller
    • moved configurations to config.php
    • renamed stats.php to index.php
     

    Attached Files:

  12. Offline

    looklee

    getmcMMOStats.php i don't torch
    and
    -----------------------------------------------------------------------------------------------------------------
    #==McMMO Configuration==
    #You can turn off excavation loot tables by turning the option to false
    #You can customize mcMMOs command names by modifying them here as well
    #This is an early version of the configuration file, eventually you'll be able to customize messages from mcMMO and XP gains
    #Fri Jun 10 02:30:36 KST 2011
    treeFellerCooldown=240
    CobblestoneItemRepairName=Cobblestone
    gigaDrillBreakerCooldown=240
    canExcavateNetherrack=true
    WoodItemRepairName=Wood Planks
    excavationXpModifier=2
    woodcuttingXpModifier=2
    globalXpModifier=1
    /mcitem=mcitem
    archeryFireRateLimit=true
    herbalismXpModifier=2
    archeryXpModifier=2
    GoldItemRepairName=Gold Bars
    canExcavateCake=true
    MySQLuserName=root
    /mctop=mctop
    acrobaticsXpModifier=2
    canExcavateDiamond=true
    /mcc=mcc
    abilityDurabilityLoss=2
    canExcavateMusic=true
    /stats=stats
    gravelToClay=true
    superBreakerCooldown=240
    /ptp=ptp
    axesXpModifier=2
    skullSplitterCooldown=240
    CobblestoneRepairItemNumber=4
    canExcavateSulphur=true
    woodcuttingRequiresAxe=true
    repairXpModifier=2
    MySQLdbName=minecraft
    MySQLdbPass=*****
    enableMySpawn=true
    GoldRepairItemNumber=266
    /mcability=mcability
    /mmoedit=mmoedit
    MySQLport=3306
    UseMySQL=true
    xpGainMultiplier=1
    canExcavateApples=true
    /addxp=addxp
    MySQLTablePrefix=mcmmo_
    /whois=whois
    pvpGivesXP=true
    DiamondRepairItemNumber=264
    IronRepairItemNumber=265
    /clearmyspawn=clearmyspawn
    canExcavateGlowstone=true
    greenTerraCooldown=240
    canExcavateEggs=true
    enableHpRegeneration=true
    enableGreenThumbCobbleToMossy=true
    DiamondItemRepairName=Diamond Ore
    IronItemRepairName=Iron Bars
    /setmyspawn=setmyspawn
    repairDiamondLevel=50
    /mcgod=mcgod
    pvpXpRewardModifier=1
    canExcavateMushrooms=true
    tamingXpModifier=2
    anvilMessages=true
    /myspawn=myspawn
    /mcmmo=mcmmo
    /invite=invite
    pvp=true
    /accept=accept
    canExcavateSlowSand=true
    berserkCooldown=240
    miningXpModifier=2
    /party=party
    feathersConsumedByChimaeraWing=10
    MySQLServer=localhost
    mySpawnClearsInventory=true
    WoodRepairItemNumber=5
    swordsXpModifier=2
    canExcavateBones=true
    unarmedXpModifier=2
    miningRequiresPickaxe=true
    serratedStrikeCooldown=240
    canExcavateCocoaBeans=true
    /mcrefresh=mcrefresh
    toolsLoseDurabilityFromAbilities=true
    ---------------------------------------------------------------------------------------------------------
    it worrk but
    i try enter site error
    Error: Looks like you didn't configure $mcMMOPlayers.
    what happen?
    please tell me what i will do?
     

    Attached Files:

  13. Offline

    Jaker232

    If this has flatfile,

    count me in.

    If not..

    Add the feature.
     
  14. Offline

    Toni

    Yeah sorry, I couldn't find the file after a webhost clear. Lost the file I think, but it seems you have a better version Digi! I say you just create your own thread, this author is not active.
     
  15. Offline

    dzekins

    is it possible to get it work without MYSQL?
     
  16. Offline

    Evotr1p197

    Do i need for this a own Homepage? :S
     
  17. Offline

    minejames1

    Hi there
    Dropbox 404! Please fix this soon, as I really want this, it looks so cool!
    - James
     
  18. Offline

    cky2250

    here i have made my own stats/mcmmo/iconomy any MySQL minecraft plugin i will add.
     
  19. Offline

    minejames1

  20. Offline

    cky2250

  21. Offline

    senne97

    download link broken
     
  22. Offline

    peti446

    why inactive ?
     
  23. Offline

    Milkywayz

    It's probably broken because in order for it to work the code would have to be updated frequently since mcmmo went through some large code changes months ago.
     

Share This Page