Raised This Month: $32 Target: $400
 8% 

[ANY] Player Analytics


Post New Thread Reply   
 
Thread Tools Display Modes
braak0327
AlliedModders Donor
Join Date: Dec 2012
Location: NORT....SOUTH KOREA
Old 02-12-2016 , 08:49   Re: [ANY] Player Analytics
Reply With Quote #281

Quote:
Originally Posted by theChaosCoder View Post
My guess is that it could be a webhost configuration problem. I don't know how to help you...

You could try this

Open your "inc/server_processing.php" file and change the lines to: ( put # in front of the 2 lines)
Code:
if(empty($_SERVER['HTTP_X_REQUESTED_WITH']) || !strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') 
{
    #header("Location: ../index.php?error=".urlencode("Direct access not allowed."));
    #die();
}
Now open this Link in your browser: (this is the ajax request)
Code:
http://bbagwang.com/analytics/inc/server_processing.php?type=getplayers&draw=1&columns[0][data]=id&columns[0][name]=&columns[0][searchable]=true&columns[0][orderable]=true&columns[0][search][value]=&columns[0][search][regex]=false&columns[1][data]=name&columns[1][name]=&columns[1][searchable]=true&columns[1][orderable]=true&columns[1][search][value]=&columns[1][search][regex]=false&columns[2][data]=auth&columns[2][name]=&columns[2][searchable]=true&columns[2][orderable]=true&columns[2][search][value]=&columns[2][search][regex]=false&columns[3][data]=total&columns[3][name]=&columns[3][searchable]=true&columns[3][orderable]=true&columns[3][search][value]=&columns[3][search][regex]=false&columns[4][data]=duration&columns[4][name]=&columns[4][searchable]=true&columns[4][orderable]=true&columns[4][search][value]=&columns[4][search][regex]=false&columns[5][data]=connect_time&columns[5][name]=&columns[5][searchable]=true&columns[5][orderable]=true&columns[5][search][value]=&columns[5][search][regex]=false&columns[6][data]=country&columns[6][name]=&columns[6][searchable]=true&columns[6][orderable]=true&columns[6][search][value]=&columns[6][search][regex]=false&columns[7][data]=premium&columns[7][name]=&columns[7][searchable]=true&columns[7][orderable]=true&columns[7][search][value]=&columns[7][search][regex]=false&columns[8][data]=html_motd_disabled&columns[8][name]=&columns[8][searchable]=true&columns[8][orderable]=true&columns[8][search][value]=&columns[8][search][regex]=false&columns[9][data]=os&columns[9][name]=&columns[9][searchable]=true&columns[9][orderable]=true&columns[9][search][value]=&columns[9][search][regex]=false&order[0][column]=3&order[0][dir]=desc&start=0&length=10&search[value]=&search[regex]=false&_=1455013915949
Now you should see a json response similar to this

{"draw":1,"recordsTotal":150196,"recordsFilte red":50897,"data":[{"id":"14960","name":"The Dark","auth":"STEAM_0: . [.....] "html_motd_disabled":"0","os":"Windows"}]}


EDIT:
There is a $Home = "/"; var in config.php. I guess you could try to change it to "/analytics" or "analytics" or "/analytics/" I don't know just try it
I tried but nothing changed but huge thanks to you! I really appreciate for your comment!

PS.I finished my bike trip now!
__________________
I'M KIMCHI
braak0327 is offline
Send a message via Skype™ to braak0327
theChaosCoder
Junior Member
Join Date: Oct 2015
Old 02-23-2016 , 09:37   Re: [ANY] Player Analytics
Reply With Quote #282

I found a cool Timeline js lib for player analytics - http://visjs.org/

Don't know if it is very usefull yet ... but this is how it could look like:


If someone wants to play with it, I attached my "ugly demo" code
The second step would be to eliminate the gaps on mapchange and merge the bars into a continuous line
Attached Files
File Type: zip pa_timeline.zip (734.6 KB, 108 views)

Last edited by theChaosCoder; 02-23-2016 at 09:43.
theChaosCoder is offline
MaloModo
Veteran Member
Join Date: Aug 2008
Old 03-24-2016 , 08:50   Re: [ANY] Player Analytics
Reply With Quote #283

Would there be any chance of perhaps adding logging of player chat as well? Always handy to have this....the current "chat Loggers" seem to different extents "broken".
MaloModo is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 03-24-2016 , 12:01   Re: [ANY] Player Analytics
Reply With Quote #284

That doesn't really have any place in this plugin.
__________________
Dr. McKay is offline
MaloModo
Veteran Member
Join Date: Aug 2008
Old 03-24-2016 , 14:17   Re: [ANY] Player Analytics
Reply With Quote #285

Well that seems to be the problem really, it doesn't seem to have a place anywhere. But it only doesn't have a place if the creator of this plugin says it doesn't have a place..which he is xD. Thanks anyhow. Have great long weekend.

Last edited by MaloModo; 03-24-2016 at 14:17.
MaloModo is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 03-24-2016 , 14:28   Re: [ANY] Player Analytics
Reply With Quote #286

Quote:
Originally Posted by MaloModo View Post
Would there be any chance of perhaps adding logging of player chat as well? Always handy to have this....the current "chat Loggers" seem to different extents "broken".
https://forums.alliedmods.net/showthread.php?p=2094150

I used to use this a couple months ago, and it worked fine for me.
sneaK is offline
uvn
Junior Member
Join Date: Dec 2015
Old 04-10-2016 , 02:07   Re: [ANY] Player Analytics
Reply With Quote #287

I am facing diffilculties adding the sql db to my php panel , anybody can give me ready example so I can just import it ?

Thank you in advance ...
uvn is offline
braak0327
AlliedModders Donor
Join Date: Dec 2012
Location: NORT....SOUTH KOREA
Old 04-10-2016 , 05:28   Re: [ANY] Player Analytics
Reply With Quote #288

I think you asking about SQL import file... well actually there is no sql *file* for the analytics (webpanel,plugins)
If you correctly fill the form in config file
The plugin automatically generate all of the information for your database and it will be ready to go
If you use this https://github.com/Sinclair47/player_analytics
For webpanel check out your config setting (database.cfg + webpanel config)
__________________
I'M KIMCHI
braak0327 is offline
Send a message via Skype™ to braak0327
uvn
Junior Member
Join Date: Dec 2015
Old 04-16-2016 , 01:15   Re: [ANY] Player Analytics
Reply With Quote #289

How do I set it to show only admins or filter them ?
uvn is offline
braak0327
AlliedModders Donor
Join Date: Dec 2012
Location: NORT....SOUTH KOREA
Old 04-16-2016 , 01:21   Re: [ANY] Player Analytics
Reply With Quote #290

Quote:
Originally Posted by uvn View Post
How do I set it to show only admins or filter them ?
Set access account for the analytics site through the webserver
__________________
I'M KIMCHI
braak0327 is offline
Send a message via Skype™ to braak0327
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:37.


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