← Home

A new code repository for useful stuff at artweb-design.de

Plugin: Bundled CSS and Javascript assets

Bundle your CSS and Javascript ressources and compact them on the fly for faster page load times through potentially far less HTTP overhead by simply installing a small plugin.

You can read more about this plugin in this article: Rails plugin: Blazing fast page loads through bundled CSS and Javascript.

And you can find the source code here:


Plugin: Allow custom column types in your migrations

Rails' migrations rock. Totally. But when you want to change a database column to some vendor specific type (like varbinary for MySQL) you notice that Rails doesn't hand over control that easily here like it does elsewhere in ActiveRecord: you're not allowed to use any custom type by default.

Fortunately this is easy to change from within a plugin and this one does the trick for you:


You can read more about this in the following article: Allow custom column types in your migrations

Plugin: Pagination for Mephisto's article lists

This plugin is for those of you who find pagination of articles on their blog sections (categories) still useful and want to add it to their Mephisto installation.

It only comes with very basic pagination functionality like you can see on this blog's homepage, but I believe that's enough for most cases. You can read more about how to install and use it in this blog article: Howto use: Mephisto article list pagination plugin.

And here's the source:


Patch: Inverse captcha for Mephisto blog comments

Add an outer flood gate to Mephistos already very good spam-protection through an "inverse captcha" mechanism (no JS, just CSS, even falls back/plays nice with no-CSS clients).

Here's the code:

http://svn.artweb-design.de/stuff/patches/mephisto/inverse_captcha.diff and

Update: I've revamped this as a plugin in the meantime. You can find the code here now: Inverse Captcha for Comments.

You can more about this in this article: How to add a floodgate to Mephisto's nearly perfect spam protection

Please note that you'll only be able to actually apply the first of these patches. The second patch is filed for my personal backup and applies only to my own theme (that you can see here on my blog) so you'll need to tweak this one according to your own theme. Feel free to check-in or send me patches that apply to available Mephisto themes.

Patch: Mephisto comments list filter

When you recieve lots of spam the comments list in your Mephisto admin interface will get very, very long after a short while. If you want to check the list for false positives (which is the whole purpose of retain the comments at all) this get's unnerving very quickly and you might find you wanting to bulk delete all comments containing certain typical keywords.

You know what I'm talking about here? Then this patch might be for you. It adds a simple form text field to your comments list where you can specify a keyword. If you "submit" the form (by pressing enter) the comments list will get filters by this keyword.

Here's the code:


You can read more about this patch in this article: Patch Mephisto to add a comments list filter