Tuesday, 6 December 2011

Your critical 5 point ‘on-page SEO’ checklist

There seems to be a lot of emphasis placed on link building and I know linking is important, but what about on-page SEO? Aren’t there certain elements that are standard operating strategy? If so, what are they?

Answer: As a matter of fact, on-page SEO is critically important. And, although we cover that topic in-depth, nearly everything you need to know about the critical components of on-page SEO can be neatly summed up in the following 5-point checklist.

1. Titles
  • Each page should have a unique HTML “title” tag that contains the keywords for which the page should rank for. Place your keywords close to the front of the title tag and limit your titles to fewer than 60 characters.

2. Meta Description Tag
  • Each page should have a unique and compelling description of 150 characters or less placed within the meta description tag. Don’t worry much about placing keywords here.
  • Instead, use this tag to provide a compelling reason for people to click your listing when displayed in the search results.
3. Headers
  • Each page should have an“h1″header that contains the keywords the page should rank for. It’s also good to provide variation on the keywords you used in the title tag, such as the singular or plural version of the keyword.

4. Keywords
  • Sprinkle your keywords 3-4 times throughout the rest of your page’s content. Place them within the bold tags or within bullet lists wherever it makes sense to do so.
5. Anchor text
  • Link to your other pages by placing your best keywords within your links (anchor text).

Bonus tip: Be consistent in how you format your URLs when linking. For example, you should link to http://site.com/ instead of http://site.com/index.html. By formatting your URLs consistently, you’ll avoid confusing the search engine spiders that otherwise tend to see each differently formatted URL as a unique page which, in turn, dilutes your PageRank.

That’s the quick of it. Of course there are also such on-page SEO topics, as crawl ability and Page Rank sculpting, which have also merited in-depth reports within this publication. However, mastering the 5 critical steps mentioned above will put you miles ahead of most of your competitors.

Remove tinymce from drupal block edit page when format is set to PHP

Small one this to compliment our other article on removing tinymce from select textareas, this enhancement will hide tinymce from the Drupal block edit screen when the input format is set to PHP. This stops the problem of tinymce stripping the PHP tags from the block edit textarea when you edit your block

The following function goes into your template.php file and will solve the problem of tinymce showing up on a block when the format is set to PHP

function phptemplate_tinymce_theme($init, $textarea_name, $theme_name, $is_running) {
print $textarea_name;
//add text areas to disable tinymce for
case ‘log’:
return $init;
case ‘body’:
if (arg(0)==’admin’ && arg(1)==’build’ && arg(2)==’block’){
$format = db_result(db_query(”
SELECT format
FROM {boxes}
WHERE bid=%d”,$bid
if ($format==2){
return $init;
return theme_tinymce_theme($init, $textarea_name, $theme_name, $is_running);

Monday, 5 December 2011

Drupal Development – image cache problems with special characters

We came across this problem on one of our Drupal sites the other day, someone uploaded an image with an ampersand in the filename, and imagecache refused to display the image. A bit of investigating revealed that imagecache had a problem with a number of special characters in the image filenames.

The solution is a little imagecache theme override – you can see examples for both Drupal5 and Drupal6 below

Drupal 5 version

function phptemplate_imagecache($namespace, $path, $alt = ”, $title = ”,
$attributes = NULL) {
$attributes = drupal_attributes($attributes);
$imagecache_path = file_create_url(file_directory_path() .’/imagecache/’.
$namespace .’/’. drupal_urlencode($path));
return ”. check_plain($alt) .”;

Drupal 6 version

function phptemplate_imagecache($namespace, $path, $alt = ”, $title = ”, $attributes = NULL) {
if ($image = image_get_info(imagecache_create_path($namespace, $path))) {
$attributes['width'] = $image['width'];
$attributes['height'] = $image['height'];
// check is_null so people can intentionally pass an empty
// array of attributes to override
// the defaults completely… if
if (is_null($attributes)) {
$attributes['class'] = ‘imagecache imagecache-’. $namespace;
$attributes = drupal_attributes($attributes);
$imagecache_url = imagecache_create_url($namespace, drupal_urlencode($path));
return ”.
check_plain($alt) .”;

Get more information on php development, symfony developers, Drupal development, iphone apps development, Facebook apps, Social media websites, Zend PHP framework and how to hire php developer

iPhone Game Development - The Tower of Hanoi

The Tower of Hanoi (also famous as “Towers of Brahma”) is a arithmetical game or puzzle. It consists of three rods or tower, and a number of disks of different sizes which can slide onto any rod. The puzzle starts with the disks neatly stacked in order of size on one rod, the smallest at the top, thus making a conical shape.

The objective of the puzzle is to move the entire stack to another rod, obeying the following rules:

  • Only one disk may be moved at a time.
  • Each move consists of taking the upper disk from one of the rods and sliding it onto another rod, on top of the other disks that may already be present on that rod.
  • No disk may be placed on top of a smaller disk.

In Application there are 7 levels. As levels of game increases, the number of disks increases by one. There is time limit at each level. At first level there are two disks on Tower-1.

Virtueinfo has developed an iPhone image upload application, where user can select images from iPhone photo library, The photo library is collection of the images taken from iPhone camera. User can crop and rotate image as well, after selecting the image user can upload image with its title, image tag and description.

iphone game development, iphone application development, iphone apps development