All posts in Development

The title kind of says it all, but I embarras myself more than I’d like to admit by …

captain_obvious

The title kind of says it all, but I embarras myself more than I’d like to admit by finding the cause of a bug is something so stupidly obvious that I looked straight past it and went for the holy grail uber complicated only-I-could-find-the-solution-to-this problems. Read more…

CodeIgniter has a built in 404 catch, however it displays a pretty plain page of just some text …

404

CodeIgniter has a built in 404 catch, however it displays a pretty plain page of just some text in a box. It would be much nice if you were able to display your own custom 404 page that was in your sites styling.

There is an option to edit the routes file and updated the $route['404_override'] variable to point to a custom 404 page of your own, however this is only ever called if it the controller isn’t found. If the controller is found, but a method in it isn’t, the plain looking default 404 is used. Here’s a quick workaround. Read more…

For an upcoming project, I’m going to need to be able to pull in an parse RSS feeds, …

For an upcoming project, I’m going to need to be able to pull in an parse RSS feeds, and display them in a quick and simple manner, but without needing to store the information in a database or worry about only pulling the most recent items from a feed. Just read it in, and display each title with a link to the original source.
So I decided to put together a prototype that does just that, reads in a given RSS feed, and prints out in a list the title of each item and a link to the full article. Read more…

There’s been too many times where I’ve thought of something (I thought was) brilliant, only to let my …

There’s been too many times where I’ve thought of something (I thought was) brilliant, only to let my mind wander off on another tangent and before I know it I’ve forgotten I even had a good idea to start with, let alone what it was.

I’ve tried a few things in the past to try and not lose these ideas, but more often than not, I don’t actually get reminded of the ideas by whatever means I’m using to store them.

Until recently when I discovered Evernote. Read more…

There are times when you’ll need to have a form with a few select boxes that are associated, …

There are times when you’ll need to have a form with a few select boxes that are associated, such as suburbs and towns, where the options you want displayed should be those that belong to the currently selected state.

While there are a few ways to do this, I’m going to show you a quick way to achieve this using jQuery.
Read more…

There’s been a few times where I’ve needed something to happen when the user clicks on a few …

There’s been a few times where I’ve needed something to happen when the user clicks on a few specific elements on the page, however if one of the elements is nested inside the other, the click event gets called twice, once for each element.

More often than not, this isn’t what I want, what I want is for the click on the top level to register, but not on the element underneath.

So how do you do that? It’s actually pretty simple. Read more…

Another release, another trick. Here’s how to remove the ‘Joomla SEF URLs by artio’ link that comes with …

Another release, another trick. Here’s how to remove the ‘Joomla SEF URLs by artio’ link that comes with the free version of JoomSEF 3.7.2 Read more…

Nobody likes waiting for a site to load, thankfully we live in a time when internet connections are quite fast, however we also live in a time when people are more impatient. Google are also said to be taking page load time into consideration for their ranking algorithm, here’s a few quick changes you can do to speed up your sites load time.

There’s a massive list of things that you can do to speed up your site, often though you need to be have root access to the server that your site is hosted on (or have a pretty good relationship with your host) to be able to really get the most out of it, and have it purring along with a setup just right for your needs, and no more.

Since most people won’t have a very high level of access to their server, often nothing more than FTP, that is all that will be required for the below tips. So without further adieu, lets begin. Read more…

I previously posted on how to fix this for Joomla 3.2.3 here, however the crew got a little trickier and changed things up a little, but don’t stress, here’s the new fix.

Joomla

Similar to the way in which you would Remove SEO by Artio link in JoomSEF 3.2.3 jump into the file:
components/com_sef/joomsef.php

On line 1645 (or thereabouts) to ensure nothing is appended to the end of your content, simply make sure the massive ugly string doesn’t get assigned to the $cacheBuf2 variable, by replacing it with the following:

1
$cacheBuf2.='';

And voila… link gone!

I recently created a complete site that is a link shortening tool which allows you to run your own public link shortener that keeps statistics on user clicks, and also displays a feed of what is ‘hot’ right now, based on the communities use / click throughs. This article is a quick rundown on how to set it up, and where to view a running demo.

This application is built using the CodeIgniter base and the MVC approach, and comes with the CodeIgniter userguide, which is located in the user_guide directory. For more information on CodeIgniter, please visit www.codeigniter.com

A full demo of the tool is at http://mls.subooa.com (the admin area is still private as this is a running site, you’ll have access to your own admin area when you setup your site)

First of all, you’ll need to download the package which you can get from Themeforest at the following location:

http://themeforest.net/item/my-link-shortener/51104

So lets get started…

Create a new database called mls (you can change this if you like, however you’ll need to edit the database.php file to suit)
Run the database.sql file on that database using your preferred method (import using phpmyadmin for example).

The following files need to be modified to match your environment:

application/config/database.php
application/config/config.php
application/config/site_config.php

You will also need to change the about and terms page content to reflect your own site.
The files are located in the application/views folder as about.php and terms.php respectively.

Finally, you’ll need to edit template.htaccess, if you want to run this in a folder you’ll need to place the folder name before index.php (e.g., /folder/index.php ), otherwise the entry should read just /index.php. Rename template.htaccess to .htaccess

And that’s all there is to it! You now have your very own link shortening tool setup and running. If you have any questions / issues with the app, please post them on the discussion page on the item on Themeforst, not here as other people will also be able to benefit from the responses.