Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DevShed:
Standards-compliant Link Targets with Wordpress
Dec 19, 2007 @ 17:15:00

A new tutorial on DevShed today shows how to work with WordPress (a popular PHP-based blogging tool) to improve the search engine optimization (SEO) of the site you have running it.

I ran into an issue on one of my own Wordpress sites the other day, so I decided to share with you my solution. What happened was I added an SEO modification to my site that finds all external links in my page and adds a rel="nofollow" attribute to them. However, I also like to target my external links to new windows, but the target attribute for the "a" tag has been depreciated and will not validate under XHTML strict.

His method of choice turned out to be a Javascript that would run through the links, looking for outbound ones, and dynamically add in the nofollow attribute when it finds one. Complete code is included ot show you how it's done.

tagged: wordpress standards compliant link seo nofollow wordpress standards compliant link seo nofollow

Link:

DevShed:
Standards-compliant Link Targets with Wordpress
Dec 19, 2007 @ 17:15:00

A new tutorial on DevShed today shows how to work with WordPress (a popular PHP-based blogging tool) to improve the search engine optimization (SEO) of the site you have running it.

I ran into an issue on one of my own Wordpress sites the other day, so I decided to share with you my solution. What happened was I added an SEO modification to my site that finds all external links in my page and adds a rel="nofollow" attribute to them. However, I also like to target my external links to new windows, but the target attribute for the "a" tag has been depreciated and will not validate under XHTML strict.

His method of choice turned out to be a Javascript that would run through the links, looking for outbound ones, and dynamically add in the nofollow attribute when it finds one. Complete code is included ot show you how it's done.

tagged: wordpress standards compliant link seo nofollow wordpress standards compliant link seo nofollow

Link:

Vinu Thomas' Blog:
Modifying your MySQL databases to be UTF-8 compliant
Dec 28, 2006 @ 13:47:00

There's a quick tip from Vinu Thomas on his blog for anyone having issues with UTF-8 data in a MySQL database (as accessed by PHP).

Most of us have had problems with UTF-8 problems in PHP and MySQL. Here's how to modify your database and table to be UTF-8 compliant. Most of the time we do set the character set to utf8 but forget to set the collation set to utf8.

He includes both SQL statements you'll need to make the transition - two ALTER statements that update the properties of a database and change the encoding on a specific table to UTF-8 compatibility.

tagged: mysql database modify utf8 compliant alter sql statement mysql database modify utf8 compliant alter sql statement

Link:

Vinu Thomas' Blog:
Modifying your MySQL databases to be UTF-8 compliant
Dec 28, 2006 @ 13:47:00

There's a quick tip from Vinu Thomas on his blog for anyone having issues with UTF-8 data in a MySQL database (as accessed by PHP).

Most of us have had problems with UTF-8 problems in PHP and MySQL. Here's how to modify your database and table to be UTF-8 compliant. Most of the time we do set the character set to utf8 but forget to set the collation set to utf8.

He includes both SQL statements you'll need to make the transition - two ALTER statements that update the properties of a database and change the encoding on a specific table to UTF-8 compatibility.

tagged: mysql database modify utf8 compliant alter sql statement mysql database modify utf8 compliant alter sql statement

Link:


Trending Topics: