Privacy Policy

Date: 14th March 2009 at 11:30 am | Filed under: blog | Author: Sam Burdge

Privacy Policy for www.samburdge.co.uk

If you require any more information or have any questions about our privacy policy, please feel free to contact us by email at

At www.samburdge.co.uk, the privacy of our visitors is of extreme importance to us. This privacy policy document outlines the types of personal information is received and collected by www.samburdge.co.uk and how it is used.

Log Files
Like many other Web sites, www.samburdge.co.uk makes use of log files. The information inside the log files includes internet protocol ( IP ) addresses, type of browser, Internet Service Provider ( ISP ), date/time stamp, referring/exit pages, and number of clicks to analyze trends, administer the site, track user’s movement around the site, and gather demographic information. IP addresses, and other such information are not linked to any information that is personally identifiable.

Cookies and Web Beacons
www.samburdge.co.uk does use cookies to store information about visitors preferences, record user-specific information on which pages the user access or visit, customize Web page content based on visitors browser type or other information that the visitor sends via their browser.

Some of our advertising partners may use cookies and web beacons on our site. Our advertising partners include Google Adsense, .

These third-party ad servers or ad networks use technology to the advertisements and links that appear on www.samburdge.co.uk send directly to your browsers. They automatically receive your IP address when this occurs. Other technologies ( such as cookies, JavaScript, or Web Beacons ) may also be used by the third-party ad networks to measure the effectiveness of their advertisements and / or to personalize the advertising content that you see.

www.samburdge.co.uk has no access to or control over these cookies that are used by third-party advertisers.

You should consult the respective privacy policies of these third-party ad servers for more detailed information on their practices as well as for instructions about how to opt-out of certain practices. www.samburdge.co.uk's privacy policy does not apply to, and we cannot control the activities of, such other advertisers or web sites.

If you wish to disable cookies, you may do so through your individual browser options. More detailed information about cookie management with specific web browsers can be found at the browsers' respective websites.

Leave a Comment

Considerations To Make When Chosing a Suitable Web Host

Date: 22nd January 2009 at 7:26 pm | Filed under: blog | Author: Sam Burdge | Tags: , ,

As a web designer one of the most frequent questions I get asked is : who shall I host my site with? With so many potential  web hosts out there the answer is not always that simple.

If I am building them a site through my web design company 76 Creative, I would always recommend that they use our fully managed hosting service, as it requires no work or knowledge on their part. However, the 76 Creative managed service is reserved for clients of 76 Creative only. You can only get it if 76 are designing and building your site for you.

For many private clients, and friends who are looking to get started with creating their own site or hosting a WordPress blog, I have recommended 1 and 1 hosting. I myself host with 1 and 1 and find that their prices, customer service and the range of web services available through their hosting control panel make them a good choice.

The main factors that people seem to be attracted to in a web host are price and amount of server space allocated. These 2 factors are often used as a means by which to compare different offers and packages available. I guess this makes sense in a way, as they are both very tangible factors that can easily be compared. However, most websites take up less than 100MB of space on the server, so is server space really the most important factor?

Other factors that are often compared are the server's uptime and connection speed.

Two factors I find most important which seem to get less attention are the quality of customer service, and the quality of the hosts control panel. If a host doesn't offer any kind of control panel for you to manage your websites, email accounts etc. then I wouldn't reccomend them.

Many hosts offer the cPanel control panel which is packed with features and easy to use. Other hosts offer more bespoke control panels which range from extremely good to absoluteley useless. I won't name any names, but I have seen control panels from some hosts that offer absolutely nothing, you have to email them every time you want to create a new email address or anything.

Here is my list of factors to consider when chosing your web host in order of importance:

  1. Hosting Platform (Microsoft or Linux / Apache)
  2. Server uptime
  3. Monthly traffic permitted
  4. Firewall
  5. FTP Access
  6. Other software (PHP version etc.)
  7. Amount of server space allocated
  8. Quality of control panel
  9. Quality of customer support by phone
  10. SSI  (Server Side Includes)  supported?
  11. Password protected directories  supported?
  12. Number of IMAP/POP3 email accounts
  13. Spam filtering
  14. Number of mySQL databases

