Archive

Archive for March, 2008

Set up fckeditor with Safari 3

March 18th, 2008 2 comments

Note this article is a couple of years old… I’ve given up on the folks who make fckeditor. We use Firefox now. (Jan 5, 2011)

1. Set the “this.EnableSafari = true ;” in “fckeditor.js”

2. Open the file “fckeditor_php5.php”
Then look for the function called “IsCompatible”
Add a new boolean “else if ( strpos($sAgent, ‘KHTML’) !== false )”
and add:
“$iVersion = (int)substr($sAgent, (72 + 27), 5) ;
return ($iVersion >= 3) ;”

3. Enjoy.

Here’s the function below…

function IsCompatible()
{
global $HTTP_USER_AGENT ;

if ( isset( $HTTP_USER_AGENT ) )
$sAgent = $HTTP_USER_AGENT ;
else
$sAgent = $_SERVER['HTTP_USER_AGENT'] ;

if ( strpos($sAgent, ‘MSIE’) !== false && strpos($sAgent, ‘mac’) === false && strpos($sAgent, ‘Opera’) === false )
{
$iVersion = (float)substr($sAgent, strpos($sAgent, ‘MSIE’) + 5, 3) ;
return ($iVersion >= 5.5) ;
}
else if ( strpos($sAgent, ‘Gecko/’) !== false )
{
$iVersion = (int)substr($sAgent, strpos($sAgent, ‘Gecko/’) + 6, 8 ) ;
return ($iVersion >= 20030210) ;
}
else if ( strpos($sAgent, ‘KHTML’) !== false )
{
$iVersion = (int)substr($sAgent, (72 + 27), 5) ;
return ($iVersion >= 3) ;
}
else
return false ;
}

NB for Safari 3.1 the line should be:
$iVersion = (int)substr($sAgent, (72 + 32), 3) ;
This line reads the HTTP_USER_AGENT and reads the version number as an integer.

Categories: code Tags:

Control which file the Finder opens

March 6th, 2008 No comments

Q. I have two versions of the same program installed and I need to use the older version to open the files. I’ve tried to set the default in the Finder but it always seems to open the newer version.

A. While you can select a file in the Finder and choose “Get Info”. Then set the default application to open a file, your Mac may open the wrong applications that you have double-clicked. In the pre-Mac OS X days, your Macintosh would open the legacy file based on the “Creator” code in the Resource fork, which was used to store file resources such as a finder icon or image preview. Mac OS X has done away with the Resource Fork for compatibility reasons.

Without the application’s “creator” code, your Mac may have no idea what program should open the file. Like Windows and Unix systems, the Finder now uses the “dot file extension” in the file name to determine the file:application relationship. The Finder stores this information in it’s “com.apple.LaunchServices.plist” file. If you cannot set the default application, this “plist” may be corrupt. To fix it, Trash the file and the Finder will create a new one with the default relationships. However some applications such as those from Adobe, Microsoft and Quark will always tend open with the highest installed version. So dragging and dropping on the dock icon or choosing “Open With” from the contextual menu may be only way to control the behavior.

Categories: Articles Tags: ,

Open Quark 6 and 7 files in InDesign

March 6th, 2008 No comments

Q. We have many files in QuarkXpress and our client has asked us to send them InDesign files. We tried to open the QuarkXpress files in InDesign but we get an error about a missing plug-in. How can we convert the files to InDesign format?

A. InDesign was able to open QuarkXpress files in the past, however InDesign can longer open files created by QuarkXpress version 6, 7 or the soon to be released QuarkXpress version 8. Well, not without help any way. You can “Export Layout as Project” and choose version 6. Then open the file in version 6 and “Save As” version 5. Afterwards open the file in QuarkXpress version 5 and save it again to get rid of any stray version 6 code. Down-saving a file this way means that your file will lose all of the newer effects in your files.

For around $200 per license you can use Markzware’s Q2ID v3 plug-in for InDesign to open any “Collected” QuarkXpress file. It works with 90 percent of the items in the file and preserves image links and font information. Q2ID v3 includes the plug-in for InDesign CS2 and CS3.

We are Markzware resellers, contact us if you would like to buy a copy of Q2ID

Categories: Articles Tags:

Can’t Open new Word “.docx” files

March 6th, 2008 No comments

Q. Our client has recently started sending us Word files that we cannot open. They say they have the latest version of Word. Is there another way that they can save their files?

A. Your customer has recently upgraded to either Word 2007 on Windows or Word 2008 on Macintosh. Previous versions of Word and Excel stored the data that made up the file in a binary format. This made it difficult to work with, outside of Microsoft’s suite. If you take a close look at the filename you may see that the file extension is “.docx”. This is a new format from Microsoft based on “Office Open XML” format – making the files more portable. This means that more features can be contained in a single document using specialized document objects.

If you have the new Word installed you can avoid complications when sending out files by choosing “Save As” and selecting “Word 97- 2004” format. That will ensure that the file is saved in the “older, more familiar” file format. If you need to, you can choose “Preferences” from the “Word 2008” menu on your Mac and choose “Word 97 – 2004” format from the Word tab. On a PC, click the “Office Button”, go to “Word Options” and choose “Word 98-2003” format.

Microsoft has also made file converters available for converting “.docx” files on a Mac or PC without the new Office Suite. On a PC you can install the “Office Compatibility Pack” (http://support.microsoft.com/kb/924074). For Macintosh you can download the Open XML converter at (http://www.microsoft.com/mac/downloads.mspx)

Categories: annoyances, Articles Tags:

This site has been visited times since March 2000.