05th May2012

Another succesful client website launched

by admin

We have just Launched a WordPress based website. The name of the company is PaperBoat Creations, they create some amazing stuff.

Please Make sure to see these amazing wedding and baby stationery creations.

29th Feb2012

Drupal Archive Tree Module

by admin
If you ever needed to create a blog fro your client running Drupal, you can’t help to wish certain aspects of WordPress would be part of Drupal. Undeniably one of those items is archive. Now granted WordPress has many widget extensions to make the archive look many different ways, the problem is, in Drupal there is no basic to base it on… 

So recently i had a client who wanted to have an accordion archive tree for their website. they were using Drupal 7 and the previous developer after struggling with it for a while just gave up…

My first inclination was to just write it into the theme, but them mentioning that they plan to swap themes for different seasons, made this not sustainable solution. So i decided to create a custom PHP block, that way we could reuse it in any theme.

Archive Block

As you could see from the code we are using the ui.accordion from the  jQuery UI which since Drupal 7 release is being included in the core.

Then my curiosity coupled with the fact that i had few more similar projects lined up won me over. I wanted to see if i could make it into Drupal module.

And “surprise” i have created the module learning few things along the way and breaking some drupal rules along the way… So here is how i have done it:

Step 1: create .info file, here is mine: (archive_accordion.info)

Step 2: Now that info file is created lets create the module file:(archive_accordion.module)

If you will look at the last part of the code above, you will notice that there is a reference to views api. the reason is that i also built a view that goes with it. (This was the easiest part, as all i had todo is export the view to code.) So here is the 3rd file in the folder (archive_accordion.views_default.inc)

Hope you enjoyed this brief tutorial, if you have any questions or suggestions please feel free to leave a comment.

Complete code: Archive Accordion Module
Archive Accordion Module

11th May2011

From Joomla 1.0 to WordPress 3.1

by admin

I recently had a client who had an Joomla website with hundreds of posts. He had a couple of problems with his old website:

  • The site was loading very slow or not loading at all some times
  • Website flexibility was an issue
  • the person hired to maintain and to-do all the updates had a hard time working with very not intuitive Joomla

The client made a decision that its time to migrate site to some other CMS (content management system). The question became which would it be Drupal or WordPress. So we sat down and looked at his current site (whatever we were able to see, since part of the loading issue was the template we had to temporally switch to a different template). Here is a short list of stuff we looked at (and thoughts):

  • The site had a few hundred articles (need an automatic importer)
  • The articles are to the most part text with some image in the middle (WordPress could do it)
  • Though the articles are broken down into categories the layout to display them is identical (Would be easier to replicate with Drupal, but does the client actually care about this or would he not care to have all of them look the same)

As you probably guessed we went for the WordPress in this case. We started looking for a migration/importer solution to bring over the old content, but we hit a roadblock, there was an importer from Joomla 1.5 to WordPress 3, (to make it work would need to update the joomla first) and there was one for Joomla 1.0 to wordpress 2.3 (to make this work will need to install an old version of wordpress import and then upgrade or export as wordress to wordpress).  Since i wasn’t in the mood of updating an already broken Joomla site. I decided to use the second script Joomla to WordPress Import Wizard.

So here are the steps we took.

  • Install a new wordpress 3.0 on a sub-domain ”New”
  • Install wordpress 2.3 on sub-domain ”temp”
  • upload the importer/migration script to “import” folder
  • create all the Post categories corresponding to the old site in the temporary wordpress install
  • run the import script to import the content one category at a time
  • Clean up (move the contents of “new” sub-domain to the main public_html/www folder, delete unnecessary temp sub-domain and import folder)
  • Enjoy the new site

The whole process including theme customization took approximatively 15 Hours. And here is a link to the new website http://arniegotfryd.com. Any comments or questions?

10th Jan2010

From HTML Website to CMS with the same design powered by WordPress

by admin

Last week i had a task that i was really waiting to get one of these days. We had a client who has a basic informative website about a service they offer. The website was created a couple of years ago and they were very happy with design, but they wanted it to be a CMS. So that if they want to add another page they don’t have to manually create the page and add a link to it from the navigation menu on all other pages.

An obvious choice was WordPress since all they need is a 10 page website plus Blog, Drupal would be to big of an overkill for this scenario. Now, even though i already made more then 30 WordPress installs, i usually used either a free them and just made some small changes or even sometimes the client liked the theme so i didn’t even had to touch it.

I was looking for a blank WordPress theme that while having all the necessary elements would let me do the design. And while i am sure there are dozens of those here is one i used and was pretty happy with, its called WP Framework their own description says it in the best way possible:

A blank WordPress Theme Framework that’s everything you need, and nothing you don’t

And thats exactly what it was. All i had to do is break the existing HTML into parts as following:

  • header.php will hold parts of the HTML that never change from page to page on the top of the page
  • footer.php holds parts of the HTML that never change from page to page on the bottom of the page
  • sidebar.php has to have the HTML that will container that will be able to stretch based on the widgets activated in the back-end menu
  • and of course index.php thats where you include the header, footer and sidebar plus the container for the main part of the page your posts and pages.

Then i imported the CSS and 99% of the site was done. Feels great -I just created my first WordPress theme. Having done it i see first hand why there are so many nice and free WordPress themes, since you don’t have to be a coder to make one.