Wednesday, 28 March 2007

It's now wrapped

Following my idea the other day, you are now viewing this blog in a php wrapper. There's absolutley no change to the page and its layout, but now in the heading (I changed my mind about where to add this) you will see the number of site visits fed from my normal page counter.

Viewing the blog via the Blogger links will still display the page via the php wrapper, so visits will still be counted as hits on the site.

Labels:

Monday, 26 March 2007

Wrapping up the blog

I want to add my page counter to the bottom of the blog, but it's a php script. Blogger publishes the pages as html files so you can't add the code to the templates. I've not seen anyone else with an answer to this, so.... As my blog is now part of my main site, I can write a wrapper for the pages in php. This wrapper will take the published pages, and based on any comments inserted in the Blogger template, add in php code.

Next, I will need to add a javascript so visitors comming from Blogger will also redirect through this wrapper.

If anyone is interested, please let me know. ??

Labels: