Longjumps Web Stats

Started by MaHy
14 May 2009, 20:43
Page 1 of 3
14 May 2009, 20:43(edited 25 Aug 2009, 15:50)

//UPDATED

In new version:
Fix bug with update stats after mapchange
Remove the redundancy in code
Fix bug with ` ' in names


I write a plugin which put lj top in DB and php which output result.
Example
INSTALLING:
1.copy wljs.amxx to addons/axmodx/plugins/
2.add line wljs.amxx in addons/amxmodx/config/plugins.ini
3.add this cvars with your personal settings to amxx.cfg

ljs_db_host "127.0.0.1" 
ljs_db_user "root"
ljs_db_pass "xxx"
ljs_db_name "xxx"

4.open wljs.php and edit settings
define("DB_HOST", "127.0.0.1"); 
define("DB_USER", "root");
define("DB_PASS", "xxx");
define("DB_NAME", "xxx");

5.copy wljs to your web server

download plugin
download php

New version of php part:
1.Add server name at top of page.
2.reduced quantity of signs after a comma.
3.optimize code.
[SIZE="24"]Big thanks to kib0rg for that[/SIZE]

15 May 2009, 01:05

never give aways someones ip like you do... its their business whether they publish their ip or not :X

15 May 2009, 14:38

127.0.0.1 = local host. hf schlumpf :P

15 May 2009, 17:36

I think he meant the ip's at the example.

15 May 2009, 18:04(edited 15 May 2009, 18:09)

SchlumPF, if you mean IP in example, i can edit php and delete ip column

15 May 2009, 18:12

i just mean you shuldnt show the ip in the top15, show nick and maybe steamid if this plugin "supports" steam. if you need the ip to save the data everything is fine but simply publishing ips...

15 May 2009, 20:20

ok i will remove this column soon and update.

15 May 2009, 23:20

SQL_NextRow You need that in the while of SQL_MoreResults And you can use update :D

16 May 2009, 00:55

if(!SQL_MoreResults(query))
i just check query for result
why i need sql_nextrow?
p.s. this is my first sqlx plugin

16 May 2009, 04:42

Joob job. I will test soon

16 May 2009, 09:04

release climb top15 :D

16 May 2009, 10:58

nice, gj

16 May 2009, 14:42

updated. (remove ip column)

19 May 2009, 18:58(edited 20 May 2009, 14:27)

try to remove the redundancy in your code
you can reduce the filesize to a fifth =)

also if you're checking the same variable to different values a few times in a row, don't use if-statements, use switch-statements instead

29 May 2009, 01:03

Take a look: http://forums.alliedmods.net/showpost.php?p=779266&postcount=240

3 Jun 2009, 15:59

i have on my server lj stats by Exolent cani use these web stats??

7 Jun 2009, 14:58

Originally posted by Puzzle
i have on my server lj stats by Exolent cani use these web stats??


I think that you cant, because these stats are based on numbs and lt.rat's plugin.

18 Aug 2009, 03:57

//UPDATED

18 Aug 2009, 11:03

mahy gj:)

18 Aug 2009, 16:16

thx

Page 1 of 3

Reply

Please log in to post replies.