InfinityCMS Dynamic Content Toolbar Item

It’s a Saturday so naturally I’m working…
Actually I thought it was Friday today but that’s another sleep-deprived story.

I decided to do something more constructive for Digital Crew than the run of the mill client work today – I added a toolbar option for inserting dynamic code snippets to our InfinityCMS product.

InfinityCMS allows the user to use codes to get some extra functionality. For example, a user could leave a note for another user using the following syntax [note:My note here].

Or they could list all the sub pages of the current page in a nice neat menu using [include:subpages].

Inserting Dynamic Code using the new toolbar option
Another option is to provide an on-page jump menu to all header elements (example) using [include:jumpmenu].

But even we developers who are using these features every other day struggle to remember all the options and the correct syntax so I bit the bullet and figured out how to extend the excellent FCKEditor to show a new toolbar option to insert one of these code items.

My next mission if to create an ‘Insert Object’ button which will allow users to easily insert components such as an Image Gallery or a FAQ component on the page through the WYSWIYG. Imagine the power of that! A few clicks and the page is displaying an image gallery or a FAQ… or anything else we can come up with. The object itself will be represented by an image when in WYSIWYG mode. Double clicking the object will allow the user to edit it’s parameters and options. It will be good, oh yes… stay tuned…

The Googlebot is retarded

Stupid GoogleBot

 

 

 

 

Why? Because it has absolutely no idea what a base href tag is for online homework help.

I use a base href on all my sites to make internal linking much easier – no matter what the URL for the page on the site looks like, the link to another page will remain the same.

For those who don’t know a base href looks like this <base href=”">. When you use a base href on your site, all relative links are from that URL. So a link to “index.cfm” from the URL “page/somesubfolder/” will go to “index.cfm” instead of “page/somesubfolder/index.cfm”.

But Mr. G, I-control-the-world, A. Bottie chooses to plough right on throught my base href scoffing at my pityful attempt to direct it to the content.

This is why I am continually getting error reports from sites where I have something like <cfparam name=”URL.id” type=”numeric”>

Instead of getting a normal link like index.cfm/page/viewproduct/id/34, the bot is interpreting URLs like index.cfm/page/viewcat/index.cfm/viewproduct/34 and this is generating an error report which is automatically emailed to me every time the Googlebot goes into action on one of our client sites.

For FS, how hard is it for the Google engineers to intrerpret that there is a standard base href on the page. Or is it that the Googlebot is hedging it bets and checking to see if the base href was a mistake and there IS a valid page at it’s conjured link URL.

ps. I’ll probably get a permanent thumbs down in the Google ranking for this – Mr G.Bot tie knows when hes being insulted and he doesn’t like it. You don’t fuck with the bot – he controls the Internet, he can break you like that

Navicat – Top Dog MySQL Manager

Here at Digital Crew, we use MySQL for just about everything only using other database types when clients force us to… yeuck. MySQL Rocks. But you know that.

What you mightn’t know is that there is an absolutely awesome program for managing MySQl called Navicat. I have just been saved hours of work of tedious syncronising data between two databases using one of Navicat’s many excellent features.

Navicat

This program is simply excellent – it will pay for itself in no time and has my highest endorsement.

GZip Encode your CFML

There is an excellent article in the latest ColdFusion Developers Journal on tutor help on how to enable GZip compression on your ColdFusion pages for free.
First, HTTP Compression is a great way to speed up your Website and lower bandwidth utilization all at the same time. In this example, your ColdFusion server (6.1 and above) will encode CFML output using GZIP and have the browser decompress this data on the fly. In a corporate environment, Webmasters may choose to go with third-party software such as Port80 Software’s httpZip, which can compress other files as well, including .js, .css, and your HTML files. In this example, we are only compressing the generated HTML output from a .cfm template execution.

I just implemented it on one of our servers in 2 minutes. It reduced a 7Kb page to only 2306 bytes.

Date: Wed, 28 Mar 2007 23:01:45 GMT
Server: Microsoft-IIS/6.0
Content-Type: text/html; charset=UTF-8
Content-Encoding: gzip
Content-Length: 2306

200 OK

Best CSS Tip Ever

Stop fucking around Morris, just set the overflow to auto on container divs to get them to expand their height to fit all elements. Simple. Store that to memory, never cry over floats messing up your homework help and layouts again.

There are other methods, but this is the best one. If I catch you, using <div> again you will be beaten… badly; yes I mean you!