{"id":923,"date":"2020-05-22T20:58:46","date_gmt":"2020-05-22T19:58:46","guid":{"rendered":"http:\/\/www.marcinwilk.eu\/?p=923"},"modified":"2020-08-16T20:15:01","modified_gmt":"2020-08-16T19:15:01","slug":"statystyki-bbclone-w-wordpress","status":"publish","type":"post","link":"https:\/\/www.marcinwilk.eu\/en\/2020\/05\/statystyki-bbclone-w-wordpress\/","title":{"rendered":"BBClone statistics inside WordPress"},"content":{"rendered":"Today's entry concerns the launch of statistics of website visits based on the WordPress system, using the BBClone &#8211; a script entitled as &#8211; A PHP based Web Counter on Steroids!<\/p>\n<p>An example of how the BBClone works can be seen here: <a href=\"https:\/\/www.bbclone.de\/demo\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.bbclone.de\/demo\/<\/a>.<\/p>\n<p>There's not much to describe, so I'll get to the point.<br \/>\nI assume you already have a working WordPress engine site.<\/p>\n<p>1 &#8211; We are downloading a development version of the BBClone (the last stable release is from 2015, and does not support PHP version 7, so we need a version with later changes). Link to file: <a href=\"http:\/\/download.bbclone.org\/bbclone-nightly-build.zip\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/download.bbclone.org\/bbclone-nightly-build.zip<\/a>.<br \/>\n2 &#8211; The unpacked files are copied via FTP to a server. We can rename the bbclone directory to another.<br \/>\n3 &#8211; Edit the config.php file from the \/conf\/ directory, where you set the parameters as required.<br \/>\n4 &#8211; We change the WordPress file, template-loader.php, which is located in the \/wp-includes\/ directory. Simply add this piece of code under the first line containing \"&lt;?php\":<\/p>\n<pre><span class=\"inner-pre\" style=\"font-size: 14px;\">define(\"_BBC_PAGE_NAME\", get_bloginfo(\"name\") . wp_title(\"\/\", false));\r\ndefine(\"_BBCLONE_DIR\", \"<strong>\/home\/user\/public_html\/bbclone\/<\/strong>\");\r\ndefine(\"COUNTER\", _BBCLONE_DIR.\"mark_page.php\");\r\nif (is_readable(COUNTER)) include_once(COUNTER);<\/span><\/pre>\n<p>Instead of \/home\/user\/public_html\/bbbclone\/ (bold above) you should enter your own full bbclone directory location on the server. Upload the modified file, replacing the original and it's ready.<\/p>\n<p>The only thing you need to remember is to correct this file after updating WordPress.\n<input class=\"fooboxshare_post_id\" type=\"hidden\" value=\"923\"\/>","protected":false},"excerpt":{"rendered":"<p>Today's entry concerns the launch of statistics of website visits based on the WordPress system, using the BBClone &#8211; a script entitled as &#8211; A PHP based Web Counter on Steroids! An example of how the BBClone works can be seen here: https:\/\/www.bbclone.de\/demo\/. There's not much to describe, so I'll get to the point. I &hellip; <a href=\"https:\/\/www.marcinwilk.eu\/en\/2020\/05\/statystyki-bbclone-w-wordpress\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> \"BBClone statistics inside WordPress\"<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,113,65,3,114],"tags":[115,117,118,119,120,116,121],"class_list":["post-923","post","type-post","status-publish","format-standard","hentry","category-computers","category-hosting","category-linux","category-site","category-wordpress","tag-bbclone","tag-hosting","tag-statistics","tag-stats","tag-statystyki","tag-wordpress","tag-www"],"_links":{"self":[{"href":"https:\/\/www.marcinwilk.eu\/en\/wp-json\/wp\/v2\/posts\/923","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.marcinwilk.eu\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.marcinwilk.eu\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.marcinwilk.eu\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.marcinwilk.eu\/en\/wp-json\/wp\/v2\/comments?post=923"}],"version-history":[{"count":0,"href":"https:\/\/www.marcinwilk.eu\/en\/wp-json\/wp\/v2\/posts\/923\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.marcinwilk.eu\/en\/wp-json\/wp\/v2\/media?parent=923"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.marcinwilk.eu\/en\/wp-json\/wp\/v2\/categories?post=923"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.marcinwilk.eu\/en\/wp-json\/wp\/v2\/tags?post=923"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}