Quote:
Originally Posted by el_psycho
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.