Welcome to Our Website!

Matthew 22:36-38
  1. ‘Teacher, which is the greatest commandment in the Law?’
  2. Jesus replied: ‘Love the Lord your God with all your heart and with all your soul and with all your mind.
  3. This is the first and greatest commandment.
  4. And the second [is] like unto it, Thou shalt love thy neighbour as thyself.
  5. On these two commandments hang all the law and the prophets.’

First some Web Page Comments ...

Blend, which this page and some of my others is based on, is a free, fully standards-compliant CSS template designed by Free CSS Templates. This free template is released under a Creative Commons Attributions 2.5 license, so you're pretty much free to do whatever you want with it (even use it commercially provided you keep the links in the footer intact. Have fun with it :)

This template is also available as a WordPress theme at Free WordPress Themes.

To this Intro I will add that this is NOT totally like the original in that we have changed it from a Three Column to a Two Column format. The jiberish to fill in the Template has been left UNLESS we used that area. That way you get to see what was intended. The main reason we are using this is cause ... it works. We like to create "jump points" from - to various places in the same Web Page. In our original "borrowed" Templates, that we were using, we could jump to - but not return from. In pages created with this template both ways work. If you click on a jump point you can use the Browser Arrow keys to return to the spot you jumped from. That feature did not work in our other Templates. This Page used to be in that format but since we are "Adding" to it we are changing it to the new.
Ok. Now to try and organize this for my BBClone notes.

  BBClone Intro

As stated many times before, these pages are for myself just as much, if not more, as for all you others. Therefore, notes of interest will be injected at different places.

A couple of years ago, late 2004, we decided it would be nice to know how many people were accessing our Web Pages. We were just looking for a counter and came across this piece of work... BBclone

BBclone is a web counter written in PHP and gives a detailed view of the visitors of your web site.

This extension consist of two independent parts:

  • A snippet extension that displays the selected stats.
  • A hook extension that allows tracking your pages in BBclone.

It will display the nth last users (and the data they provided, like their IP, browser and so on) that visited the web site, not just showing a number of visitors. For each visitor, BBclone can display the IP address, hostname, operating system, robots, browser, referring URL, country, search engine keywords, hostname resolution, time statistics, proxy workaround and display, referrer and ip address filtering. Live domo available on the website.
Ref: Big WebMaster

Install BBClone

Please follow the guidlines listed here:

   BBClone Setup

Rut, Roh... Troubles

Now here it is, early to mid 2008, and our counter has ceased to work. Upon approaching our fabulous, and very helpful ISP, we were informed that they had moved to PHP5 and if we had been reading the e-mails they sent we would have known that. Even though this sounds harsh in print, they were very cordial and kind about it. Matter of fact, Don and Joshua both helped us get things straightened out and working again. Suffice it to say that we put the PHP5 version of BBclone out on our site, on our ISP, and still had a problem.

1. suPHP Set Up

Turns out that in addition to PHP5, my ISP, HostRocket.com, implemented suPHP for better control and security. This "security" caused problems in BBclone operation. This led to a search of the Net and the BBclone forum. Through this search I found Olliver Wichmann who had worked on BBclone in the beginning and had some insights. He helped me to finalize the info on this page so that, hopefully, it will be useful to someone else.

The following code applies to those using the .htaccess method of adding the BBclone activation code to your files. This code will cause all your pages to be counted without having to edit all of them and manually add the counter code. However, please pay attention to the Note below this code.
The .htaccess file changes:

suPHP_ConfigPath /home/username/
RemoveHandler .html .htm
AddHandler php5-script .htm .html
AddType application/x-httpd-php5 .htm .html
<FilesMatch "\.(html?)$">
php_value short_open_tag "Off"
php_value auto_append_file "/home/username/public_html/count.php"
</FilesMatch>
Please Note, that suPHP_ConfigPath is specific to suPHP and not available in general. Also please note that you will have to put your own paths in. Check with your ISP.

When running suPHP, PHP is running as a CGI binary and not an Apache module. Therefore, an AddHandler and AddType are both needed.

suPHP options
It seems, that suPHP is used as an Apache module (whilst php is running as cgi-binary). Therefore it might be useful to point out that suPHP_ConfigPath is an option used by mod_suphp:
   http://www.suphp.org/Documentation-Module-Configuration.en.html

RemoveHandler is only necessary in case a handler for htm(l) files has been defined in httpd.conf or in another .htaccess of a higher directory level. As not everyone is Apache savy, it might be useful to link to the Apache documentation explaining that directive, so those interested in more details can study the source of your statement:
   http://httpd.apache.org/docs/2.2/mod/mod_mime.html#removehandler

Refer: BBClone htaccess

