Archive for the ‘facelift’ category

Facelift mentioned in print

February 1st, 2010

FLIR has recently been mentioned in a book by author Allan Walker entitled Joomla 1.5: Multimedia. This is a first for the project as far as I know, so I thought it was worth noting. Cool stuff! In other news, I discovered that Rackspace’s cloud hosting site has a nice use of Facelift. It looks so nice that I almost paid for some service right there!

About Joomla 1.5: Multimedia

Joomla! is a content management system designed to organize and deliver content within a web site environment. Multimedia provides us with stunning interactive user experiences and wonderful design options, but it requires discipline and knowledge to utilize it effectively so that we do not alienate our audiences. If you want to display more than just text on your Joomla! pages, this book has been designed for you and is a must-read. It takes you beyond the basics of Joomla! and helps to take full advantage this powerful CMS structure to deliver media-rich web content to your site users.

Click through for the relevant page.

» Read more: Facelift mentioned in print

Serious Facelift vulnerability discovered – Details and fix included

December 1st, 2009

Update immediately! A serious directory traversal vulnerability has been discovered that affects all versions of Facelift.  It could allow an attacker to retrieve plaintext versions of any file that PHP can read. This could include your WordPress database settings, for example. It is bad.

A patched version has already been made available at the facelift homepage.  If you downloaded facelift in the last couple days and the zip file was either *2.0b3-B or 1.2.2 then you have the patched version. If not you should either update your Facelift installation or remove generate.php immediately.

To update your Facelift installation, please download an updated version. Overwrite the generate.php in your install with the patched version from the download. You can leave your config-flir.php and all other files alone. The problem only affects generate.php.

Many Facelift plugins are available for Drupal, Joomla, WordPress  etc.  I’ve already contacted as many of these authors as I could and most have already issued fixes.

The problem exists in generate.php and is due to a variable not being properly sanitized. Big thanks goes out of Johannes Herbst for discovering the problem.

If you are using one of the third-party plugins, please update your plugin immediately.

Manually Fix:

The problem can be fixed by changing one line in generate.php:

Facelift v1.2:

$FLIR['output']        = isset($FStyle['output']) ? ($FStyle['output']=='jpeg'?'jpg':$FStyle['output']) : 'auto';

Change To

switch ( $FStyle['output'] ) {
	default: 	$FLIR['output'] = 'auto'; 	break;
	case 'png': $FLIR['output'] = 'png'; 	break;
	case 'gif': $FLIR['output'] = 'gif'; 	break;
}

Facelift v2.0b3

$FLIR['output']        		= isset($FStyle['output']) ? $FStyle['output'] : 'png';

Change To

switch ( $FStyle['output'] ) {
	default: 	$FLIR['output'] = 'auto'; 	break;
	case 'png': $FLIR['output'] = 'png'; 	break;
	case 'gif': $FLIR['output'] = 'gif'; 	break;
}

Facelift 2.0 beta 3 released

October 20th, 2009

Facelift 2.0 beta 3 has just been released and is available at http://facelift.mawhorter.net/download/

UPDATE: If you are experiencing problems with utf-8/anything-that-isn’t-iso-8859-1: Be sure your character set is being properly set.  That means the Content-type header and the content-type in the <head>.

» Read more: Facelift 2.0 beta 3 released

It’s been a busy week!

July 15th, 2009

For all of those curious as to why forum replies have been a little sparse lately, there is a reason.  I’m in the process of moving to a new house right now and I am (finally!) just about done.

Moving is not fun.

Oops… domain was down

July 7th, 2009

Well, I put off paying my domain bill a little too long and Mawhorter.net (and Facelift/Forums/Docs) were all down briefly today.

All is back to being right.

Facelift v2.0 beta 2 released

June 8th, 2009

It’s that time again.  A new version of FLIR is available that fixes the bugs found in beta 1.  Download it now.

  • Backwards compatibility has been introduced into this version.  Your old v1.2 syntax should work without a problem now.
  • Negative line-height support has been added.
  • Detect safe_mode.  PHP safe_mode is now detected and an error is output unless CACHE_SINGLE_DIR is set to true in config-flir.php.  safe_mode causes FLIR’s caching not to work.
  • Hover in IE6 would sometimes break encoding during the hover state: http://forums.mawhorter.net/viewtopic.php?id=346
  • Errors in IE6 and everything still works: http://forums.mawhorter.net/viewtopic.php?id=315
  • The problem with the new CSS declarations causing problems has been fixed: http://forums.mawhorter.net/viewtopic.php?id=302
  • The previous bug was also causing problems with :hover text being rendered improperly in certain circumstances.

» Read more: Facelift v2.0 beta 2 released

FLIR v2.0b2 coming soon…

May 28th, 2009

I just wanted to take a moment to give everyone an update about Facelift.  I have been super busy lately with trying to drum up business and haven’t had a spare moment to give to anything else.

Some bugs have been reported in v2.0 b1 (thanks everyone!) and I hope to have them fixed and a new beta out very soon.  I’m planning on sometime in the next week.

I apologize to people who have been posting to the forums!  I haven’t had much time to respond to all your posts but I assure you I will soon.

Right now I’ve got this new economy partially figured out…

  1. ???
  2. ???
  3. Profit

Facelift v.2.0 beta 1 released–finally!

April 20th, 2009

I know I’ve been dragging my feet a bit on this one but it is for good reason!  I swear!  I have been busy traveling and working on my other site Border Hopping.com (shameless plug! ;p)

Facelift 2.0 is finally here in the form of a beta.

There are several enhancements that I briefly want to go over here.  Better documentation in the form of a wiki is coming too!

Download Now! And report all bugs to the forums!

» Read more: Facelift v.2.0 beta 1 released–finally!

A preview release of Facelift v2.0

March 30th, 2009

Some of the other things going on in my life are causing Facelift to get delayed so I thought I’d provide a preview release of v2.0 to prove to everyone that I really am working on it!

The flir.js file is just about complete (still need to do extensive compatability testing) but I still need to overhaul the backend as well as add/remove some features and work on the plugins.

It works in its current state but I don’t know if I’d want to use it in a production environment.

Consider this a pre-alpha.

Download Facelift v2.0 preview

Click through for a list of some of the enhancements.

» Read more: A preview release of Facelift v2.0

Facelift update: New version due out after new year

December 18th, 2008

It has been a while since the last post about Facelift and I wanted to let everyone know that Facelift is still very much an active project.

The next version will be v1.3 and contain a handful of updates and fixes.  I’m don’t have an exact date when it will be released but it should be sometime after the new year.

Thank you to everyone who has contributed to the project and as always, you can visit the forums for help, comments, or suggestions!

Facelift Downloaded 6,000 Times in the Last Month

September 22nd, 2008

Facelift has been downloaded over 6,000 times in the last four weeks.  I never thought that it would become so popular so fast.  I am actually pretty amazed and just happy that everyone is finding it useful!

Version 1.2 has just been released out of beta and as always, I urge anyone who finds any bugs to report them in the forums.

Look forward to many new plugins as well as documentation on how to make your own — finally!

Facelift v1.2 is finally here!

September 20th, 2008

With much delay Facelift v1.2 is here.  If you are still using v1.1.1 you are crazy, especially now that v1.2 is out of beta. Download Now!

FLIR v1.2 includes so many new features over v1.1.1 that I’m not even going to list them all here.  Not much has changed since v1.2 beta 4 except some bug fixes.

The one thing worth mentioning is the inclusion of a FLIR Javascript plugin entitled RefreshImages.  You can read more about it, as well as keep up with some of the more advanced features of Facelift at the new detailed facelift examples page.
» Read more: Facelift v1.2 is finally here!

Bug in Safari with v1.2b4 – Background Transparency Problem

September 12th, 2008

UPDATE 9/13: I’ve fixed the bug and will be releasing the fixed version sometime tomorrow.

