Raymond Camden's Blog Rss

BlogCFC 3.8 RC Released

24

Posted in | Posted on 07-12-2005 | 3,184 views

Some more changes in this release:

  • Both the editor and comment window are a bit bigger. The form fields now stretch if you widen the window. I turned on toolbars... why?
  • Spellchecking! - Well, not really. But if you install the Google toolbar, you can use the "Check" button when writing posts. Can I take credit for this?
  • SES URLs now use the day. So the format is: YYYY/MM/DD/TITLE. This means you only have a problem if you use the same title in the same day. I actually made the code support the old beta format as well, and may allow folks to change back and forth.
  • The readme and word doc are updated.
  • The version number is now 3.8.
  • Various other small minor changes that are layout related.

This is the Release Candidate version which means I think it is good to go - but I'd like to have some feedback before I make it official. You can download the software here.

Comments

[Add Comment] [Subscribe to Comments]

I think the i18n people are going to have something to say about the date format (mm/dd vs. dd/mm) in the URL ;-)
I have installed and setup BlogCFC 3.8 RC and it doesn't seem to work properly in Firefox. I am able to enter designmode and login but when clicking "Add New Entry" I get an empty popup.

In IE6 it all works perfectly. Is there an issue with Firefox with this new version. I would hazard a guess at the problem being a session issue.

Any ideas on an otherwise great application.
ROB:I thought YYYY/MMMM/DD was more European than American? Normally we do M/D/Y - right? I'd say Y/M/D is less America.

DAVE: I've seen this bug before. It occurs when the code that loads the editor is the same code used by SimpleContentEditor. Look in layout.cfm and confirm you see

function launchBlogEditor(id)

if it still says lauchEditor, you are using the wrong version. The zip should NOT have that in it.
RAY: I see function launchBlogEditor(id) in both the layout.cfm where the javascript code is located and in the index.cfm where the actual call to the function happens.

I used the code from this post (blogbeta.zip).

If it was this bug then why would it work in IE6 but not firefox.

Could it be that the session is not carrying over to the new window in firefox and so this code is happening in editor.cfm:

<cfif not isUserInRole("admin")>
   <cfabort>
</cfif>

Any ideas - would hate to have use IE!!
Hmm. Modify your code so that before the cfabort, you say something. If that shows up then, let me know. I'm using the same code here, and in Firefox, and it runs fine.
Hurray! Problem solved. It was a session issue of sorts!! In my blog.ini I had the url set to: blogURL=http://localhost/blog/index.cfm

I was then calling the page from 127.0.0.1 and firefox is a lot more sensitive than IE.

I changed the url to:
blogURL=http://127.0.0.1/blog/index.cfm

and all is now working - it is always the simplest things that I miss.

Thanks for your help. - now I just need some content!!
Does BlogCFC support multiple users posting to the same blog under different usernames? Kind of like a team blog?
Yes, and has for a while. THe docs cover it. You can use it in the 'real' release or the RC.
Damn... I was hoping to submit some css suggestions. I've almost got a complete skin manager drop in for it with more than just nifty curves support. I'll see how this new one affects it.
I can't get the SES URLs to work - they display fine but they don't take me anywhere nor if i paste them in the address bar - am i missing something?
John - do you mean MY blog, or your blog? If your blog, pls send me the URL (and tell me your web server).
my bad - i'm running it locally to test stuff...Windows XP, IIS5.1, CFMX7/Jrun4 - not much help huh?
John - email me offlist, as it may get more complex. Please email me a sample link. Also tell me this. When you click, does NOTHING happen? Does the browser reload but show the same as the default?
Hi,
I saw the that the locale is stored in application-scope, it's set when the app is initialized and read from the ini-file. so it's possible to change the lang/locale for the app but I've to change this behavior (eg storing locale in session) when I want to run the blog in two languages, so that users can select their lang. hmm.. did anybody do that already?
No way to do that "as is" - however - you could kind of cheat. So - here goes an idea - a bit free form - so take it with a grain of salt. Let's say you have the user's desired locale in a session var. You can actually make the application.cfm have 2 different application names. Oh shoot, wait, scratch that. Assume locale is based on a cookie value. You would modify the application name to include the cookie value (be sure to default to one lang). This means then you are running 2 different applications. Have the blog point to 2 different blogs in the ini file, one using one language and one the other. However, both blogs use the same database.

So - they share the same data, but they are two different named blogs using different locale values. Not even a hack per se.

Shoot - you can _skip_ the hack portion if you want and just run 2 blog installs. This means different URLs though.
I see that someone else posed the question about multiple users, and I have gone over the documentation, but I still can seem to get it to work. I've changed the blog.ini file where the users entry is to look something similar to this: users= admin, name1, name2 (with name1 and name2 being in the tblusers), just like the admin account is, but when I try and login it keeps reloading the login page, or resetting the login page. I have two blogs setup, and have altered the ini file to accomodate both, everything is working great except trying to get multiple users to login. I also tried to leave the users equal to nothing, or not listing any users and try to allow all users access and this has the same results, with the login form resetting itself. Any help would be greatly appreciated. Thanks in Advance. (CFPadawan)
Mark: If you really did users=admin, name1, name2 with a space between name1 and name2, then that won't work. The names must not have ANY spaces between them. You should have: users=admin,name1,name2. Also be sure to remember that EVERYTIME you mod the ini file, you must hit your blog with ?reinit=1 in the URL. This refreshes the cache.
Hi Raymond,

I was testing your latest Beta release of the Blog. I set up al the settings I needed to do, created a dsn and put the sql tables and data in the database.
In the coldfusion admin I've created a mapping to the org folder, so that should all work fine.

But, I keep getting an error 'data source not found'. This occurs on line 586 of the blog.cfc.

I then tried to replace all of the #dsn# and #instance.dsn# strings by the string of the actual dsn,
but that still didn't help.

Maybe you can say what the problem is?
thnx!
You got hit by the cache. First, restore the CFC to the code from the zip. Then hit your blog with yoururl/index.cfm?reinit=1.
Of course, also ensure that if your DSN is "foo", that foo is valid. You do this in the CF Admin.
Hi Raymond,

I was testing your latest Beta release of the Blog. I set up al the settings I needed to do, created a dsn and put the sql tables and data in the database.
In the coldfusion admin I've created a mapping to the org folder, so that should all work fine.

But, I keep getting an error 'data source not found'. This occurs on line 586 of the blog.cfc.

I then tried to replace all of the #dsn# and #instance.dsn# strings by the string of the actual dsn,
but that still didn't help.

Maybe you can say what the problem is?
thnx!
I have tried Korean and works good. But in RSS feed instead of Korean chars I got question marks.

Any idea?
Lee: This is the main issue holding up the final release. I have a POTENTIAL fix - please read POTENTIAL. I'm working w/ Paul Hastings. Anyway, try adding this line to the TOP of rss.cfm:

<cfprocessingdirective pageencoding="utf-8">

If this helps, let me know. Btw - my kids are Korean. Small world, eh. :)
Lee - my comment to you wasn't delivered. I do hope you check the thread again. I'll try to dig up another email address for you.

[Add Comment] [Subscribe to Comments]