2. Code Added to index.php

This code is to be placed at the beginning of your main, or top, index file. Usually index.php.

<!-- Visitor counter code. Created by the Good Guys at http://www.bbclone.de -->
<?php
define("_BBC_PAGE_NAME", "XXMain");
define("_BBCLONE_DIR", "bbclone/");
define("COUNTER", _bbclone_dir."mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER);
?>

3. The count file

The following code is placed in a file called count.php.

<?php
define("_BBCLONE_DIR", "/home/username/public_html/bbclone/");
define("COUNTER", _BBCLONE_DIR."mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER);
?>

There is also a Wiki Help Page at: http://help.bbclone.de/ that answers a lot of questions.

4. My Conclusion

Through all this, embarrassment on my part, it seems that in the beginning, when I was trying to be nice and helpful, I caused these problems later. The key fix, which was added by Joshua, was the line:
   AddType application/x-httpd-php5 .htm .html
I had removed this line way back when I first implemented BBclone with the thought that it would cut down on server processing and speed up operations. As it turns out, I was wrong.

   The other key line in the fix was from Don:
  suPHP_ConfigPath /home/username/

  We're Back in 2011

We are back again because of the count. This time it is still counting -but- it is counting to much. We don't realy want to see all the times show_views is accessed.

/bbclone/show_views.php      417122  53.76%
Bbclone -> Show Views         93757  12.08%
/bbclone/show_detailed.php    23851   3.07%
Way back in the beginning when we first started using this ... it didn't do that. I do believe that it has something to do with ignoring our address. However, it can change. It is dynamic and it does change.

We did find this in the solutions:
$BBC_IGNORE_IP only accepts IP addresses or parts of one (read from left to right). If you wish to block a particular hostname you may like to use the following as workaround in your config.php:

    $BBC_IGNORE_IP = gethostbyname("my.host.name.org");

We will give that a try and report back. However, the current statistics are:

			   Accesses  Dec 03, 2008 to Dec 02, 2011
Past year  303780   Past month     60237    Past week       15568    Past day    2128
                    Total Visits   774428   Total Unique    261198 	 

Our plans are, to get the counter working the way we want it to and then reset the counters. Either wholly or individually manually. We want to clear out those show_views counts.

Allllrighty now. It appears that we can do it. The above gethostbyname worked for the ignore... well, almost. The two /bbclone dir files quit increasing in count -but- the middle one, Bbclone -> Show Views is still being incremented. But that is ok, we'll accept just the one. The file, access.php inside the bbclone/var directory contains all the items being counted. Before doing anything to it we want to investigate and see just how it got added and how it gets incremented. In other words... how does this thing work? We're getting a little tired of doing things by rote.

BBclone works by getting your server to update a custom-made statistics file,( which we believe is the above mentioned access.php file) every time it delivers a web page to a browser. To make this happen, a few lines of code must be added each web page that you want BBclone to count.( please see the discussion above) This code will be executed by your web server just before it sends the page, and the statistics will be updated.

The access.php file appears to be an array of arrays. A bunch of its members at the bottom are "Referers". Do we really want -or- need those??
Refer: Arrays in PHP and PHP Array Function
The function print_r() displays the array in a human-readable format (print_r stands for "print readable").
PHP array Tutorial
Single and Double Arrow Operators and PHP Tokens
The basic assignment operator is "=". Your first inclination might be to think of this as "equal to". Don't. It really means that the left operand gets set to the value of the expression on the right (that is, "gets set to").
For arrays, assigning a value to a named key is performed using the "=>" operator. The precedence of this operator is the same as other assignment operators.



Sample Tags

An H3 Followed by a Blockquote:

“Donec leo, vivamus nibh in augue at urna congue rutrum. Quisque dictum integer nisl risus, sagittis convallis, rutrum id, congue, and nibh.”

Bulleted List:

  • Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
  • Phasellus nec erat sit amet nibh pellentesque congue.
  • Cras vitae metus aliquam risus pellentesque pharetra.

Numbered List:

  1. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
  2. Phasellus nec erat sit amet nibh pellentesque congue.
  3. Cras vitae metus aliquam risus pellentesque pharetra.

Lorem Ipsum Dolor

Consectetuer adipiscing elit. Nam pede erat, porta eu, lobortis eget, tempus et, tellus. Etiam neque. Vivamus consequat lorem at nisl. Nullam non wisi a sem semper eleifend. Donec mattis libero eget urna. Duis pretium velit ac mauris. Proin eu wisi suscipit nulla suscipit interdum. Aenean lectus lorem, imperdiet at, ultrices eget, ornare et, wisi. Pellentesque adipiscing purus ac magna. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.