Ultimate Web Tips

your Wordpress, jQuery, PHP, MySQL, Linux and CSS guide to a successful website

This tutorial will show step by step how to configure Apache, how to password protect and create your first repository.
More

Search query more secure from Google

October 20th, 2011 1 Comment, SEO, by Joakim Ling.

As many of you already know, Google will soon make all users that are logged in use google.com over ssl (https), so we’re talking about everyone who has a Youtube, Gmail, Google+ and all other services that are connected with Google.

Doesn’t seem like a big thing, which is not. But Google makes a very nasty thing that will make all searches on https://www.google.* lose its search query and therefor not traceable.
More

Use hosted jQuery CDN

October 18th, 2011 No Comments, jQuery, by Joakim Ling.

There are several reliable content delivery networks that are free to use to host your jQuery file. These are widely used and the chance that the client has it cached in browser are high. Both Google and Microsoft are available for public use.
More

Multiple backgrounds with CSS3

October 17th, 2011 No Comments, CSS, by Joakim Ling.

One of many great features in CSS3 is the multiple background support in one single element. Web designers can now define as many layers as they want, with a simple comma separated list.
More

When it comes to restrict your website, there are many ways to achieve that and one of the simplest methods is with your htaccess file. But it can be a little bit tricky when you’re in a cloud environment such as the Amazon Cloud and you are using the Elastic Load Balancer.
More

A lot of you have recently upgraded to PHP5.3, and one of the new things is the MySQL connection. If you are using the old authentication you will have to update your password encryption. Otherwise it will throw a warning and not able to connect.
More

Cross browser border radius even for IE

August 19th, 2011 No Comments, CSS, by Joakim Ling.

Rounded corners is something new in CSS3, therefore we have some compatibility issues especially with Internet Explorer up to version 8. But of course there are ways around so you don’t have to use images everywhere you want a round corner.
More

The <header> and <hgroup> tags are new for HTML5, we all know that <h1> – <h6> has vital importance in SEO to get keywords ranked on search engines such as Google.

But it’s not as easy to understand the use for the new tags.
More

WordPress 3.0 guide to custom taxonomies

August 2nd, 2011 No Comments, Themes, by Joakim Ling.

Taxonomies are used to group, classify and order posts in WordPress. You are probably familiar with tags och categories that are default taxonomies in WordPress.

Since WordPress 3.0 theme developers are now able to add their own custom taxonomies, usually done in functions.php in the theme folder.
More

Many are upgrading to PHP 5.3 and experience a lot of difficulties in earlier versions of WordPress. WordPress 3.2+ is fully compatible but there are some important changes in PHP 5.3 that needs to be looked in to in more details.

The biggest issue is that E_DEPRECATED is handled as an error instead of a warning and not ignorable in php.ini.
More

When creating plugins nowadays it’s very common that you want to use AJAX functions to get a better user experience. WordPress has built-in support in admin that can be used on your plugins. However sometimes you need very specific requests to get the result you need.

This tutorial will show you the key methods you need to apply to create your own custom AJAX hook.
More

First we need to find the ID on the given post. Easy done with get_page_by_title(). If more then one post has the same title the post with smallest ID will be returned.
More

Understanding the HTML5 Aside element

July 27th, 2011 No Comments, HTML, by Joakim Ling.

There are a lot of confusion around this HTML5 aside element. Its definition suggests it should be used for content surrounding the main content. The most common misconception of how this element should be used is for the standard sidebar.

While there is usually a degree of relation between sidebar content and the content in an article, it is not enough to be considered fit for an aside. Navigation, ads, search boxes, blogrolls and so on are not directly related to the article and therefore do not justify the use of an aside.
More

If you don’t keep track of your visitors you have no clue how or why you are loosing traffic or gaining. The most important in online marketing is traffic analyzing and keep the traffic-flow to your website.

When running campaigns it’s crucial to know from where your visitors are coming and to what pages they are landing. This is your chance to maximize exposure on your key products and services.
More

Create a cross-browser CSS 3 gradient

July 26th, 2011 No Comments, CSS, by Joakim Ling.

CSS gradient was introduced by Webkit around 2007 but was rarely used due to cross-browser issues. But nowadays when most browsers support it, it is common used to save up on http requests on your site.

Firefox started supporting gradient in 3.6 which made it a lot more popular on the web to be used by web designers.
More

How to use jQuery click function

July 25th, 2011 1 Comment, jQuery, by Joakim Ling.

This is an event handler to the “click” Javascript event, or trigger that event on an element. Any HTML element can trig a click event not only buttons and links and its event is sent when the mouse pointer is over the element and the mouse button is released.
More

How to draw shapes in HTML5 canvas

July 25th, 2011 No Comments, HTML, by Joakim Ling.

Canvas is a way to programmatically draw using Javascript, this is something new in HTML. You can for instance create simple diagrams, charts or graphs, better looking interfaces without thousands of images and work around CSS limitations.

There is a set of drawing tools such as rectangles, arcs, paths, line drawing, bezier and quadratic curves. You can also add effects and do some basic transformations.
More

Having /category/ in your URL isn’t very handy for most people, especially for those wanting to use WordPress as a non-blog CMS. WordPress shows category views by default with /category/ as the base.

http://www.domain.com/category/categoryname/
More

Why jQuery Live is a bad option to use

July 19th, 2011 5 Comments, jQuery, by Joakim Ling.

jQuery has two API methods that provide similar event delegation functionality: live and delegate. Event delegation is a powerful technique that is often used in JavaScript applications.

On the surface live and delegate can seem interchangeable. However, they are not. Live has several serious disadvantages and should never be used, and this article will explain why.
More

If you are new to creating themes in WordPress it can be a bit tricky to get the relevant image path.
More