AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   HLstatsX:CE (https://forums.alliedmods.net/forumdisplay.php?f=156)
-   -   Top HLStatsX Players universal script (https://forums.alliedmods.net/showthread.php?t=257836)

Touch 02-09-2015 04:26

Top HLStatsX Players universal script
 
1 Attachment(s)
Hello! I want to publish my script to display the latest statistics from the hlstatsx players.

Features
  • Not using jQuery and other large libraries
  • Runs entirely on Ajax
  • Very easy to set up
  • Can be used absolutely anywhere (using frames)

Requirements
  • PHP 5.4 or higher
  • Installed hlstatsx

Installation
  • Copy all files to any dir in your web-server.
  • Configure include/config.php file (and include/database.class.php for database)
  • Add following code to display (e.g. to xenforo right block):

Code:

<iframe src="PATH_TO_SCRIPT/?game=GAME_TYPE" width="245" height="290" frameborder="0" scrolling="no">
</iframe>

Screenshots:

https://camo.githubusercontent.com/b...732f312e706e67

https://camo.githubusercontent.com/5...732f322e706e67


Github: https://github.com/Bathead/top-hlstatsx-players

I will be glad to any improvements, suggestions and comments!

VsX 02-09-2015 19:29

Re: Top HLStatsX Players universal script
 
really nice!
thank You :-)

Mapeko 02-15-2015 12:21

Re: Top HLStatsX Players universal script
 
Hello, your plugin is very usefull. But i have problem what i cant do it.

Parse error: syntax error, unexpected '[' in /data/web/virtuals/25900/virtual/www/domains/playsector.eu/hlx/core.php on line 95

can you help me please?

link: http://www.playsector.eu/hlx/?game=dods

Touch 02-15-2015 12:29

Re: Top HLStatsX Players universal script
 
Quote:

Originally Posted by Mapeko (Post 2262576)
Hello, your plugin is very usefull. But i have problem what i cant do it.

Parse error: syntax error, unexpected T_DOUBLE_ARROW in /data/web/virtuals/25900/virtual/www/domains/playsector.eu/hlx/core.php on line 95

can you help me please?

Hello! Thank you for using the script. 95% of what you have PHP 5.3.
For the script must be PHP 5.4 and higher.
Show the contents of the function phpinfo();

Mapeko 02-15-2015 13:18

Re: Top HLStatsX Players universal script
 
Thank you for so early answer :) I had 5.3 PHP, i changed it for 5.4 in webhost menu i have to wait few minutes for the system...

It working very well.

Spasiba ;)

Stylee32 02-15-2015 18:22

Re: Top HLStatsX Players universal script
 
I'm been looking for something like this!
Could it be modified to just display steamids?

Touch 02-15-2015 19:15

Re: Top HLStatsX Players universal script
 
Quote:

Originally Posted by Stylee32 (Post 2262686)
I'm been looking for something like this!
Could it be modified to just display steamids?

Yes of course. All source code is available in the first message.

Touch 02-15-2015 19:16

Re: Top HLStatsX Players universal script
 
Quote:

Originally Posted by Mapeko (Post 2262597)
Thank you for so early answer :) I had 5.3 PHP, i changed it for 5.4 in webhost menu i have to wait few minutes for the system...

It working very well.

Spasiba ;)

Not at all.

Vsegda rad :)

sirc86 12-02-2016 09:24

Re: Top HLStatsX Players universal script
 
Hello,

PHP Fatal error: Call to a member function query() on a non-object in /home/gamegat1/public_html/top/include/model.class.php on line 27

How do I fix this error?

Host info:
PHP Version: 5.6.28
MySQL Version: 10.1.18-MariaDB-cll-lve
Apache Version: 2.4.23

Touch 12-02-2016 09:28

Re: Top HLStatsX Players universal script
 
Quote:

Originally Posted by sirc86 (Post 2474537)
MySQL Version: 10.1.18-MariaDB-cll-lve

Hello, maybe problem is in MariaDB. Can you install native MySQL (not MariaDB)?


All times are GMT -4. The time now is 09:24.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.