nukeSEO.com - PHPNuke SEO Search engine optimization, professional tools including nukeSEO, nukeSPAM, nukeFEED, nukePIE, nukeWYSIWYG and more

 

. Welcome to nukeSEO.com  ! 
.
.
.


.
nukeSEO.com: Forums


 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

nukeSEO (dh) meta robots
 
 
Post new topic   Reply to topic    nukeSEO.com Forum Index -> nukeSEO (tm)
View previous topic :: View next topic  
Author Message
Guardian
webmaster


Joined: Dec 25, 2005
Posts: 364
Location: Vsetin, Czech Republic

PostPosted: Tue Nov 17, 2009 9:58 am    Post subject: nukeSEO (dh) meta robots Reply with quote

I have just modified my sites search module to use Googles custom search engine API. So far it is working quite well but annoyingly, it is revealing some issues with how Google is seeing and indexing some content on my site.
During some test searches using the API I notice that Google is returning some quite good results but it is including links and content from my Legal Module with search results which are in no way related to the search criteria.
I am assuming it is doing this as the legal module links are in the footer of every page.

In essence, what I need to be able to do is override the default
meta name="ROBOTS" content="INDEX, FOLLOW"

After a quick look at nukeSEO(dh) it seems it might be possible to do this by creating a class extender.
Creating the file;
includes/nukeSEO/dh/dhLegal_Module.php
And in this file us something like
Code:
class dhLegal_Module extends dhclass {

function getHEAD() {
$meta['ROBOTS'] = array('name','NOINDEX','NOFOLLOW,0);
 }
}


Does that look about right, even though the function getHEAD in it's default version doesn't seem to cater for ROBOTS
  
Back to top
View user's profile Send private message
montego
webmaster


Joined: Dec 26, 2005
Posts: 254

PostPosted: Fri Nov 20, 2009 7:36 am    Post subject: Reply with quote

That would be excellent if that would work.
_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login!
  
Back to top
View user's profile Send private message Visit poster's website
Guardian






PostPosted: Fri Nov 20, 2009 8:45 am    Post subject: Reply with quote

I'll try it later on my test box. If I remember, I think the base class uses an array for the meta data so I might have to adjust that to cater for robots meta before it can be overridden by a class extender.

The original problem of the search API including none relevant links/data in the search results though has fixed itself. It seems that although the API can be fairly extensively configured from within your Google account, it is quite intelligent in it's own.
  
Back to top
Display posts from previous:       
Post new topic   Reply to topic    nukeSEO.com Forum Index -> nukeSEO (tm) All times are GMT - 5 Hours
 
 Page 1 of 1

 

Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001-2008 phpBB Group


Page Generation: 0.04 Seconds