On Gear Live: Video: Google Maps Navigation feature walkthrough

We’re giving away a limited edition Modern Warfare 2 Xbox 360 bundle!

We are kicking off our holiday giveaways with a bang! We’ve teamed with our friends at shoot it! to bring you this Modern Warfare 2 Xbox 360 limited edition console, a $400 value. The bundle includes a custom Xbox 360 console with exclusive design, a 250GB Xbox 360 hard drive, Call of Duty Modern Warfare 2, a pair of black controllers, and more. It hits stores on November 10th, and we’ve pre-ordered one that we’re giving away to one of you. Be sure to check out the giveaway rules to see how to enter!

Tuesday June 7, 2005 8:03 pm

Get Your phpBB Forums Indexed

Posted by Andru Edwards Categories: Design, Marketing

Check out this cool bit of code that allows message board forums to be spidered by search engines like Google. You see, when the spiders hit a URL that includes a session ID, they turn the other way. The following bit of code removed the session ID when it senses a spider, leaving all the information and textual content there to be picked up. This in turn gets more of your pages picked up. This is especially important for business owners who have support forums - questions and issues you have responded to will now show up in search results. Grab the code after the jump.


So basically, what you want to do is open the file specified, edit the appropriate area, and save:

#—-[ OPEN ]

/includes/sessions.php

#—-[ FIND ]

function append_sid($url, $non_html_amp = false)
{ global $SID;

if (!empty($SID) && !preg_match('#sid=#', $url) )
{
$url .= ( ( strpos($url, '?') != false ) ? ( ( $non_html_amp ) ?
'&' : '&' ) : '?' ) . $SID;
}

  return $url;
}

#—-[ CHANGE TO ]

function append_sid($url, $non_html_amp = false)
{ global $SID, $HTTP_SERVER_VARS;

$_this_agent = $HTTP_SERVER_VARS['HTTP_USER_AGENT'];

if (preg_match("/google/i", $_this_agent)) {
return $url;
}

      if (preg_match(”/slurp/i”, $_this_agent)) {
return $url;
}

      if (preg_match(”/archive/i”, $_this_agent)) {
return $url;
}

      if (preg_match(”/crawl/i”, $_this_agent)) {
return $url;
}

      if (preg_match(”/validator/i”, $_this_agent)) {
return $url;
}

      if (preg_match(”/robot/i”, $_this_agent)) {
return $url;
}

      if (preg_match(”/check/i”, $_this_agent)) {
return $url;
}

      if (!empty($SID) && !preg_match(’#sid=#’, $url) )
      {
$url .= ( ( strpos($url, '?') != false ) ? ( (
$non_html_amp ) ? '&' : '&' ) : '?' ) . $SID;
}

      return $url;
}

#—-[ SAVE & CLOSE ]


  • Related Tags:

Advertisement

Comments:

How are you. What counts is not necessarily the size of the dog in the fight - it’s the size of the fight in the dog.
I am from Estonia and learning to write in English, give please true I wrote the following sentence: “Ebookers worldwide travel specialist in the mid and.”

Thanks 8). Kathie.


Comments: Page 1 of 1 pages

Advertisement

Post a Comment:







Smileys

Remember my personal information

Notify me of follow-up comments?



Advertisement