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

[ANY] Player Analytics


Post New Thread Reply   
 
Thread Tools Display Modes
AeroAcrobat
AlliedModders Donor
Join Date: Apr 2011
Location: lives in a circus
Old 03-22-2014 , 22:07   Re: [ANY] Player Analytics
Reply With Quote #91

- Whats quickplay_22 etc. ? Does the number mean something ?
- I've always 100% premium but that's not possible because I'm very sure that I've gotten some f2p players.
__________________
AeroAcrobat is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 03-22-2014 , 23:41   Re: [ANY] Player Analytics
Reply With Quote #92

Quote:
Originally Posted by AeroAcrobat View Post
- Whats quickplay_22 etc. ? Does the number mean something ?
- I've always 100% premium but that's not possible because I'm very sure that I've gotten some f2p players.
- The number is how many times the client has used Quickplay since they last launched the game. So for example, if I launch TF2 and use Quickplay, it'll be quickplay_1. If I disconnect and use it again, it's quickplay_2. And so on.

- I think SteamTools is currently broken, so F2P/Premium status won't be accurate.
__________________
Dr. McKay is offline
braak0327
AlliedModders Donor
Join Date: Dec 2012
Location: NORT....SOUTH KOREA
Old 03-23-2014 , 06:34   Re: [ANY] Player Analytics
Reply With Quote #93

Parse error: syntax error, unexpected T_CONST in C:\Web\www\analytics\include\config.php on line 28

I correctly insert STEAM_APIKEY with my key
But still have that error please fix

Link : http://www.bbagwang.com/analytics
__________________
I'M KIMCHI
braak0327 is offline
Send a message via Skype™ to braak0327
DrFallen
AlliedModders Donor
Join Date: Jul 2013
Location: ./root
Old 03-23-2014 , 09:48   Re: [ANY] Player Analytics
Reply With Quote #94

Quote:
Originally Posted by braak0327 View Post
Parse error: syntax error, unexpected T_CONST in C:\Web\www\analytics\include\config.php on line 28

I correctly insert STEAM_APIKEY with my key
But still have that error please fix

Link : http://www.bbagwang.com/analytics
Are you sure it looks like 'Key'; You may of just missed punctuation.
DrFallen is offline
rannmann
Junior Member
Join Date: Jan 2013
Old 03-23-2014 , 13:27   Re: [ANY] Player Analytics
Reply With Quote #95

Considering the config file is only 9 lines, I'm not sure how line 28 would be throwing an error. I haven't touched a Windows-based webserver since 2010 or so though, and I've certainly never developed on them, so maybe the error message is strange because of that.

This was the entirety of the config example file in the last package:

PHP Code:
<?php

define
(PA_DATABASE_SERVER,      'localhost');
define(PA_DATABASE_USER,        'user');
define(PA_DATABASE_PASSWORD,    'password');
define(PA_DATABASE_NAME,        'player_analytics');


?>
I'm working on a much better analytics page now, but I'm also in the process of moving so I'm not sure when it will be done. It has been almost entirely re-written to be a single page, ajax-driven, and utilize heavy caching (meaning a daily cron job will take a while, but page load times will take fractions of a second rather than 1-10 seconds).

I'll do my best to keep Windows in mind, but it's not really something I'm familiar with. AFAIK though, the only issues will be with directory separators (includes/requires), which is easy enough to fix and doesn't seem to be related to the error you're having.
rannmann is offline
DrFallen
AlliedModders Donor
Join Date: Jul 2013
Location: ./root
Old 03-23-2014 , 15:46   Re: [ANY] Player Analytics
Reply With Quote #96

Quote:
Originally Posted by rannmann View Post
Considering the config file is only 9 lines, I'm not sure how line 28 would be throwing an error. I haven't touched a Windows-based webserver since 2010 or so though, and I've certainly never developed on them, so maybe the error message is strange because of that.

This was the entirety of the config example file in the last package:

PHP Code:
<?php

define
(PA_DATABASE_SERVER,      'localhost');
define(PA_DATABASE_USER,        'user');
define(PA_DATABASE_PASSWORD,    'password');
define(PA_DATABASE_NAME,        'player_analytics');


?>
I believe its the one from Pickles

Quote:
Originally Posted by Pickles47 View Post
Here is an update. SQL scripts in sql folder, you should delete them after you add them to your database.

Added:
  • Login system, login as admin with password
  • Server management now down through servers page. You can only add/modify/delete server details if server exists in player_analytics database. Only a problem if your database is empty.
  • Added maps page. No map images are included to keep the file size small. Add maps to images/maps directory. Filename should = map name ie. ctf_2fort.jpg.
  • Changed CSS, you can easily change colors from player_analytics.css
  • Can now search players by steamid.
Install:
  • You will need to execute the sql scripts in the install directory to add the appropriate tables to database.
  • Config.php has been moved to includes folder, you will need to add your database details there.
  • Once you login you can add new users(1) or admins(9). Admins can edit server details and users. Users can only view pages.
Demo here User:admin Pass:password

Separate attachment for TF2 maps images.

