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

[L4D & L4D2] Custom Player Stats v1.4B121


Post New Thread Reply   
 
Thread Tools Display Modes
kennyist
Member
Join Date: Jan 2010
Old 03-27-2012 , 22:08   Re: [L4D & L4D2] Custom Player Stats v1.4B117
Reply With Quote #1451

Quote:
Originally Posted by el_psycho View Post
Just use it WITHOUT an api key. Just change the lines i changed and just place an x for the api key.

I have done that but it does not work. :/

-------------------------------------------------------------------------

EDIT - Fixed config file, left an ";" out.

Also to anyone whom may be interested, I've added Google+, twitter and facebook buttons to this and they are fully configurable from the config.php. To install just replace the files you have already uploaded, Its in the right file structure already, Then its good to go.

Added config lines:

PHP Code:
// Google Plus
$contentgp "L4D and L4D2 stats"// Google plus page discription
$gp_size "Medium"// Sizes can be, Inline (24px), Small (15px), Medium (20px) and Tall (60px)
$gp_annotation ""// Leave blank for bubble, None and Inline  

// Facebook AppId, To get yours go here: http://developers.facebook.com/docs/reference/plugins/like/ - Press get code and copy the app id from this part "#xfbml=1&appId=153904504627267"  ONLY THE NUMBER!
$fbid "x";
$fbsite "Link here"// Link to your site, Or any page on your site.
$fb_send "False"// True/False - Display send button
$fb_showface "False"// True/False - Display faces of those who liked
$fb_layout "button_count"// Styles are button_count, box_count or leave blank for standard.

// Twitter settings
$twitter_name "x"// Your twitter name
$twitter_text "Check out our stats!"//Share text E.G Check out our stats!
$twitter_size ""// Large or leave blank for normall 
Example page: http://lg.site.nfoservers.com/stats/

If people are interested I will add more stuff, add more variables to change ETC. At the moment they are all on and cannot be turned off unless you edit them out, I will try to add a toggle for each, but I can't work it out at the moment.

-- Updates --
28/03 - Added 4 new config controls - Facebook button layout - Google plus size - Google plus annotation style - Twitter button size.
27/03 - Fixed config file

Kennyist.
Attached Files
File Type: zip V1.3 -L4D stats share buttons.zip (12.9 KB, 114 views)
__________________


Last edited by kennyist; 03-28-2012 at 12:44.
kennyist is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 03-28-2012 , 07:30   Re: [L4D & L4D2] Custom Player Stats v1.4B117
Reply With Quote #1452

Quote:
Originally Posted by kennyist View Post
...
Thanks! I'll take a look.
__________________
Monster Hunter

Though certainly not superhuman, the man's prowess inspires an excess of whispered rumors. But those rumors remain in the realm of speculation.

Last edited by muukis; 03-28-2012 at 07:30.
muukis is offline
Saint59
New Member
Join Date: Mar 2012
Old 03-28-2012 , 14:06   Re: [L4D & L4D2] Custom Player Stats v1.4B117
Reply With Quote #1453

Hi.
First of all thanks for L4D2-stats. It’s a great plugin.
But I have some problem with timing of maps.
Stats is inactive when I start a game alone That’s ok.
Then later on, when other players join, it starts logging stats but timer doesn’t start. Not before you opening or closing the door to the safe room in the end of the map.
That mean only a few seconds are logged in timed maps.
Is it possibly to do anything about it?
Saint59 is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 03-29-2012 , 02:36   Re: [L4D & L4D2] Custom Player Stats v1.4B117
Reply With Quote #1454

Quote:
Originally Posted by Saint59 View Post
Hi.
First of all thanks for L4D2-stats. It’s a great plugin.
But I have some problem with timing of maps.
Stats is inactive when I start a game alone That’s ok.
Then later on, when other players join, it starts logging stats but timer doesn’t start. Not before you opening or closing the door to the safe room in the end of the map.
That mean only a few seconds are logged in timed maps.
Is it possibly to do anything about it?
Ahaa... so that's how that bug occurred. Thanks for the input! I'll fix that too for the next update, which I hope to get done soon.
__________________
Monster Hunter

Though certainly not superhuman, the man's prowess inspires an excess of whispered rumors. But those rumors remain in the realm of speculation.
muukis is offline
el_psycho
Member
Join Date: Feb 2012
Location: Vancouver, Canada
Old 03-29-2012 , 19:25   Re: [L4D & L4D2] Custom Player Stats v1.4B117
Reply With Quote #1455

Quote:
Originally Posted by kennyist View Post
I have done that but it does not work. :/
I put the files in pastebin for you to look at, maybe I made another change i don't remember. You can compare them with your files and maybe find what youre looking for. If you're using linux its easy to compare text files using the diff command, it'll save you some time.
links to the files: index.php config.php

