RSS feed

Nutsmuggling

Introducing the Events Manager support forum

Hey folks,
just a quick note to announce the opening of the official Events Manager Support Forum.

Events Manager Support.png

If you have any question about Events Manager 2.0, after checking out the docs, please register on the forum and post your questions there.

Events Manager Support 2.png

As you see there are 3 areas so far, bugs, how-to and feature requests. Enjoy!
Davide

Patches for the easy-fckeditor rails plugin

A couple of days ago I discovered the wonderful easy-fckeditor Rails plugin. It’s a fork of the main fckeditor plugin, integrating the EasyUpload plugin. With this marvellous piece of software you can integrate a visual text editor in no time; what is more, file attachments are included out of the box, with no need to implement your own server-side upload actions.

The plugin is fantastic, but there was a small glitch with Rails 2.2, which forbade to upload files. Files upload is an ajaxed action, so you won’t see any error, unless you use firebug, which revealed this problem:

undefined method 'relative_url_root'

After some googling I found this patch which anyway is for the fckeditor plugin. So I tweaked it a bit and here’s the working patch for easy-fckeditor:

app/controllers/fckeditor_controller.rb

198
uploaded = request.relative_url_root.to_s + "#{UPLOAD_FOLDER}/#{params[:Type]}"

becomes:

198
uploaded = ActionController::Base.relative_url_root.to_s+"#{UPLOAD_FOLDER}/#{params[:Type]}"

lib/fckeditor.rb

38
js_path = "#{controller.relative_url_root}/javascripts"

becomes:

38
js_path = "#{ActionController::Base.relative_url_root}/javascripts"

There was another small glitch, due to the interaction with safe_erb.
safe_erb is a super useful plugin which raises an error whenever unsanitized output is printed. This way you never risk forgetting to sanitize your stuff. The problem here is that html text is necessarily not sanitized, otherwise all the html tags would be lost. The trick here is to tell ruby that he can trust those strings. It’s not the most secure solution, but I guess it’s better to have everything but the html text sanitized than nothing…

libfckeditor.rb

15
value = value.nil? ? "" : value

becomes:

15
value = value.nil? ? "" : value.untaint()

I sent this patches to Gaston Ramos, the plugin maintainer, but you can follow my code if you stumble into this issues before the patches integration.

Davide

Events Manager 2.0 released

Ladies and gentleman, Events Manager 2.0 has been finally released.

Events Manager | Nutsmuggling-1.jpg

Events Manager 2.0 is loaded with new features, like Recurring Events, Location Management and RSVP. There’s also a new multi-location map.

Global Map « Test Blog.jpg

Events manager has been brought to you by yours truly, thanks to the sponsorship of Brian Richards and Tyler Suchmann. A special thanks also to Ben Dunkle who has created the plugin menu icon.

Go get Events Manager 2.0 Beta, try it out and drop me a comment here or on the support page.
Enjoy,
Davide

Stay away from #000 and #fff

One thing I’ve learned doing CSS is black and white are not kind to the eye. Hey, that was a rhyme! So I made a poem.

Mr Full Black and Ms Full White
Sure are not kind to the eyes
If you use them to any intent
I’m quite sure you will repent
So leave #000 alone
And #fff on his own
If I were you I’d decree
Using #111 and #eee

Ahem …

Davide

Plugins List 1.0 is out

Hey folks,
I finally managed to put my hands on Plugins List and here’s the long overdue 1.0 version.

I am ashamed to confess that the Shortcodes API introduction had gone unnoticed, so I hadn’t realised that everything I needed to make the plugin more flexible was there already. Bad me. As soon as I started experimenting with shortcodes I realised I had to migrate Plugins List code. And here’s the result.

What’s new? Basically now you can specify the amount of data you want displayed. So, let’s say you just want a simple list with the plugin titles. You just need to do this:

[plugins_list format='<li>#LinkedTitle#</li>']

The placeholders available are

  • #Title#
  • #PluginURI#
  • #Author#"
  • #AuthorURI#
  • #Version#
  • #Description#
  • #LinkedTitle#
  • #LinkedAuthor#

I guess their meaning is self-evident. If you don't specify the format parameter you'll the default format, thesame as Plugins List 0.2.2.

By default, Plugins List only shows your active plugins. If you want to have your inactive plugins displayed as well, add the argument show_inactive='true', like this:

[plugins_list show_inactive='true']

Obviously you can freely combine show_inactive and format.

A note for upgraders: I have changed the shortcode to conform to the Wordpress standards. Make sure you add an underscore. It was [plugins list], now it is [plugins_list]. The option to show inactive plugins has also changed, see the previous example.

If you haven't tried plugins List yet, you can download it here.

Enjoy!

Davide