*I believe I squashed most bugs, though you may encounter some.
**Fixed vulnerabilities and minor css issues.
***
Fixed issue with adding server in Google Chrome. Attached new servers.php page.
Its the latest one that I could see to. Config.php contains 267 lines.
DrFallen is offline
rannmann
Junior Member
Join Date: Jan 2013
Old 03-24-2014 , 12:19   Re: [ANY] Player Analytics
Reply With Quote #97

Quote:
Originally Posted by DrFallen View Post
I believe its the one from Pickles



Its the latest one that I could see to. Config.php contains 267 lines.
Sorry, I don't really use this site so I haven't followed the thread at all. But if it's someone else's code, then I'm not the right person to support it (so please stop messaging me on Steam). When I get the next version out, I'll try to remember to watch this thread. Plus I'll make the repo public and allow issues to be created through github.

Until then, just ask Pickles!

Oh, and to Pickles: thanks for picking up the project and filling the holes/bugs!
rannmann is offline
DrFallen
AlliedModders Donor
Join Date: Jul 2013
Location: ./root
Old 03-30-2014 , 18:28   Re: [ANY] Player Analytics
Reply With Quote #98

Quote:
Originally Posted by rannmann View Post
Sorry, I don't really use this site so I haven't followed the thread at all. But if it's someone else's code, then I'm not the right person to support it (so please stop messaging me on Steam). When I get the next version out, I'll try to remember to watch this thread. Plus I'll make the repo public and allow issues to be created through github.

Until then, just ask Pickles!

Oh, and to Pickles: thanks for picking up the project and filling the holes/bugs!
Great Sadly the newest one by pickles doesn't seem to work for me so i'll be looking forward to you new one.
DrFallen is offline
asdfxD
Veteran Member
Join Date: Apr 2011
Old 03-30-2014 , 18:35   Re: [ANY] Player Analytics
Reply With Quote #99

always a blank site in browser www.site.com/connections/

i have to write it manually /connections/main.php and /connections/index.php

fix??

Last edited by asdfxD; 03-30-2014 at 18:37.
asdfxD is offline
mikehawk
Member
Join Date: Feb 2011
Old 03-30-2014 , 22:22   Re: [ANY] Player Analytics
Reply With Quote #100

I had this working and then uploaded Pickles package. Started getting the white screen and a log full of errors.

If you are running Pickles updated version, remove config.php from the root folder. You should already have it in the include folder. Just make sure you have your database info in include/config.php After that you have to fix main.php . It have fundamental flaws in it dealing with sending headers in php. Replace the contents of main.php with this:

PHP Code:
<?php
/**
 * Main.php
 *
 * This is an example of the main page of a website. Here
 * users will be able to login. However, like on most sites
 * the login form doesn't just have to be on the main page,
 * but re-appear on subsequent pages, depending on whether
 * the user has logged in or not.
 *
 * Written by: Jpmaster77 a.k.a. The Grandmaster of C++ (GMC)
 * Last Updated: June 15, 2011 by Ivan Novak
 */
include("include/session.php");
$page "main.php";
/**
 * User has already logged in, so display relavent links, including
 * a link to the admin center if the user is an administrator.
 */
if($session->logged_in){
    
//echo "logged in" ;
    
header('Location: index.php');
}
else{
?>

<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>Player Analytics</title>
    <!-- Bootstrap core CSS -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <!-- Add custom CSS here -->
    <link href="css/signin.css" rel="stylesheet">
</head>
<body>

<div id="main">

<div id="login">
    <div class="container">
            <?php
            
/**
             * User not logged in, display the login form.
             * If user has already tried to login, but errors were
             * found, display the total number of errors.
             * If errors occurred, they will be displayed.
             */
            
if($form->num_errors 0){
               echo 
"<div class=\"alert alert-danger\">".$form->num_errors." error(s) found</div>";
            }
            
?>
      <form class="form-signin" action="include/process.php" method="POST">
        <h2 class="form-signin-heading">Please sign in</h2>
        <?php echo $form->error("user"); ?>
        <input type="text" name="user" maxlength="30" class="form-control" placeholder="Username" value="<?php echo $form->value("user"); ?>" required autofocus>
        <?php echo $form->error("pass"); ?>
        <input type="password" name="pass" maxlength="30" class="form-control" placeholder="Password" value="<?php echo $form->value("pass"); ?>" required>
        <input type="hidden" name="sublogin" value="1">
        <button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
      </form>
      <p style="text-align:center"><br/><a href="forgotpass.php">Forgot Password?</a></p>
    </div> <!-- /container -->
</div><!-- #login -->
<?php
}
?>
</div><!-- #main -->
    <script type="text/javascript">
        jQuery(function($){
            <?php
            
if(isset($_GET['hash'])){
                
$hash $_GET['hash'];
            } else {
                
$hash '';
            }
            
?>
            jp_hash = ('<?php echo $hash?>'.length)?'<?php echo $hash?>':window.location.hash;
            if(jp_hash){
                $.ajax({
                    type: "POST",
                    url: 'process.php',
                    data: 'login_with_hash=1&hash='+jp_hash,
                    success: function(msg){
                        if(msg){
                            alert(msg);
                            window.location.href = "main.php";
                        } else {
                            alert("Invalid Hash");
                        }
                    }
                });
            }
        });
    </script>
</body>
</html>
Not sure if this will fix other peoples problems but it fixed mine.
mikehawk is offline
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 10:00.


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