Search Blog

Recent Comments
Re: Stats plugin ported to Model-Glue (by J.mihai at 12/14 8:52 AM)
Re: CFC DAO Generator (by rui at 7/04 5:42 AM)
Re: Updates to the DAO, Bean and Gateway generator (by rui at 7/04 4:49 AM)
Re: CFC DAO Generator (by fwscott at 6/22 7:03 PM)
Re: CFC DAO Generator (by dan at 6/22 12:38 PM)
Re: Trip to Thailand (by fwscott at 3/27 2:10 AM)
Re: CFC DAO Generator (by fwscott at 3/27 2:03 AM)
Re: CFC DAO Generator (by Garry Harstad at 3/26 12:30 PM)
Re: Trip to Thailand (by Niqui Merret at 3/23 4:51 PM)
Re: Adding a blogger ping utility to BlogCFM (by fwscott at 2/20 9:01 PM)
Categories
Annoucements (1 entries)
BlogCFM (3 entries)
CFC Generator (5 entries)
Coldfusion (11 entries)
Fusebox (2 entries)
Greasemonkey (1 entries)
Misc (3 entries)
Archives
November 2005 (2 entries)
October 2005 (1 entries)
August 2005 (1 entries)
July 2005 (4 entries)
June 2005 (5 entries)
May 2005 (7 entries)

Powered by
BlogCFM v1.01

May 2005
First experience with BlogCFM
Post a Comment
Bugs found:
  1. FckEditor shipped with BlogCFM would not work with Firefox with the default toolbar turned on.
  2. Couldnt edit a post over a certain length. (damn typos)
  3. If blogCFM is not installed to the root of your website and/or the site does not have access to /CFIDE all the cfform validation will fail and will generate tons of 404 errors in the web server log.
Fixes:
  1. Downloaded and installed the latest version of FCKEditor.  It was simple, the only changes I had to make were in the FCKEditor config files so it would work with ColdFusion.
  2. lines 857-858 of blogcfm.cfc had the wrong cfsqltype, had to change it to cfsqltype="cf_sql_longvarchar"
  3. Had to modify all cfform tags and add an attribute of scriptsrc="#variables.blogConfig.webRoot#/CFIDE/scripts/cfform.js".  This sounds bad but Dreamweaver's advanced find and replace makes it easy.
Now that I had everything fixed that I found wrong. It was time to do see how easy it was to make modifications.

First thing I didnt like was to have the basic toolbar show by default for the FCKEditor and I couldnt find an option to change the default.  This seemed like a great first experiment.
  1. ALTER TABLE blog_config ADD HTML_EDITOR_DEFAULT_STYLE varchar(25)
  2. Added HTML_EDITOR_DEFAULT_STYLE to the getBlogConfig query in blogcfm.cfc
  3. Added HTML_EDITOR_DEFAULT_STYLE=<cfqueryparam cfsqltype="cf_sql_varchar" value="#arguments.details.HTML_EDITOR_DEFAULT_STYLE#"> in the update statement of saveblogconfig()
  4. changed <cfparam name="toolbarSet" default="#variables.blogConfig.HTML_EDITOR_DEFAULT_STYLE#"> in entry_edit.cfm
  5. added <cfparam name="FORM.HTML_EDITOR_DEFAULT_STYLE" default="Basic"> under the isDefined("form.blogConfig") in edit_entry.cfm
  6.  added
    <br>
    <b>HTML Editor Options</b><br>
    Default style: <select name="HTML_EDITOR_DEFAULT_STYLE">
        <option value="Basic"<cfif blogConfig.HTML_EDITOR_DEFAULT_STYLE IS 'Basic'> SELECTED</cfif>>Basic</option>
      <option value="Default"<cfif blogConfig.HTML_EDITOR_DEFAULT_STYLE IS 'Default'> SELECTED</cfif>>Default</option>
    </select>
    to admin/index.cfm
That was all I had to do to make a new setting show up in the admin screen and have it be applied to every instance of the blog entry editor/creator. 

Considering I knew nothing about BlogCFM before, these changes were easy to make and find where to put the correct new code.

Next on the list will be creating a Links section, will keep you posted on how that works out.
Posted by fwscott at 10:43 PM | Comments (1)
 
Subscription Options

You are not logged in, so your subscription status for this entry is unknown. You can login or register here.

Re: First experience with BlogCFM
"Had to modify all cfform tags and add an attribute of scriptsrc="#variables.blogConfig.webRoot#/CFIDE/scripts/cfform.js". This sounds bad but Dreamweaver's advanced find and replace makes it easy. "

I'm curious as to why you had to add that? Since by default, coldfusion looks for that in /CFIDE/scripts/cfform.js right? Which in a well configured server would be a virtual mapping on every site, but even so in your case..

oh.. I see you've got it in the /blog/ directory. Got it =) But still.. I wish people would set up their servers with the default /CFIDE/ mapping =)

Regarding the firefox issue - that bug was posted in cfopen =) And you picked the correct solution.

Posted by Rick Root on May 20, 2005 at 4:49 PM

Name:   Required
Email:   Required your email address will not be publicly displayed.

Want to receive notifications when new comments are added? Login/Register for an account.

Anti-spam key

Type in the text that you see in the above image:

Your comment:

Sorry, no HTML allowed!