fusiongrokker

Entries for month: July 2008

Commencing Radio Silence...

I'll be away camping this weekend, so if you're leaving comments on my awesome plugin posts and I'm not answering, that's why! I'll be back Sunday afternoon. See you then!

Posted in Misc | No Responses Yet July 25 2008

Comment Whore: Recent Comments Summary Plugin for Mango

I did say I was going to explore this whole Mango plugin thing, right? Yeah, thought so.

Today I've got a cool little plugin for Mango that adds a comments summary screen to the admin. I didn't like having to sort of "dig" for my post comments, so here they are all on one screen. It shows your 10 most recent posts and all comments to them. Links are provided to edit or delete them, for quick access.

I think this one has the potential to become a pretty badass plugin, but only through feedback from someone like yourself. So if there's something you love, or hate, or think needs to be added, leave me a comment and let me know.

Comment Whore is a Mango Blog plugin that adds a comment summary screen to the main nav of Mango Admin. I made this because I didn't like the interface for viewing and managing comments.

At the moment, it makes use of the existing edit and delete functionality (for quickly deleting spam), with the caveat that after editing or deleting, you're not taken back to the comment whore screen (much to my own chagrin, I assure you!). This is a very early rendition of what I hope will become an awesome plugin. I'd really like to get some user feedback on what you would like to see added or changed, so comment away!

 

Download the latest version: Comment Whore Beta1 (0.1)

 

I have a pretty sweet surprise lined up for you tomorrow morning, too! :)

Posted in ColdFusion | Mango | No Responses Yet July 25 2008

Burnt Mango: Mango Blog FeedBurner Plugin

I'm happy to officially announce the first beta release of Burnt Mango, my FeedBurner plugin for Mango Blog. Download it on the Burnt Mango project page, and let me know what you think!

From the project page:

BurntMango is a simple Mango Blog plugin that allows you to replace the feed urls that your blog readers see with the URLs provided by FeedBurner. It works with all skins that properly implement the Mango RSS/ATOM feed url tags. (Which should be all of them, right?)

Download the Latest version: Burnt Mango Beta 1 (0.1)

Provide Feedback: Bug reports and feature requests can be submitted here (link coming very soon!)

Change Log:

  • v0.1 -- 2008-07-24
    • Initial release

Posted in ColdFusion | Mango | 1 Response July 24 2008

Override CFSelect validation so that it “Just Works”

It's always bothered me that CFSelect validation only worked for multiple-select (list) boxes, and that we were left to our own devices to validate single-select (drop down) inputs. A few weeks ago I found a comment on Ben Forta's Blog that describes how to override the default validation function to properly handle single selects. The one caveat is that, since by nature a single-select input will always have one option selected, you have to have one invalid option. Generally I make it display, "Choose One:" or something like that. The value must be "" (not even a space).

To override the validation function, simply include this in your JavaScript somewhere. I put it in my global JS include so I never have to think about whether or not I'll need it on a given page.

var _CF_hasValue_old = _CF_hasValue; _CF_hasValue=function(_b,_c,_d){ if (_b.type == 'select-one'){ var bSelected = false; for (var i=0; i<_b.options.length; i++){ if ( _b.options[i].selected == true && _b.options[i].value != '' ) { bSelected = true; break; } } return bSelected; }else{ return _CF_hasValue_old(_b,_c,_d); } }

Use it like so:

Again, I can't take credit for coding this. I found it on Ben's blog, and thought it should make its way into the various aggregators.

Posted in ColdFusion | JavaScript | No Responses Yet July 24 2008