Tag Archives: plugin

Wordrpess Importer hangs with sealed lips

Today I tried to import some content from another wordpress installation to mine. First off – I imported the XML file into my staging DB, and it all went well. Then I went on and tried to import it on the live server. At hitting the button – the page reloads for a while, and then – nothing.
I tried it a couple of times with no avail.
First thing – I have verified that the file is smaller than the max file size limit set on the server. It was.
So I went ahead to seek help from Mr. Google, but all I came up with was a load of rants and rackets about the WordPress Importer plugin. That meant I need to roll up my sleeves and get my hands dirty with raw plugin code…
Making a long story short – it all comes down to this line:
$dom = new DOMDocument;
within the WXR_Parser_SimpleXML class, in a file named parser.php of the importer plugin. And at that – the plugin cannot be blamed. Thing is – when calling the DOMDocument class, if it is not installed on the server , it will return nothing. Nesting this call inside a try and catch will not do either. This might be an issue with WordPress, and maybe turning on debug mode can help, I admit I haven’t checked it.
So only thing left is indeed to check if the libxml and the domdocument extensions are indeed installed with the server. They are probably not, so setting them with the server is most likely to solve the problem.

Yet Another Simple Gallery Plugin for WordPress

I have been looking for a really simple gallery plugin that can use WordPress’ native Gallery features and jquery support, but couldn’t find any. My qualifications were simple: a row of thumbnails, a main photo, and a way to switch to another photo by clicking on its thumbnail. I didn’t want the featured image to be modal, like in a lightbox mode, but located in the same page as the thumbnails. Only thing resembling what I was looking for, was really hard to adapt, even in terms of css. I know there are millions of gallery plug-ins out there, so my search was probably not good enough, however – I ended up writing it from scratch.

It was registered today with WordPress.

This plugin is really simple. All you need to do is download and activate it. Then go ahead and create a new post with gallery for your photos. What happens next is that the photos are arranged in your new post like small thumbnails and a main image. Clicking on a thumbnail will switch the main image to the one related to the clicked thumbnail. Off-course, if you are as control freak as I am, and you definitely need to make a change – you can create a yasg.css file, save it under your theme folder, and change any css rule you feel like. These rules are to override the gallery’s default css rules. I can hardly imagine you’ll ever need more control than that.

The plugin was tested on WordPress 3.2.1

Please comment on this post, if any problem, bug, question or ideas for improvements.

Download the plugin now.

The Lava-Lamp Menu in WordPress

The other day one of my clients asked me to look at a very neat effect he saw somewhere. He insisting on having “the same” in his site. So I made a little research and came across this really neat gimic: the Lava Lamp Menu. The main idea is to have a neat transition that enhances the hover effect, making the active menu item transform to its new css with a very delicate and not-too-obtrusive sliding motion.

Continue reading