Apr 22
I have, apparently, been using BlogCFC for 465 days now! I love it! Its great! One of these days I'll put some thing Ray's way from his wish list.
I use BlogCFC myself and I've integrated it into Farcry for Dott and I've also recently set up a copy of BlogCFC for one of the Dott Projects, New Urban Farmers.The New Urban Farmer's Blog is for people who are involved in the project to post their stories and updates as the project progresses. This means that there is potential for a lot of posters/users on one blog.
BlogCFC can quite happily handle multiple users, but there's no way to manage them other than to hack them into the database. I didn't really want to be having to add records to the database everything the Senior Producer on the project needed someone new adding, so I finally got around to writing a user manager component.
It's not massively complicated and I have some ideas for extending it (and BlogCFC) to allow better security for admin, moderator and author functions within the admin, but here's a first draft.
Download the attached rar file and drop the files into the appropriate places on your blog.
You'll need to add the following line to your Application.cfm to load the component.
<!--- load User --->
<cfset application.user = createObject("component", "org.camden.blog.users")>
And the next line somewhere in the adminlayout.cfm, so that you can access the page from the admin.
<li><a href="user.cfm">Users</a></li>
The User manager gives you a list of the users in the database and links through to a form that allows you to edit the user's details.
You'll notice that there's a "Generate Password" tick box. If you clear the password and confirm password input boxes and check this box, a lower case phonetic password will be created for you. At the minute you'll need to go back into the form to see the new password, which is mildly annoying, but it works for the now.
To give credit where credit is due; the password generator is based on a tag written by Fabien Meghazi called aGrPassword, which was apparently inspired a javascript function by Michael Hoffman. The tag was starting to look a little bit old, so I took it apart and put it back together as too cfc methods, but is basically the same code with a new spin on it.
Other things I'm thinking about looking at with this.... - Allowing management of users for multiple blogs
- Restricting users to a specific blog
- Multiple Role types (which I mentioned already)
Mar 13, 2008 at 9:39 PM This sounds good Stephen, i'll download and have a play. It's something that has been missing in BlogCFC.
Mar 13, 2008 at 9:39 PM Hey Stephen, Have you done any more with this, or did you find this implementation worked well?
Mar 13, 2008 at 9:39 PM To be honest it met a requirement and I never got around to extending it any further.
Was there something specific you were after?
Mar 13, 2008 at 9:39 PM Basically i need a public login system where users can login and see posts that have been assigned to them only. One not use email i hear you ask (maybe) - RSS, comments.
Mar 13, 2008 at 9:39 PM Hey Stephen, @ line 93 of user.cfc you have 'VALUE' and not 'VALUES' - it cause an issue om MSSQL.