JamesBachini.com

The future of MFA (Made for Adsense) sites after the Google panda update 0

The future of MFA (Made for Adsense) sites after the Google panda update

The big content directories such as ezinearticles, hubpages, articlesbase etc. All took a big hit with the Google panda update. It seems Google targeted low quality article databases with heavy blocks of adverts. These article directories have been abused by black and white hat link builders for the past decade. They allow people to post useless content with a link which they will then profit from and the link will...

Facebook Share button more effective than Likes? 0

Facebook Share button more effective than Likes?

A recent post at SEOMoz suggested that their research has found a better correlation between facebook shares than Facebook likes. The full post is here and makes for an interesting read. One of the things that really caught my attention was in the comments and I quote: “After chatting with our Google rep it seems that FB shares have much more SEO weighting than FB Likes and similar. This is...

Custom wordpress 404 page for SEO 0

Custom wordpress 404 page for SEO

We have recently been purchasing used domain names from Godaddy auctions and Dropday. When we get the domains the first thing we do is look at what traffic they were pulling for what topics via google cached web search. If there is some good content on there and things we want to keep we will rebuild the page with the same url. The big advantage of this is that you...

Setting up twitter feed to post to Twitter and Facebook accounts 0

Setting up twitter feed to post to Twitter and Facebook accounts

If you don’t already have a facebook and twitter account for your company they are really easy to setup. On facebook remember to click the “Create a Page for a celebrity, band or business” link on the homepage. Once you have those accounts setup head over to twitterfeed.com and sign up for an account. Enter your blog url where it says rss input (it will automatically locate the rss file)...

Setting up custom facebook and twitter buttons using php 0

Setting up custom facebook and twitter buttons using php

The canonical tag has been a god send for us helping to get pages indexed and clean up site structures. In many sites we use the same php variable for our share buttons. This is a great way to setup custom twitter and facebook share buttons for your pages. We always use an external template file and then include it from the pages but you can hard code this into...

Perfect Site Structure 0

Perfect Site Structure

It is widely accepted that Google places the most weight on the first 100 links it finds on a web page. With that in mind we can design a website that is optimised so that every single page is as close to the root domain as possible. Even with a 1,000,000+ page website you can still have every page reachable with a minimum of three clicks. We have designed a...

0

Looking for an angle

My most successful campaigns are normally also my most creative and abstract. If you can take an offer and think of a way to promote it which is “outside of the box” then you are on to a winner. Coming up with the idea is the difficult bit and I’ve laid out an example of one campaign I have used in the past to promote an offer. Start with the...

Mixing php with javascrip – Heredoc 0

Mixing php with javascrip – Heredoc

My main issue with javascript is the fact it is full of ‘ and ” which can be a real pain when coding. I’ve started using a method called heredoc to set a start and end point, example below. // Heredoc string // $sstring = <<<TEST Hello World TEST; The word TEST could be anything and it wont finish inputing the string until it comes across it again. This is...

Poor mans GeoIP – Quick and Easy Geolocation 0

Poor mans GeoIP – Quick and Easy Geolocation

//poor mans geoip $country=trim(file_get_contents(“http://api.hostip.info/country.php?ip=”.$_SERVER[‘REMOTE_ADDR’])); //You can then redirect customers to different offers depending on country. I wouldn’t recommend this for critical or high volume use. if ($country == ‘MyCountry’) { yadda yadda yadda; }

Two php functions for scraping content and extracting links 0

Two php functions for scraping content and extracting links

////// Grab webpage ////// function webFetcher($url) { $crawl = curl_init(); curl_setopt ($crawl, CURLOPT_URL, $url); curl_setopt($crawl, CURLOPT_RETURNTRANSFER, 1); $resulting = $resulting.curl_exec($crawl); curl_close($crawl); return $result = $resulting; } //////////////////////////////// //// extract links //// function extract_links($text) { preg_match_all(‘/<\s*a[^<>]*?href=[\’”]?([^\s<>\’”]*)[\’”]?[^<>]*>(.*?)<\/a>/si’, $text, $match_array, PREG_SET_ORDER); $return = array() ; foreach ($match_array as $serp) { $full_anchor = $serp[0]; $href = $serp[1]; $anchortext = $serp[2]; if ( (preg_match(“/http:/i”,$href)) && (!preg_match(“/cache/i”,$href)) && (!preg_match(“/google.com/i”,$href)) && (!preg_match(“/youtube.com/i”,$href)) && (!preg_match(“/wikipedia.org/i”,$href)) && ($href[0]!= ‘/’)...