Notice that I didn't include price in my list. The reason for this is that I would compare price against all these factors together. Price is obviously the most important factor in getting a good deal, but you also need a web hosting package that will suit your needs.

1&1 Hosting and Domains. 99.9% Uptime Guarantee, 25 GBit Connectivity & 24/7 Support! www.1and1.co.uk

Leave a Comment

Automatic Email Address Protection PHP / JavaScript

Date: 27th October 2008 at 7:44 pm | Filed under: development, scripts | Author: Sam Burdge

It is important to protect email addresses on websites from being harvested by spambots.

"Email spambots collect e-mail addresses from the Internet in order to build mailing lists for sending unsolicited e-mail, also known as spam. Such spambots are web crawlers that can gather e-mail addresses from Web sites, newsgroups, special-interest group (SIG) postings, and chat-room conversations. Because e-mail addresses have a distinctive format, spambots are easy to write. A number of legislators in the U.S. are reported to be devising laws that would outlaw the spambot." – Wikipedia

This is my method for automatically detecting email addresses and replacing them with a javascript that will disguise them from spambots. The script works in two stages one in javascript and the other in php.

First the javascript function that outputs the mailto link:

function sb_email(user,site){
document.write('<a href=\"mailto:' + user + '@' + site + '\">');
document.write(user + '@' + site + '<\/a>');
}

The function has 2 parameters "user" and "site", which are the two parts of the email address either side of the "@". This function can be called like so:

sb_email('joe','bloggs.com');

The second part is the php functions that recognise email addresses and replace them with the javascript function to disguise them:

//function to output the js
function create_js ($matches){
$parts = explode ('@', substr ($matches[0], 1));
if(substr($parts[1],-1)=='.'){$parts[1]=substr($parts[1],0,-1); $parts[2]='.';}
$str = $matches[1].'<script language="JavaScript" type="text/javascript">';
$str .= 'sb_email("'.$parts[0].'", "'.$parts[1].'");';
$str .= '</script>'.$parts[2];
return $str;
}
$js_callback = "create_js ";
 
//function to recognise emails
function email_protect($text){
global $js_callback;
$replace = '/([> ])[A-Z0-9._-]+@[A-Z0-9][A-Z0-9.-]{0,61}[A-Z0-9]\.[A-Z.]{2,6}/i';
$output = preg_replace_callback($replace, $js_callback, $text);
return $output;
}

The email_protect php function can be called on any text string like so:

echo email_protect($text);

It will automatically replace any email addresses in the text with the javascript, therefore hiding them from spambots.

Leave a Comment

Control Arms Flash Viral Game

Date: 22nd October 2008 at 8:09 pm | Filed under: flash, portfolio | Author: Sam Burdge

This viral game built for controlarms.org is my most recent Flash project. The game has been translated into 4 other languages – French, Spanish, Potugese and Arabic. The object of the game is to catch as many bombs in the dustbin as you can before 5 drop. Once completed you can follow the "Take Action" link to lobby your MP in the form of an email.

Check it out: www.controlarms.org/en/games/catch-bombs

Leave a Comment

Time delay loading for swf files and images

Date: 26th March 2008 at 11:54 pm | Filed under: actionscript, development, flash, scripts | Author: Sam Burdge

Q. How can I make an image or swf file load after a specified number of seconds?

A. Use the simple but effective flash_timer.swf file by Sam Burdge. Whoopeee!

Ever wanted a particular Flash movie or image to load up / start playing after the rest of your page has loaded, or after a set amount of time? This tutorial, and the support files provided with it will make it very easy indeed. The flash_timer.swf file will load a swf or image into your page after a number of seconds that you specify.

