Longjumps Web Stats

Started by MaHy
14/05/2009 20:43
Page 1 of 3
MaHy14/05/2009 20:43(edited 25/08/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]

SchlumPF15/05/2009 01:05

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

eMTi15/05/2009 14:38

127.0.0.1 = local host. hf schlumpf :P

Oddi^15/05/2009 17:36

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

MaHy15/05/2009 18:04(edited 15/05/2009 18:09)

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

SchlumPF15/05/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...

MaHy15/05/2009 20:20

ok i will remove this column soon and update.

Reymon15/05/2009 23:20

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

MaHy16/05/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

nPoc7o o7k@4eH16/05/2009 04:42

Joob job. I will test soon

kielorz16/05/2009 09:04

release climb top15 :D

berix16/05/2009 10:58

nice, gj

MaHy16/05/2009 14:42

updated. (remove ip column)

BAAAWS19/05/2009 18:58(edited 20/05/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

Reymon29/05/2009 01:03

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

^nevermoRe03/06/2009 15:59

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

Acidas07/06/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.

MaHy18/08/2009 03:57

//UPDATED

berix18/08/2009 11:03

mahy gj:)

MaHy18/08/2009 16:16

thx

Page 1 of 3

Please log in to post replies.