• Categories

    • No categories

Archive for the 'Web dev / design' category

Polyglot search fix

While implementing the Polyglot plugin on a WordPress site I was working on, I found a bug related to the search form: the plugin appends “/lang-pref/en/” (or whatever other ISO language code) to the search string (in the URL - when using “pretty permalinks” AKA URL rewriting).

This does not directly affect the first search, but the search field is then filled with “my search string/lang-pref/en”, which is confusing for the visitor.

A quick solution is to filter the search query and remove the said string read full article

Quick & dirty fix for Slimbox to attach itself to all images

While implementing yet another a WordPress site, I found myself in the situation where I wanted to display any and all images in lightboxes, but with a minimum of interaction from the editor’s part.

All current plugins that integrate Slimbox (that I know of – this one, for example) actually require the editor to add the rel="lightbox" attribute. But since the editors of this site have no HTML knowledge whatsoever and will be editing in “visual” mode, this hinders deployment.

So I came up with a modification to the actual javascript of Slimbox, to make it identify all links to images and lightboxify them :) read full article

SkinShare tutorial for an age verification using MOOdalBox

MOOdalBox has the the honor to be the first featured post on the SkinShare dev blog, with a tutorial on how to make a quick and easy age verification procedure.

SkinShare age verification

Unfortunately, this is a JavaScript only method – so it’s easily bypassed. I’ll have a version that uses more server-side scripting ready some time soon (for a project I’m working on), but this is cool and can easily enough be used just as a warning.

Tutorial for an AJAX login using MOOdalBox

While browsing the e-magine forums, answering a topic here and there, I discovered very well written and simple to follow tutorial on bulding a modal login dialogue using MOOdalBox. I’m really happy to see such a piece of work – it makes the time I spent writing the scripts even more meaningful. Thank you, Jani ! :)

So, if you ever feel like posting a word on any of my scripts on your blog, or if you feel yo can contribute, do drop me a line, be it over e-mail, on the forums, in a comment or.. anything you may find suitable. And at any time, do ask for directions, and generally.. don’t be a stranger, don’t stay anonymous – we all need to know you and meet your work :)

As always, credit will be given where due ;)

Site / playground / forum downtime :(

As some of you may have noticed (and thanks to those that notified me of the errors), the site was down for two days, the forum had errors, the playground was 404 :(

This was due to a server change I requested because of frequent downtimes on the previous one. However, the new server my site was moved to had certain features differently configured – that rendered my site inaccessible.

First was the php version, that made my WordPress installation go AWOL (had to switch from php 5 to 4 to have it work). That also lead to errors on my forum pages, but those were corrected using some tips from the bbPress forums.

The cause of 404’s on my playground folders was that my .htaccess for that folder used the directive SecFilterEngine Off, in order to disable mod_security (which, when activated, interfered with my Ajax calls). But on this particular folder, mod_security wasn’t configured and thus the .htaccess generated an error and wasn’t correctly interpreted (I used it to disable mod_rewrite in the playground folder too, in order to prevent WordPress’ rewrite rules – but since it had an error in it, the default WP rules were applied and no such page was found).

On a happier note, I just launched the “splash page” of an upcoming community website I’m working on, the one that pushed me to write the code for the vertical kwicks.

Vertical MooTools Kwicks (Fx.Elements), using relative sizes

I started out to make a vertical menu using Fx.Elements (instead of the classic horizontal one), for one of the sites I’m working on and, as always, I chose to use relatively sized elements (namely ‘em’).

However, although Fx.Base has support for specifying the unit, the original Kwicks demo doesn’t play well out of the box specifying ‘em’ as the unit.

Here’s a demo of what I did: vertical kwicks with em sized elements (notice the scalability of the layout – change the font size and it still works flawlessly)

The solution was to replace all occurences of .toInt() read full article

What to expect from mootools 1.2 – The Hash

Although still in development, the long awaited MooTools 1.2 is getting closer every day. Here’s one fresh new addition to the latest dev version.

In recent development of MooTools, we’ve incorporated into the core a plugin that was once pushed under the table and neglected. The Hash is a powerful new way to extend objects just like you’ve always wanted…

Read the original post on the MooTools blog. read full article

he said.. she said.. forums !

I finally decided to extend the e-magine.ro community (yeah, I’m referring to you.. 5-6 guys.. :P ) with a forum.

Without further ado, I introduce the e-magine.ro forums :)

The place where you can ask and get answers from other users of my scripts if I’m somehow unavailable.
The place where you’ll find other’s solutions, publicly addressed, instead of them being lost in some forgotten inbox.
The place where you’ll get to meet other fellow programmers, aiming for the same goals.
read full article

Quick & dirty CSS browser support check

A fellow Romanian, Alexandru Mãrãşteanu wrote a page that’s great to check cross-browser compatibility of that CSS pattern you were just about to use but didn’t know how it would render on the client’s browser.

Just load it up in your favorite browser, see what stays red and don’t use that feature if you want to stay compatible.

Here it is: CSS patterns support.

CSS patterns support

It’s in my toolkit now ;)

HTML evolved: v5 is coming, with new elements, great backwards compatibility, better fault tolerance

While browsing around today, I came across a really exciting piece of news: HTML 5 (AKA Web Application 1.0) is one step closer to being released and there are lots of new elements for designers to play with.

After reading the excellent article on IBM.com, I did some more browsing around, and dugg up a few more links to information on this subject. I’ve also summarized some of the new features in this post.
read full article

Archives

March 2010
M T W T F S S
« May    
1234567
891011121314
15161718192021
22232425262728
293031