Example:

Check out this basic example to see a swf (called test.swf) load after a 10 second delay: Example 1
You can view the source code of the example to see how it works.

Usage:

  1. Download the source files using the link below, and unzip the archive.
  2. Embed the swf file 'flash_timer.swf' into your webpage. In my example I have used the swfObject method to embed the file, but you can use whichever method you prefer. For more information about this you can check this useful tutorial by Jeroen Wijering.
  3. Set the height, width & background colour of the swf according to those of the file you want to load in.
  4. Pass the two variables that the file requires to work: myswf – the file that will be loaded & mysecs – the number of seconds delay before the file is loaded. You can pass the variables in the url string, for example:

flash_timer.swf?myswf=my_movie.swf&mysecs=5

(This will load the movie 'my_movie.swf' after a 5 second delay.)

You can also pass the variables as flashvars, for example:

flashvars="myswf=example.jpg&mysecs=10"

(This will load the image 'example.jpg' after a 10 second delay.)

I hope you find this useful, if you do or if you have any questions, please feel free to leave a comment on this page (no emails please, I won't reply unless you are offering me hard cash!!). The flash_timer.swf file is only 1kb, so it will not effect the overall loading time of your page, it can be embedded at any height/width dimensions and works from flash player 7 upwards.

Download Source:

The download contains the all important flash_timer.swf plus a working example (index.html). The size of the zip is 6kb. Enjoy!!


10 Responses to “Time delay loading for swf files and images”

  • Comment by Bob Stone
    Date: May 12th, 2008 at 1:32 pm

    Excellent, excellent, excellent! spectacular! stupendous!

    Was exactly what I was looking for.
    And does exactly what you said it would do!
    Can’t say that about many other things I’ve downloaded - including stuff I’ve paid for!

    Good show!

  • Comment by Wayne Moran
    Date: June 21st, 2008 at 1:40 am

    Great tool - well done. One issue however: how can I prevent my video from repeating / looping continuiously. I have tried setting &loop=false as part of passing the swf filename and I have set it in the calling code as well but it ignores them. See the code below:

  • Comment by Nathan
    Date: September 10th, 2008 at 10:14 pm

    I have the same problem as Wayne Moran. I would like the flash to run only once, as the constant repeating would detract from the sight and prevent the point of the flash from being made.

  • Comment by dave.com
    Date: September 19th, 2008 at 5:57 pm

    Works perfectly… Amazingly simple…see http://www.hotmix.org

  • Comment by Bhaskar
    Date: November 28th, 2008 at 4:39 am

    Excellent work !.
    Its working fine. But I have placed my own swf insted of yours (test.swf). That is not working. Can you suggest a solution.

  • Comment by delicious
    Date: April 27th, 2009 at 12:03 am

    So, if I understood this:
    I have a webpage, I want it to download the page files that are not flash files first, so clients be able of start reading stuff and see some light weight images, so once the files be downloaded say 5 secs, as it is rather light stuff, then I would like the flash file to start being downloaded, because clients will be busy reading and watching other stuff while the flash file downloads, is that correct????????

  • Comment by George
    Date: August 20th, 2009 at 8:29 am

    Great tool.
    @ Wayne Moran and Nathan: This is not a problem of the swf file from Sam, it must be a problem of your swf, which loops.
    Bye
    George

  • Comment by Kyle
    Date: September 4th, 2009 at 1:53 pm

    I cannot get this to work on a LAMP server. Any ideas?

  • Comment by istochath
    Date: September 29th, 2009 at 8:28 pm

    I am a total noob at times, more an artist than a webmaster. I’m trying to plug this in with no success. Could I get a hand with this, I’m plunking it in to a div cause I have a heavily layerd page. Thanks.

  • Comment by lushmind
    Date: December 23rd, 2009 at 2:26 am

    what is the function of the “8″ in the string? it seems to be a variable, but for what?

    thanks.

Leave a Comment