Giter Club home page Giter Club logo

Comments (11)

Jayyy1212 avatar Jayyy1212 commented on July 19, 2024

Here is what my setup looks like.

    $verbindung = mysql_connect('brohoster.com', 'JAREDK', 'passwordremoved') or die('Verbindung zur Datenbank konnte nicht hergestellt werden');
    $db_select = @mysql_select_db('TC15376800034007203363440');

Also, when I run lbplayerstats.php, I get the following error:
Fatal error: Call to a member function GetString() on a non-object in /home/jared22/public_html/stats/lb/lbplayerstats.php on line 191

http://www.peoplesminecraftserver.com/stats/lb/lbplayerstats.php
http://www.peoplesminecraftserver.com/stats/lb/stats.php

Thanks.

from logblock.

DiddiZ avatar DiddiZ commented on July 19, 2024

Most likely the server is wrong.
When the database is on the same machine as the webserver you can use localhost.
When not, look which server is used for mcmmo stats, or ask brohoster about remote connections.

from logblock.

Jayyy1212 avatar Jayyy1212 commented on July 19, 2024

Correct, it was the wrong server host. I contacted the provider and they gave me the updated information. I put the correct information in for the mcMMO stats and your stats. However, the McMMO stats work but the LB stats still don't work.

I get the following error:
Fatal error: Call to a member function GetString() on a non-object in /home/jared22/public_html/stats/lb/lbstats.php on line 28

http://peoplesminecraftserver.com/stats/lb/lbstats.php
http://peoplesminecraftserver.com/stats/lb/lbplayerstats.php
http://peoplesminecraftserver.com/stats/mcmmo/index.php

from logblock.

DiddiZ avatar DiddiZ commented on July 19, 2024

Damit, I leftover a line from the cms. Replace:
'$pContent->GetString($text);'
with:
'echo $text;'
in both files and it should work.

from logblock.

Jayyy1212 avatar Jayyy1212 commented on July 19, 2024

Thanks for the reply. It sorta fixed the lbstats.php.

http://peoplesminecraftserver.com/stats/lb/lbstats.php
http://peoplesminecraftserver.com/stats/lb/lbplayerstats.php

There are 3 "$pContent->GetString($text);" in the lbplayerstats.php, should I replace all three with the 'echo $text;'?

Thanks.

Also, I donated €10.00 EUR / $15.00 USD just now. Thanks again for all your help!

from logblock.

Jayyy1212 avatar Jayyy1212 commented on July 19, 2024

There is a new error in the lbplayerstats.php

Parse error: syntax error, unexpected T_ELSE in /home/jared22/public_html/stats/lb/lbplayerstats.php on line 192

from logblock.

DiddiZ avatar DiddiZ commented on July 19, 2024

Most likely a syntax error in the line before. Try this:

    if ($timeSinceLastCall  < 10000)
        echo 'Deine letzte Datenbankabfrage ist weniger als 10 Sekunden her, du musst noch ' . round((10000 - $timeSinceLastCall) / 1000, 2) . 's warten.<br><br><a href="?' . $_SERVER['QUERY_STRING'] . '">Weiter</a>';
    else if (!isset($_GET['player']))
        echo 'Kein Spieler angegeben.';
    else {

I'll also fix the template.

from logblock.

Jayyy1212 avatar Jayyy1212 commented on July 19, 2024

New error: Parse error: syntax error, unexpected T_VARIABLE in /home/jared22/public_html/stats/lb/lbplayerstats.php on line 217

http://peoplesminecraftserver.com/stats/lb/lbplayerstats.php
The playerstats.php: http://pastebin.com/LnV1czWB

from logblock.

DiddiZ avatar DiddiZ commented on July 19, 2024

You are missing a semicolon in the line before

from logblock.

Jayyy1212 avatar Jayyy1212 commented on July 19, 2024

Added the semi-colon and it got rid of the error. I'm sure you're aware, but clicking on a name doesn't take you anywhere and the sorting bar don't work.

If you release an updated version of this, that would be awesome. It's really taxing on a server to run logblock AND stats. I'll stay tuned.

Thanks again for the awesome plugin and your help. Did you receive my donation?

from logblock.

DiddiZ avatar DiddiZ commented on July 19, 2024

You've a wrong url:
http://peoplesminecraftserver.com/stats/lb/lbstats.php?page=lbplayerstats&player=Atroxdeus
instead of:
http://peoplesminecraftserver.com/stats/lb/lbplayerstats.php?player=Atroxdeus

Sry for the bad template, but it was made for a cms

from logblock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.