I'm happy to announce the beta of BlogCFC 4.0. I won't be going over all the changes since 4.0 began, but just the most recent changes. While this is a beta, I've been running the bits for many weeks now and in general, things have been stable. You may download the bits here.
These are the changes in the last update:
- Search Stats added. See them at the bottom of my stats page.
- Two ways to fight trackback spam. First, all TBs send you an email, and the email contains a link for one click removal. No need to logon - just click the link. Secondly there is a "nuclear" option. You can specify a list of keywords that will always kill a TB.
- So, one of the things I hated was when I would begin writing a post, get busy with something else, return, hit Save, and get a blank screen. This is because my session timed out. The editor will now show a u/p login form. Once you login, your edits will be preserved. What is especially nice about this is that you can add a JavaScript bookmark to your browser toolbar to let your add blog posts much more quicker.
Archived Comments
Can I make one suggestion? The searches in the stats are nice, but they would be a lot more useful if you could make them a link so I could go and see that someone else searched this blog for x, and then with one click I could see the results they got.
Done. I will be refreshing the zip in a little while - as I think I found a bug.
Hi Ray
Did you spend some thoughts about the date-format, i.e. did you allow for specifying the date mask for a new entry?
You remember, I reported that in German/Swiss notation the date always got misinterpreted.
BTW: search is nice ... but, how about marking the hits? I did a search for "trackback", deliberately. I expected some, got lots of articles. Seeing what is relevant, i.e. my search keyword would be a great enhancement .. I think.
Martin: Nope, no work on date formats. Post 4.0. Showing the hits - well, I could do that - the slow way would be to do a search each time and then cache. A bit too much work for something so small though.
Someone else pinged me on it - so it is in my mind. Definitely post 4.0. :)
Hi Ray,
I could find a bit time to checn new beta and here are my notes.
Errors:
- MySQL script has latin1 for database create processes. They must be changed as utf8 for MySQL 4.1.x and 5.x. (Otherwise error at line 684 on blog.cfc)
- When I try to add a new entry after login, it asks second time login information on popup screen.
- Error at line 1050 on blog.cfc. I think in "tblblogsubscribers" tabel there must be a field as "blog".
- Error at line 180 on editor.cfm. "form.categories" is not defined when there is no category selected while entering a new category. This is problem while adding a new category with a new entry wtihout selecting one of the old categories.
- I was at dinner and back again. My session is expired after some test and I got following error.
Invalid list index 3.
In function ListGetAt(list, index [, delimiters]), the value of index, 3, is not a valid as the first argument (this list has 2 elements). Valid indexes are in the range 1 through the number of elements in the list.
The error occurred in E:\SERVER\Apache2\htdocs\blogbeta\index.cfm: line 176
Called from E:\SERVER\Apache2\htdocs\blogbeta\index.cfm: line 136
Called from E:\SERVER\Apache2\htdocs\blogbeta\index.cfm: line 99
Called from E:\SERVER\Apache2\htdocs\blogbeta\index.cfm: line 83
Called from E:\SERVER\Apache2\htdocs\blogbeta\index.cfm: line 1
174 : <cfif len(username)>#application.resourceBundle.getResource("postedby")# : #username# | </cfif>
175 : <cfloop index="x" from=1 to="#listLen(categoryNames)#">
176 : <a href="#application.rooturl#/index.cfm?mode=cat&catid=#listGetAt(categoryIDs,x)#">#listGetAt(categoryNames,x)#</a><cfif x is not listLen(categoryNames)>,</cfif>
177 : </cfloop>
178 : <cfif allowcomments>| <a href="javaScript:launchComment('#id#')">#application.resourceBundle.getResource("comments")# (<cfif commentCount is "">0<cfelse>#commentCount#</cfif>)</a></cfif>
Would be nice:
- A Unicode supported configuration file such as an XML file etc. While we can not use Unicode chars direct in blog.ini file such as blog name etc.
- Unicode support for MSSQL also. There are still problem for Unicoe when MSSQL has been selected as DB.
- A web based admin interface insteda of ini file would be nice. I would suggest Andrea Veggiani's AVBlog admin features. (http://www.veggiani.it/proj....
- Category sort opportunity would be nice. We can decide order of categories etc.
- A preview feature for comments would be nice.
- I want to write my name correct in your blog Ray! :)
I hope these helps for a better version.
Ah. I have forgotten.
I have tested on following system.
- Win MCE2005 OS
- ColdFusion 7.0.1 & hotfixes
- Apache 2.0.55
- MySQL 5.0.15
- mysql-connector-java-3.1.11
:)
1) Can this be fixed by just changing set latin1 to set utf8?
2) I'm not seeing this. I can logon, post, and don't get prompted.
3) Your db must be old. The install scripts should have the right value. Ahah! MySQL is missing the blog column. Added.
4) Fixed.
5) Hmm. That one doesn't make sense. The code looping over the list categoryNames, which should have the same length as categoryIDs. Take a closer look at your blog entry and see if anything is wierd with it.
I'll post a new build in a few minutes.
1) Yes.
2) Same in every try.
3) :)
4) ok.
5) I will test again with new beta when it is available.
this might not be the best place for this but, I couldn't tell if my question went through on your "submit your question" section of your site.
Just wondering if you could go over when to stick a cfc in the application scope. I have been looking at your code for blogCFC because I am trying to write a free email marketing/newsletter app and I'm trying to figure out some "best practices" and if my app should be built like you built blogCFC (completely encapsulated by one CFC).
your thoughts?
-Steven
I would say you should always cache the CFC. It is like any other piece of application data. If it only needs to made once, than make it once.