Raymond Camden's Blog Rss

BlogCFC and Galleon updates

27

Posted in ColdFusion | Posted on 05-22-2008 | 6,579 views

I had decided to not work anymore on BlogCFC 5, but with 6 being delayed so long, I gave some love to the 5.X code base tonight. BlogCFC 5.9.003 was released tonight. Nothing major was changed, but I did switch to ColdFish, the code syntax highlighter written by Jason Delmore. This replaces the ancient code I had in there before.

Also released was an update to Galleon. This release fixes an issue related to the past security changes as well as a case sensitivity issue. (Sorry, but you will never convince me case sensitive file systems make sense. Who in the heck wants a file named foo.txt and Foo.txt??)

I also want to point out an interesting article by Ike: Porting Galleon Forums. He is porting Galleon to various frameworks and will be posting about the process.

Comments

[Add Comment] [Subscribe to Comments]

speaking of case sensitivity, this is one of the most popular entries on the onTap framework blog: http://ontap.riaforge.org/blog/index.cfm/2007/12/2...
@Ray,
After I upgraded, I'm experiencing a new problem when using // in the code. What's strange is some of my code sections have disappeared and others have merged together.
Please email me directly some sample entries I can use to test. It's a new code renderer so there is bound to be an issue - and it may be my fault, not the code renderer.
@Ray,
Thanks for your help earlier today. I appreciate it.
No worries. I've got another small bug to fix (ColdFish is cf8 only, so I need to add detection), and that will be in a new build on Tuesday.
Where can I find an older version BlogCFC that will work on CF7?
You would have to get it piece by piece, but you can do so via subversion.
Really? Ouch! Okay, I'll give that a try! I'm guessing I can just go back to before the integration of ColdFish for cf7 compatibility...
Yeah, let me just apologize. In my excitement I didn't even think to check.
Mike, if you get latest from SVN, ColdFish has been updated (by Jason, thanks Jason!) for mx compat. Can please try it and let me know?
Glad I subscribed to this blog - Downloaded the archive today and it crashed miserably under 7 and ran great under 8 - then found this not about grabbing a new version of codefish from the SVN and voila! FIXED

Thanks for all you do, Ray. Cya at CFUNITED!
We're using the comment moderation option. Is there a way to have a new comment to be moderated sent to the administrator or another designated email address? Thanks!
It is sent. All comments are emailed to the admin.
Thanks Ray. Is the simple captcha effective in preventing auto spammers from getting through? Or can one add more letters (and thus complexity) to the captcha?
In my own personal experience the CAPTCHA has helped. I still get spam, but only about 2 per day or so.
Thanks for that. Has someone come up with a pod for blogcfc that is like the blogger.com archive feature? It's a tree directory organized by year and month
(indentation is off on the below cut and paste)

Blog Archive
? 2008 (100)
? June (5)
Weekend Video
Let Freedom Bling
A Conundrum
Not Alexander Rodchenko (but almost)
Pictures from a Train
? May (22)
Weekend Video
The First Mugshot
Assisted
Erupted
Memorial Day Weekend Video
More P.J.s!
Puzzled
75,000
The Greatest
Comfort and Joy
Weekend Video
Covered
Truth and Beauty
Spirit Pictures
Masked
Weekend Video - The Raveonettes
More Freedom
Alluring Images
Freedom Riders
Thinking Pink
Weekend Video - Dylan Tribute
A Short History of Subway Pictures
? April (23)
OMG!
Popel Coumou
Different but Equal
Weekend Video - Flying Ducks
All Colors Together
Bringing Sexy Back
Jose Picayo
Speed Racer
Mark Wyse
Weekend Video - Crouching Tiger/Hooverphonic
Seen off the Street
How I Spent Last Sunday
Cherry Blossoms - Part Deux
The Polk County 8
Weekend Video (and prologue) - Hair
The Fun of the Fair...
Creativity
A Big Question
Weekday Update
Weekend Video - Casey Knowles
We Love the 90s!
Spanning the Globe
Be There (or be square)
? March (13)
? February (17)
? January (20)
? 2007 (37)
Sorry, the graphics such as > and > rotated 90 degrees clockwise did not translate in the above comment.
Not that I'm aware of. It could be done of course.
Ok, thanks. Are tags for the tag cloud called categories in the admin?
I can't get a feed, magazine.cfm, to show up in the newsfeed pod.

Here's the code for magazine.cfm:

<cfcontent reset="true"><cfsetting enablecfoutputonly="true"><cfcontent type="application/xml; charset=utf-8">
<cfquery name="magazine_rss" datasource="mydsn">
   Select * from magazine_rss order by datepublished desc
</cfquery>

<cfoutput><?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0">
<channel>
<title>mysite | Magazine RSS Feeds</title>
<link>http://www.mysite.com/magazine</link>;
<description>mysite Magazine Latest News Feeds</description>
<language>en-us</language>
<copyright>Copyright 2008, mysite , All Rights Reserved</copyright>
<docs>http://backend.userland.com/rss</docs>;
<lastBuildDate>#magazine_rss.datepublished#</lastBuildDate>
<image>
<title>mysite Magazine RSS Feeds</title>
<url>http://test.mysite.com/global/images/PElogosmall.j...;
<link>http://mysite.com</link>;
</image>

<cfloop query="magazine_rss">
<item>
      <title>#title#</title>
      <description><![CDATA[#blurb#]]></description>
      <link>http://mysite.com/magazine/#link#</link>;
      <author>#author#</author>
         <category>#category#</category>
    <pubDate>#datepublished#</pubDate>
</item>
</cfloop>
</channel>
</rss></cfoutput><cfsetting enablecfoutputonly="false">

New York Times feed works great, however it has a file extension of .xml

Do I need to compile this magazine.cfm and output it as a magazine.xml file? If so, how is that done?

Many thanks.
How exactly are you using the feed? You should be using the URL of the feed. So if your blog is at www.foo.com, and magazine.cfm is on some box, www.goo.com, then you would use the feed url of

www.goo.com/magazine.cfm" target="_blank">www.goo.com/magazine.cfm
Yes, the feed code is as follows:
<cfset theURL = "http://mysite.com/rss/magazine.cfm">;
@Rixon Reed - yes

@Richard Steele - Ok, so open that URL in your browser. If you see a valid RSS feed then it should work in the blog too. Don't forget that we cache the front end, so hit your blog with ?reinit=1.
yes it's valid, but no it doesn't show as a feed.
So what happens? Nothing? Have you tried adding some debugging?
Just FYI for anyone interested, the final frameworks article is at http://www.woohooligan.com/frameworks/ - download the source if you want to get the full effect of the sub-article about cfform tho -- that's not a cf hosting account. I may move it to the ontap site once I set up the new site on hostmysite probably this week.
@Richard Steele / Ray Camden

I had the same problem: couldn't get the newsfeed pod to correctly display a .cfm feed. The feed is completely valid and works in all feed readers. The quick solution I used was to save the output of that .cfm file and write a .xml file just like Richard mentioned above. The code I used is quite simple:

<!--- save the output of our feed.cfm into a variable --->
<cfsavecontent variable="myFeed"><cfinclude template="feed.cfm"></cfsavecontent>

<!--- display it (optional) --->
<cfoutput>
#myFeed#
</cfoutput>

<!--- write the variable into a .xml file --->
<cffile action="write"
output="#myFeed#"
file="#ExpandPath('path/feed.xml')#">

You can run this with a scheduler or attach it to the operation that adds items to your original feed. Then configure the pod to read from the .xml file and it will work just fine.

(I realize this is months late and a clunky solution, but oh well)

[Add Comment] [Subscribe to Comments]