Posts by: Ian

Download and Upload Images to your site

Posted By: Ian on Apr 05, 2012 in PHP, Snippets

Most people talk about downloading an image from a website to there computer but there are times when we need to download an image from a website to our website (Via a Link). Which following on from Download image to website I have combined this with an upload script, image proxy script and optional image …

Read more

Download image to website

Posted By: Ian on Mar 28, 2012 in PHP, Snippets

Download images to your site from another site. Linking to images is fine if there on your site but not necessarily a good thing if there on someone else’s. WHY? Because for one the site owner of the other site can change the image, alter the size or even delete it. Why this might not …

Read more

Image Proxy Script

Posted By: Ian on Mar 28, 2012 in PHP, Snippets
Read more

Ajax update innerHTML

Posted By: Ian on Mar 17, 2012 in Snippets

Ajax is very useful for when you want todo something without refreshing the page plus it’s the way things are done now. For my Banner Bar program i allow the user to upload images or insert links to images which while this is good i think at the moment it looks confusing and the page …

Read more

Google visited links not changing colour

Posted By: Ian on Feb 10, 2012 in Blog

http://www.google.com/webhp?hl=en OK for whatever reason my visited links have not been changing colour in safari for a few days but they do it firefox. Weird i know so i don’t know if there are some conditional comments going on! So after some searching around someone suggested using igoogle but i came across this link http://www.google.com/webhp?hl=en …

Read more

PHP Modulus Operator – mysql database example

Posted By: Ian on Feb 02, 2012 in Blog, Snippets

OK well recently whilst doing some work for someone on a classifieds site the man wanted a banner from Banner Bar to show every 5 adverts. But he wanted the banners to be shown in ascending order and only 1 at a time. After some playing around and a nights sleep i finally cracked it …

Read more

Add and Remove stylesheets with jquery

Posted By: Ian on Jan 24, 2012 in JavaScript, Snippets

Remove stylesheet To remove a stylesheet simply give it an id <link href=”cssFolder/sheet2.css” rel=”stylesheet” type=”text/css” id=”sheet2″> And insert the following script just before </body> tag     Add stylesheet To Add a stylesheet insert the following script just before </body> tag   Although i have used document ready in the snippets above i have used …

Read more

Re-design of Banner Bar

Posted By: Ian on Jan 20, 2012 in Blog

Well i’ve been playing around with some of the new features that HTML5 brings and so thought it was time to update the look and feel of Banner Bar to take advantage of some of these features. First i’m using the local storage feature to store the users preference about showing or hiding the bar. …

Read more

Sort and order php mysql

Posted By: Ian on Dec 19, 2011 in Blog, PHP

During the building of Banner Bar version 2 i needed sort and direction to be carried forward to each page and this is what i came up with. So for anyone looking hope it helps. I have included a full working demo and download link below anyone wanting the mysql table just contact me. Using …

Read more

Pretest Script for testing versions before install

Posted By: Ian on Dec 17, 2011 in Blog, PHP, Snippets

During the remake of the installation script for bannerbar i had to come up with a pre-test script and with a bit of searching i put together the below which may be helpful for you too.

Read more

About This Site

Dreams are built from lines of code well it's true!
If you can dream it you can usually code it.

I have learned so much from other people on the Internet and this site is for me to give back some of what i have learned and hope people can now learn from me.
Have fun and surf safely,
Ian.J.Gough

Contact Form

captcha

-
blank1
blank2
blank3
blank4
blank5
blank6
blank7
blank8
blank9
blank10
blank11
blank12
blank13
blank14
blank15
Powered by Banner Bar 125