Recommended Stuff
Recent
Recent blog posts
- Five perhaps not-so-known PHP tricks for leaner and cleaner code
- PHPEclipse and PDT
- Kilowatts & Vanek are back, better than ever
- The future of my phpBB templates
- Checking in
- Web Design or the Art and Science of Solving Problems (Part 1)
- Lost in thought
- An easy way to display a customized menu in your Drupal theme
- Back on the blog with a CSS rant
- Eternal* fame on the red planet for free
Search this site with Google
Five perhaps not-so-known PHP tricks for leaner and cleaner code
In this article I'll give a few examples of powerful ways to program PHP that aren't obvious to many. The tricks I mention here are in themselves nothing new and experienced programmers probably know about them all but budding and intermediate PHP programmers can probably pick up a thing or two.
Checking in
So I've been very busy the past few months. Barely time to do anything but seeing clients, working and lapping a little sunshine now and then. The farthest from Sweden I got was to Oslo (Norway) to spend a week there hanging out with friends and trying not to think about how expensive it was.
An easy way to display a customized menu in your Drupal theme
I've been working on a theme where I needed to display a menu in Drupal given its menu id (mid), which is the unique identifier of the parent element of the menu's items. Usually, you can assign menus to different regions in your theme but the problem with that approach is that the menu will be rendered as a multi-level list (nested ULs). In this case, I wanted a flat list, and had written my own theme function to display the links on one line with delimiters, taking an array of menu items as argument. I ended up writing a function for this purpose using parts of the code from Drupal core, a function that others might find useful.
The new super-improved KogVet website is launched!
The new website for the student association at the Cognitive Science program here at Link�ping University was launched two weeks ago but I haven't gotten around to posting about it until now. It's with a great feeling of accomplishment that we finally launched this site and we're thrilled at the thought of all its new features and what it will bring to the association and the students at the program. Continue reading in my portfolio...
Drupal for Solid Lifeforms
A beginners FAQ and guide to one of the most formidable content management systems on planet Earth
Some of you who frequent my site may have noticed that I work a lot with Drupal and now offer Drupal-related services such as customization and design. If youre curious about what Drupal is and what it can do for you, how you can build a better site - a site thats easier to maintain using a state of the art CMS, this guide is for you.
Problems are good for one thing: fixing
When I added the Dreamfall review yesterday I realized certain things did not work as they should, and after investigating the problem further it turned out that there was a problem with blog type nodes. After receiving good advice in the #drupal at irc.freenode.net I began to troubleshoot, and in the process found a great way to set up a staging version of my site for testing new code and modules.
Related Nodes - my first Drupal module
Many blogs list related blog entries as "Related Articles", however currently this isn't something that Drupal supports, nor could I find a module that does. It seemed I would have to write my own module, so yesterday I started working on what was to become my first Drupal module. It's called 'Related Nodes'.