MainelyDesign.com Blog

Showing articles 111 - 120 (147 total)

Making Valid Email (mailto) links in CakePHP

Posted on 08/25/2009 at 04:59 pm | Viewed 15,570 times | 0 comments

It's easy to make an email address using the HTML's helper link() function.  All you need to do is have an email address appended with the string 'mailto:' (just like in regular ol' HTML). Here's my quick and dirty function to attach it if it doesn't exist: if(stristr($image['link'], '@') and stristr($image['link'], 'mailto') === false) {...

Changing Filetypes Shown in SWF Upload File Browser

Posted on 08/25/2009 at 04:17 pm | Viewed 16,741 times | 0 comments

It's easy to change which file types are allowed to show up (and are displayed) when you browse for files to upload through SWF Upload.  SWF Upload makes it easy to upload multiple files in PHP. I just had to hunt through some source files until I found this in my SWF Upload config. (goes in the new SWFUpload() function) <script...

Can I (Un) Sharpen an Image After Resizing it with GD in PHP?

Posted on 08/25/2009 at 10:19 am | Viewed 13,438 times | 0 comments

This answer was located at Drupal Forums on 8/25/09.  Answer written by dpfiffe . I've been toying with the idea of making my personal image gallery online, so I can tag, etc.  I want to store a large file and resize on demand, so I became interested in finding out how to sharpen after resizing an image in PHP, using GD Library. Read the...

What are the elements of a good landing page?

Posted on 08/24/2009 at 11:31 am | Viewed 10,926 times | 0 comments

This answer was located at SEO Chat on 8/24/09.  Answer written by new_seo . This is an excellent example of a thorough forum answer.  The specific design elements, and expected user behavior, associated with an effective landing page are discussed.  This posting was supposed to be regarding Google's Rating of your landing page, however...

Network Solutions' Flawed .htaccess and Mod_Rewrite Rules Implementation

Posted on 08/06/2009 at 02:38 pm | Viewed 34,551 times | 7 comments

I can't believe it!  I spent hours trying to get the mod_rewrite rules working in .htaccess on Network Solutions' servers.  Everything I tried didn't work.  Using the default .htaccess (from Cake distribution) failed.  I've used the distribution on several servers and never had any issue with the rewrite rules.  However, Network Solutions's...

Cheatsheet for Creating .MOV Files from .VOB files (DVDs)

Posted on 07/30/2009 at 11:38 am | Viewed 11,812 times | 0 comments

Every now and again I need to take a video from a promotional DVD and put it on a client's web site.  I use a handy utility that will convert almost any video file into a flash video (.swf/.flv).  The hard part usually comes from having to rip the video from the DVD.  I use MediaCoder .  It's Open Source, easy to use, and extremely...

TinyMCE Doesn't Work in IE8

Posted on 07/24/2009 at 11:54 am | Viewed 26,789 times | 4 comments

I was training a client how to update their web site using Site Avenger when the strangest thing happened- no copy was showing in TinyMCE.  No matter what I pasted the tiny editor would remain a nice, plain white.  I didn't think to try typing directly into TinyMCE.  No matter, a click on the HTML button to view the source revealed the...

Phantom Whitespace Below Img in Firefox

Posted on 07/22/2009 at 10:24 am | Viewed 12,871 times | 0 comments

I've come across this thing a few times before- there's a strange space below images in Firefox, but not in IE.  I finally found a nice explanation as to why it happens, which I wanted to post here. Images are displayed inline by default.  When you are using an image as a block (like when you want an image to take up the entire top half of a...

Faking min-width CSS style in IE6 and IE7

Posted on 07/16/2009 at 01:50 pm | Viewed 13,078 times | 0 comments

It's a hack... but it's needed to make a truly cross-browser fluid layout.  It's simple, if you want to implement min-width in IE6 and IE7, use the following CSS code: (I didn't create this originally, sorry, lost the source) /********************* ** IE 6.0 min-width hack ********************/ * html div#contentWrap {...

Avoiding Flash (.flv) 404 Errors on IIS 6 (Windows 2003)

Posted on 07/15/2009 at 11:11 am | Viewed 13,938 times | 1 comment

An interesting thing happens on Windows 2003 Server (IIS 6) when you try and play a .flv file through an embedded shockwave player...nothing.  Well, actually you get a 404 error.  Fixing the .flv 404 error is simple All you need to do is tell the IIS server that the MIME type for .flv exists.  Then, the web server can send the appropriate...

    7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15   

Meet Site Avenger - Hosted Content Management System

Powered By: Site Avenger | Site Production: Saco Design