New website for bad credit car loans and second chance car loans

We have just realease a new site aimed towards people with bad credit in Australia. The site initially offers 2 different types of finance options - The first is for bad credit car loans and the second is for 2nd chance car loans.

The administrators of the site have the capacity to increase the number of pages and articles via our CMS system. AThey have also opted for our powerful email marketing suite to leverage the power of the data they capture via the site.

The Search optimisation has been kept to a minimum as an ethical search marketing campaign will follow shortly.

InvalidTag encountered in web pages using ColdFusion due to cross site scripting protection

As you can see, I'm using Raymond Camdens excellent blog here. I recently tried to create a pod with some Javascript in it but every time I save the content the <SCRIPT...> tags gets converted to <INVALIDTAG...> - After some Googling and looking at a blog entry in Ramonds site it got me thinking about a workaround.

The problem lies with ColdFusion's cross site scripting tool. If for any reason you can't disable it or don't want to for security reasons the the code attached can sort this out for you.

There are 2 files that need creating - One in the client folder and one in the admin folder. They run at the end of the request and use the GetPageContext() function to replace INVALIDTAG which ColdFusion has already replaced and convert it back to a SCRIPT tag.

onRequestEnd.cfm to go into the blog /client/ folder

<!--- Kludge to get around ColdFusion cross site scripting replacement of SCRIPT tags to INVALIDTAG

Martin Parry - 7th June 2008

martin.parry@beetrootstreet.com

--->

 

<cfset pageContent = getPageContext().getOut().getString()> <cfset getPageContext().getOut().clearBuffer()> <cfset pageContent = ReplaceNoCase(pageContent , "<invalidtag", "<script", "all")> <cfoutput>#pagecontent#</cfoutput> <cfabort>

onRequestEnd.cfm to go into the blog /client/admin/ folder

<cfinclude template="../onRequestEnd.cfm">

How to create a truetype font index for Xara

Xara Xtreme graphics software

I absolutely love Xara and have done for the past 8 years or more. It is simply one of the fastest and easiest graphics packages available - And cheap too!!!

I use Xara for producing advertising materials, website designs and animations. It is the sheer speed and ease of use that makes it one of the MUST HAVE software products in my arsenal.

Over the years I have amassed a large library of truetype fonts (about 1800) which until now I have had to install to get them to work properly with Xara. The problem is that, to use the 'Add disc fonts' option of Xara, you must have a pre-compiled XaraInfo folder which contains the preview bitmaps of the fonts. Xara does not come with an application to create these font indexes so a bit of Googling was required.

Enter 'The font box' - I found a forum post where people were having a similair problem and on the last page of the post I found an application for download which did exactly what I needed

OK, the program is a little rough around the edges but does exactly what it says on the tin.

Dead easy to use:-

  • Open my consolidated fonts folder
  • Click create new project icon
  • Select all fonts from main list
  • Drag them to the lower pane
  • Review each font to see if they should be Upper, lower or mixed case previews
  • Click save and a new folder was created on my PC with the Xara library.
  • Open disc fonts in Xara and Voila!!

Xara font index tool

I must express a big thank you to AntiMix for writing a tool which SHOULD be installed as part of Xara. Download it here

Thanks again Antimix

Xara Xtreme graphics software

My youtube page

As I've not posted anything for a short while. I thought I'd let you have a look at my YouTube page that I created when I went to Australia.

There's not much on it at the moment but hopefully if I go away again it'll be updated.

http://www.youtube.com/user/martypaz

Drive the deal - Looking for a new car

Well, my recent car lease has come to an end so I thought I'd better get a shift on and buy a new car. Fortunately I've been working in the motor industry for quite a while now.

The quandry... Buy or lease? Leasing is great but having to put 2 months deposit down can be a bit of a p.i.t.a. So for once, I thought I'd buy a car. Once that was sorted, I started looking round the interweb to find the best deal I could. After a few hours, I came across Drive the deal. The site may look a little basic but geez, the prices were good. They have a really powerful new car search which drills you right down to the car you're interested in.

I spoke to a guy there called Richard and he sorted me out with a really amazing deal on a new Audi TT. I've always fancied a little sports car but now I can actually afford one!! Wooohoo!

So, in the next couple of weeks my trusty E-class goes back to Bank of Scotland and I'll be taking delivery of my new TT. Thanks Richard.

Have a look for yourself at www.drivethedeal.com

New website for Crystal Lease

Crikey - Yet another car leasing website... I've been busy over the Christmas period getting yet another website ready for the new year.

Crystal Lease specialise in business contract hire, personal contract hire and van leasing for small to large companies. Have a look at their site now to see what you think.

Visit: www.crystallease.co.uk

New website for John Williams Home improvements

We have just completed work on a re-vamped website for John Williams Home Improvements.

John Williams are a North Wales home improvement company specialising in conservatories and replacement windows. They have been established since 1969 and have a reputation which is second to none.

John Williams have some of the UK's finest windows in North Wales. Have a look at the website now to see what you think.

Validate an email address in ColdFusion

To validate an email address in ColdFusion, we use the regular expression shown below.

You could easily add this to a CFC if you wanted to return a true or false depending whether the email address validates or not.

<cfset myEmail = "test@test.com">
<CFIF REFindNoCase("^[^@%*<> ]+@[^@%*<> ]{2,255}\.[^@%*<> ]{2,5}", trim(myEmail))>
Valid email address
<cfelse>
Oops, email address does not validate
</cfif>
 

New website for Geraint Davies Hearing Centre

We have just finished work on a new site for the Geraint Davies Hearing Centre. Specialising in all types of hearing aids.

Geraint began his career in Audiology with the NHS in Bangor and trained at the Royal National Throat Nose and Ear Hospital, Gray's Inn Road, London.

Having qualified in 1976 he worked for ten years with the NHS before joining the private sector with Cheltenham Hearing Centre and eventually becoming Area Manager with Siemens Hearing Instruments.

If you are looking for a new or replacement hearing aid, then why not visit his new site at: www.gdhearing.com

Regular Expression (regexp) to remove all HTML tags from a string

To remove all HTML tags from a string, you can use the following regular expression.

This could be used to stop HTML being injected into URL values. Or even just for creating plain text content from a HTML page.

<cfset myString = "<a href='/link.cfm'>Link to my page</a>">
<cfset myString = reReplaceNoCase(myString, "</?\w+(((\s|\n)+\w+((\s|\n)*=(\s|\n)*(?:#chr(34)#.*?#chr(34)#|'.*?'|[^'#chr(34)#>\s]+))?)+(\s|\n)*|(\s|\n)*)/?>", "", "All")>
<cfoutput>There should be no hyperlink: #myString#</cfoutput>

More Entries

BlogCFC was created by Raymond Camden. This blog is running version 5.9.002. Contact Blog Owner