R2i DotNetNuke® Forum

R2i wants you to have the opportunity to ask questions, post reviews, help others or just rant and rave about DotNetNuke® or any of the R2i Modules and Skins. Our team spends hour upon hour, day after day, working on custom DotNetNuke® modules and services; please feel free to ask us anything.
 
Turn off AJAX mode if useragent is a search engine
Last Post 01 Jan 1900 05:00 AM by . 0 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Informative
zymmetricalUser is Offline
Basic Member
Basic Member
Posts:141

--
02 Jun 2007 06:13 PM  
Basically, most of my content is a black hole for Googlebot, etc. because of the Ajax stuff.

I'm thinking there must be a simple way to modify XListing.js to the effect of:

if (navigator.userAgent.indexOf('Googlebot') > 0 THEN

<don't use Ajax mode>

else

<use Ajax mode>


I looked around the XListing.js for a while but i'm stumped - the application is too complicated for me to sort this one out. Can someone assist? It'd be great - Googlebot, MSN, Yahoo get static HTML, users get AJAX.
You are not authorized to post a reply.

Active Forums 4.1
 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seatle, WA • 410.327.0007 • info@R2Integrated.com

Bookmark & Share Bookmark and Share