Let me know if i can help out somehow.
el_psycho is offline
kennyist
Member
Join Date: Jan 2010
Old 03-30-2012 , 11:59   Re: [L4D & L4D2] Custom Player Stats v1.4B117
Reply With Quote #1456

Quote:
Originally Posted by el_psycho View Post
I put the files in pastebin for you to look at, maybe I made another change i don't remember. You can compare them with your files and maybe find what youre looking for. If you're using linux its easy to compare text files using the diff command, it'll save you some time.
links to the files: index.php config.php

Let me know if i can help out somehow.
I just used your index.php on my site, still no map there. So you must have edited something somewhere else.
__________________

kennyist is offline
el_psycho
Member
Join Date: Feb 2012
Location: Vancouver, Canada
Old 03-31-2012 , 04:38   Re: [L4D & L4D2] Custom Player Stats v1.4B117
Reply With Quote #1457

Quote:
Originally Posted by kennyist View Post
I just used your index.php on my site, still no map there. So you must have edited something somewhere else.
Tomorrow when i have some time i'll try with a clean install of the website and make only basic configuration and only those changes i listed and see if it works. That should should give us a definitive answer. If it doesn't work ill try to hunt down the change that made it work. It's very strange that it doesn't work for you, I have a friend in Spain, i'm in Canada and referred him to my post here and that fixed the maps for him.

EDIT:
Bad or good news depending on how you look at it. The maps worked perfectly with a fresh install and only replacing the files i posted. That means your problem is somewhere else. Maybe you should try a fresh install and only do those changes at first, then change the other stuff and see how it goes.

Last edited by el_psycho; 03-31-2012 at 16:39.
el_psycho is offline
el_psycho
Member
Join Date: Feb 2012
Location: Vancouver, Canada
Old 04-03-2012 , 23:13   Re: [L4D & L4D2] Custom Player Stats v1.4B117
Reply With Quote #1458

Quote:
Originally Posted by kennyist View Post
I have done that but it does not work. :/

-------------------------------------------------------------------------

EDIT - Fixed config file, left an ";" out.

Also to anyone whom may be interested, I've added Google+, twitter and facebook buttons to this and they are fully configurable from the config.php. To install just replace the files you have already uploaded, Its in the right file structure already, Then its good to go.

Added config lines:

...

Example page: http://lg.site.nfoservers.com/stats/

If people are interested I will add more stuff, add more variables to change ETC. At the moment they are all on and cannot be turned off unless you edit them out, I will try to add a toggle for each, but I can't work it out at the moment.

-- Updates --
28/03 - Added 4 new config controls - Facebook button layout - Google plus size - Google plus annotation style - Twitter button size.
27/03 - Fixed config file

Kennyist.
I just opened your config file. you have this line there:
Code:
$googlemaps_apikey = "";
It should be something like this:
Code:
$googlemaps_apikey = "x";
You need to have something there (like an x) to turn on the maps. The php code in index.php checks for a string size greater than 0 or maps are not shown. That's your problem right there.

Last edited by el_psycho; 04-03-2012 at 23:18.
el_psycho is offline
Saint59
New Member
Join Date: Mar 2012
Old 04-04-2012 , 16:38   Re: [L4D & L4D2] Custom Player Stats v1.4B117
Reply With Quote #1459

Quote:
Originally Posted by muukis View Post
Ahaa... so that's how that bug occurred. Thanks for the input! I'll fix that too for the next update, which I hope to get done soon.
Glad I could help.

Now I got a new crazy error.
This is what I got from server:

L 04/04/2012 - 22:08:03: [l4d_stats.smx] Fast query failed! (Error = "Lost connection to MySQL server during query") Query = "INSERT IGNORE INTO server_settings SET sname = 'motdmessage', svalue = ''"

L 04/04/2012 - 22:08:03: [SM] Native "SQL_GetRowCount" reported: Invalid query Handle 0 (error: 4)

L 04/04/2012 - 22:08:03: [SM] Displaying call stack trace for plugin "l4d_stats.smx":

L 04/04/2012 - 22:08:03: [SM] [0] Line 2365, /home/groups/alliedmodders/forums/files/5/2/0/8/2/98880.attach::InsertMapDB()

Does it tell you anything?
Saint59 is offline
Doodil
Senior Member
Join Date: Mar 2012
Old 04-04-2012 , 16:41   Re: [L4D & L4D2] Custom Player Stats v1.4B117
Reply With Quote #1460

Well... it says it lost the connection to the database while querying, does it happen all the time or just once? If just once ignore it and go on, I guess stuff like that can happen
Doodil 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 12:26.


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