{"id":353,"date":"2009-07-04T18:01:03","date_gmt":"2009-07-04T21:01:03","guid":{"rendered":"http:\/\/wordpress.matbra.com\/?p=353"},"modified":"2010-07-28T17:19:02","modified_gmt":"2010-07-28T20:19:02","slug":"graficos-para-seu-tiny-url","status":"publish","type":"post","link":"https:\/\/wordpress.matbra.com\/en\/2009\/07\/04\/graficos-para-seu-tiny-url\/","title":{"rendered":"Chart to your URL Shortener with Statistics."},"content":{"rendered":"<p>Hello<\/p>\n<p>I decided to implement a Chart vision of the access to a address of the last 30 days. THe system that I choosed  is <a href=\"http:\/\/teethgrinder.co.uk\/open-flash-chart\/\">Open Flash Chart<\/a>. <\/p>\n<p>The new methods:<br \/>\ngetAccess($id) &#8211; Return an Associative Array with the access by date and the total<br \/>\nformatData($data) &#8211; Receive the access of getAccess and transform it in a Numeric Array.<br \/>\ncriarLabels() &#8211; Create the labels to the bottom part of the chart.<\/p>\n<p>If you want to access it, you have to manually get the ID and use http:\/\/www.example.com\/diretorio\/chart.php?id=ID where ID is UID from the MySQL table.<\/p>\n<p>Example:<br \/>\n<script src=\"js\/swfobject.js\" type=\"text\/javascript\"><\/script><br \/>\n<object id=\"ie_chart\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"500\" height=\"250\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,40,0\"><param name=\"align\" value=\"middle\" \/><param name=\"allowScriptAccess\" value=\"sameDomain\" \/><param name=\"quality\" value=\"high\" \/><param name=\"bgcolor\" value=\"#FFFFFF\" \/><param name=\"src\" value=\"http:\/\/wordpress.matbra.com\/lurl\/open-flash-chart.swf?width=500&amp;height=250&amp;data=http%3A%2F%2Fwww.matbra.com%2Flurl%2Fchart-data.php%3Fid%3D50\" \/><param name=\"name\" value=\"chart\" \/><\/object><\/p>\n<p><a href=\"http:\/\/wordpress.matbra.com\/?attachment_id=369\">URL Shortener with Statistics and Chart.<\/a><\/p>\n<p><a href=\"http:\/\/wordpress.matbra.com\/en\/2009\/05\/09\/criando-seu-proprio-tiny-url\/\">Creating your own Url shortener<\/a><br \/>\n<a href=\"http:\/\/wordpress.matbra.com\/en\/2009\/07\/02\/estatisticas-no-seu-tinyurl\/\">Statistics on your URL Shortener<\/a><\/p>\n<p>Best Regards,<br \/>\nMatheus<\/p>\n<p>PS: Don&#8217;t forget the Rewrite Rules.<\/p>","protected":false},"excerpt":{"rendered":"<p>Hello I decided to implement a Chart vision of the access to a address of the last 30 days. THe system that I choosed is&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/wordpress.matbra.com\/en\/2009\/07\/04\/graficos-para-seu-tiny-url\/\">Continue reading<span class=\"screen-reader-text\">Chart to your URL Shortener with Statistics.<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[78,69],"tags":[323,13],"class_list":["post-353","post","type-post","status-publish","format-standard","hentry","category-mysql","category-php","tag-php","tag-programacao","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/psjGE-5H","_links":{"self":[{"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/posts\/353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/comments?post=353"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/posts\/353\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/media?parent=353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/categories?post=353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/tags?post=353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}