{"id":2932,"date":"2008-04-20T00:22:15","date_gmt":"2008-04-20T00:22:15","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-plugin-stats\/"},"modified":"2008-04-21T22:25:40","modified_gmt":"2008-04-21T22:25:40","slug":"wp-plugin-stats","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wp-plugin-stats\/","author":317084,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.1.2","stable_tag":"trunk","tested":"2.5","requires":"2.0.2","requires_php":"","requires_plugins":"","header_name":"WP-Plugin-Stats","header_author":"Nemanja Avramovi\u0107","header_description":"","assets_banners_color":"","last_updated":"2008-04-21 22:25:40","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.avramovic.info\/donate","header_plugin_uri":"http:\/\/www.avramovic.info\/wordpress-plugins\/wp-plugin-stats-wordpress-plugin","header_author_uri":"http:\/\/www.avramovic.info\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":6481,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1539218","resolution":"2","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1539218","resolution":"1","location":"plugin"}},"screenshots":{"1":"Plugin stats chart","2":"Plugin stats ([stats] tag)"}},"plugin_section":[],"plugin_tags":[3772,734,2391],"plugin_category":[],"plugin_contributors":[81878],"plugin_business_model":[],"class_list":["post-2932","plugin","type-plugin","status-closed","hentry","plugin_tags-developers","plugin_tags-development","plugin_tags-plugins","plugin_contributors-avram","plugin_committers-avram"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-plugin-stats.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/wp-plugin-stats\/trunk\/screenshot-1.png?rev=1539218","caption":"Plugin stats chart"},{"src":"https:\/\/ps.w.org\/wp-plugin-stats\/trunk\/screenshot-2.png?rev=1539218","caption":"Plugin stats ([stats] tag)"}],"raw_content":"<!--section=description-->\n<p>This plugin is made for WP plugin developers. It parses plugin stats page and can show download stats (today, yesterday, last week, total, as well as flash chart) in your Wordpress page\/post. Just place one of the following bbcodes in your page and it'll get appropriate data: [today=plugin-name-slug] [yesterday=plugin-name-slug] [lastweek=plugin-name-slug] [total=plugin-name-slug] [stats=plugin-name-slug] or [chart=plugin-name-slug]<\/p>\n\n<p>This plugin is using AJAX to get plugin stats (all but charts), but it can't get two datums simultaneously so be careful not to use two bbcodes on same page 'cause it'll get funny results or it'll not get them at all. If you have two or more posts on your home page (as usually we do have), and these bbcode tags in them, that also counts as two (or more) bbcode tags on one page, so my personal suggestion is to use these on plugins' WP powered pages, not in posts.<\/p>\n\n<p>If ajax function can not be started (js code not loaded from external file) you'll get a plus sign (which can be changed by replacing click.gif in plugin's directory) and you need to click on it to get data.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload contents of <code>wp-plugin-stats.zip<\/code> to <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Enjoy your new plugin<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Which bbcode tag I need to use for... ?<\/dt>\n<dd><p>This plugin supports six different tags to show six different types of data.<\/p>\n\n<ol>\n<li>Today's downloads<\/li>\n<\/ol>\n\n<p>To show how many times your plugin has been downloaded today, just place [today=plugin-name-slug]. For example: \"My plugin has been downloaded [today=wp-plugin-stats] times today.\"<\/p>\n\n<ol>\n<li>Yesterday's downloads<\/li>\n<\/ol>\n\n<p>To show how many times your plugin has been downloaded yesterday, just place [yesterday=plugin-name-slug].<\/p>\n\n<ol>\n<li>Last week's downloads<\/li>\n<\/ol>\n\n<p>To show how many times your plugin has been downloaded last week, just place [lastweek=plugin-name-slug].<\/p>\n\n<ol>\n<li>Total downloads<\/li>\n<\/ol>\n\n<p>To show how many times your plugin has been downloaded since it is hosted on Wordpress.org, just place [total=plugin-name-slug].<\/p>\n\n<ol>\n<li>All downloads<\/li>\n<\/ol>\n\n<p>To show all data of above at once, just place [stats=plugin-name-slug].<\/p>\n\n<ol>\n<li>Download chart<\/li>\n<\/ol>\n\n<p>To show Flash download chart which is displayed on your plugin's stats page, just place [chart=plugin-name-slug]<\/p><\/dd>\n<dt>How to change dimensions of Flash chart?<\/dt>\n<dd><p>In short: you can't. You can resize flash applet, but chart will be cropped then, so I haven't introduced possibility to change dimensions of flash chart. Default dimensions are 540x400 px<\/p><\/dd>\n<dt>How to disable automatic getting of data?<\/dt>\n<dd><p>To disable automatic getting of data and force users to click on plus sign (<code>click.gif<\/code>) find and open file <code>wp-content\/plugins\/wp-plugin-stats\/wp-plugin-stats.php<\/code> and look for string <code>&lt;script type='text\/javascript'&gt; window.onload=function(){<\/code>. Replace that with this: <code>&lt;script type='text\/javascript'&gt; \/\/window.onload=function(){<\/code> and that's it. From now on, a plus sign (click.gif) will be always be shown and data will be fetched only when user clicks on that.<\/p><\/dd>\n<dt>How to change template of [stats] bbcode tag?<\/dt>\n<dd><p>Go to Options -&gt; Plugin Stats and change template in large text box. Following keywords will be replaced with actual data:<\/p>\n\n<ul>\n<li>%today% - will be replaced with number of today's downloads<\/li>\n<li>%yesterday% - will be replaced with number of yesterday's downloads<\/li>\n<li>%lastweek% - will be replaced with number of last week's downloads<\/li>\n<li>%total% - will be replaced with total number of downloads<\/li>\n<\/ul><\/dd>\n<dt>Can I change styles of results?<\/dt>\n<dd><p>Yes, you can style results with css styles. All styles are already placed in file <code>wp-content\/plugins\/wp-plugin-stats\/wp-plugin-stats.css<\/code> and styles that apply to this plugin are:<\/p>\n\n<ul>\n<li>.wpstats_all - class of results' DIV tag, used for [stats] bbcode<\/li>\n<li>.wpstats_loading - class of results' SPAN tag, used for all bbcodes (except [chart]), applied when load.gif image is shown<\/li>\n<li>.wpstats_result - class of results' SPAN tag, used for all bbcodes (except [chart] and [stats]), applied when results are fetched from Wordpress.org<\/li>\n<\/ul><\/dd>\n<dt>My plugin won't get data, but it displays chart well...?<\/dt>\n<dd><p>Make sure that \"Allow URL fopen\" on your server is enabled. You can't enable this manually if it is disabled, you'll need to contact your webhost provider. Charts are directly embeded in page while other data is fetched from Wordpress.org<\/p><\/dd>\n\n<\/dl>","raw_excerpt":"This plugin is made for WP plugin developers. It can show download stats in your Wordpress page\/post.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/2932","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=2932"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/avram"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=2932"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=2932"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=2932"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=2932"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=2932"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=2932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}