Comments (11)
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.
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.
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.
Damit, I leftover a line from the cms. Replace:
'$pContent->GetString($text);'
with:
'echo $text;'
in both files and it should work.
from logblock.
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.
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.
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.
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.
You are missing a semicolon in the line before
from logblock.
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.
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)
- mysql firstlogin, lastlogin, onlinetime, ip HOT 2
- MySQL support broken on paper 1.19.4 HOT 8
- Updater Error HOT 4
- MariaDB 11 Breaking Changes
- java.lang.IllegalArgumentException: Could not parse data: minecraft:cauldron[level=0] HOT 1
- Prefixes for bedrocks players removed HOT 6
- Feature request: Detailed Block Log HOT 1
- Custom Plugins startup directory
- Update HikariCP
- Don't shade, use plugin.yml libraries HOT 1
- Supported api-version
- [Refactoring] SQL HOT 1
- [Refactoring] Translations HOT 1
- Logblock not initializing - duplicate element: SKELETON_WALL_SKULL
- Suggestion: project pages
- Feature: Log player item drops/pickups.
- deleted
- deleted
- Putting items into decorated pots isn't being logged
- Trying to shift click items in or out of containers is being logged even if container or inventory was already full
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logblock.