There is a bug in Facelift that is causing all images to be generated with a white background. The temporary fix is to disable GIF/JPG support until I can release a fixed version. You only have to modify one line of code to fix and FLIR will behave as it did before with transparent PNG images.

You can read more about the problem and get the fix here.

Facelift Font Collections

September 10th, 2008

Facelift v1.2 beta 4 introduces a new feature called the Font Collection.  A Font Collection is just that, a collection of similarly faced fonts in various styles.  This means that you no longer have to create a separate entry for Your Font and Your Font Italic.  By combining the Font Collection with the CSS values set in your web page, FLIR can intelligently detect which font variant to use.
» Read more: Facelift Font Collections

Facelift v1.2 beta 4 has been Released

September 10th, 2008

I was all set to release the final v1.2 but instead I went crazy and added a bunch of new functionality.  So, I am releasing v1.2 beta 4.

  • Font Collections
  • Basic Callback Functions
  • Better error handling
  • Bug in generateURL causing HTML not to be sanitized
  • Added functionality/bug fixes for “wrap” mode.  Better line-height support.
  • Rewrote element replacement algorithm. You no longer need to encapsulate plain text in span elements to have it replaced.  The new algo is recursive so it can replace any number of child elements.  You could even run it on document.body if you wanted to!
  • Added flir-image and flir-span classnames to the elements flir creates
  • Javascript Plugin support!
  • Moved DetectImageState code from facelift.js into a Javascript plugin
  • querySelectorAll support for the browsers that support it (Safari, FF3.1 alpha)
  • Font size modifier for cSize in FLIRStyle. You can now specify a font size calculation to be applied against the CSS font size.  For example, if you want the generated image to have a font size that is 140% the one you specified in your CSS you could do cSize:’*1.4′.  All font sizes will then be multipled by 1.4.
  • FLIRStyle.buildURL no longer requires an HTML object to be passed
  • Hover caching problems fixed.  Better hover style support.
  • JPG and GIF support! Set the “output” option in FLIRStyle.  The default output option is auto.  Auto will cause the generated image to be a transparent png if the element doesn’t have a background color set.  Otherwise it will use GIF.
  • Hover now only works with <A> elements.

I am Temporarily Unavailble

September 2nd, 2008

My notebook died and I had to buy a replacement.  I should be back online by tomorrow.

Facelift bug! Browsers aren’t caching images. *FIX*

August 30th, 2008

Bryson on the forums found a pretty big bug today that is causing images not to be cached by web browsers.

This means that each time a user returns to your web page or hovers over a link they are being forced to re-download the generated image.  The image is still being cached locally by Facelift so the images aren’t being regenerated.

This is a pretty huge bug in my eyes and you can either download the fixed version from the download page, or make the following changes yourself:
» Read more: Facelift bug! Browsers aren’t caching images. *FIX*

Bug in IE with Facelift v1.2 beta 3, released fixed version

August 25th, 2008

Shortly after putting up v1.2 beta 3 for download I noticed a problem. It has been fixed and Facelift is back to working in IE again. If you’ve already downloaded v1.2 b3 you can make the change yourself or you could download v1.2 beta 3-2.
» Read more: Bug in IE with Facelift v1.2 beta 3, released fixed version

Advanced Facelift Techniques – 3 Options Examined

August 25th, 2008

Facelift offers several options to handle many different situations.  In this post, we will take a look at a few options that may be useful to your situation. In this post realFontHeight, findEmbededFonts, and checkImageSupport are covered as well as a slightly more in-depth look at the FLIR.init function.
» Read more: Advanced Facelift Techniques – 3 Options Examined

Facelift v1.2 beta 3 is now available

August 24th, 2008

A lot has gone into Facelift v1.2 beta 3 to make it a lot better than previous versions.  This will be the last beta before v1.2 final.

Upgrading

To upgrade, move the following files to your facelift folder: flir.js, generate.php, and inc-flir.php. Also copy the files in the plugins directory if needed.

config-flir.php has not changed and therefore does not need to be modified.
» Read more: Facelift v1.2 beta 3 is now available