Privateer Theme Forums
February 07, 2012, 11:13:25 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Privateer Theme 1.4 is Out.
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Ability to state where we want the sitemap file to be placed  (Read 981 times)
Justin
Newbie
*

Karma: +0/-0
Posts: 2


View Profile
« on: June 25, 2010, 03:00:02 AM »

May be too niche a request but I use the WP HIve plugin to allow central access to my blogs and to centrally update, although I may change this in the not too distant future to a different solution but one of the problems with Hive is that you need to place the sitemaps in a different folder.  Its not the end of the world if this isnt possible as it may end up being easier using the google xml sitemap plugin instead.  I see that the google xml sitemap needs an key to submit to yahoo whereas yours doesnt.  Also you still say Live, has this now been changed to Bing?
Logged
Tony Lee
Administrator
Full Member
*****

Karma: +2/-0
Posts: 137


View Profile
« Reply #1 on: June 25, 2010, 06:29:07 PM »

I'll have to look into this shortly as that should be a simple enough thing to do.
For now, you could edit /privateer/pwsXMLSiteMap.class.php as follows:

On or around line 35 you will find the location, which should look like the following:

$this->sSMURL = $this->sSiteURL . '/sitemap.xml';

Of course, if you aren't changing it to be somewhere writable by the system then it won't help much.

And I'll have to check on bing. I hadn't realized that things were changing again.

To change the places to submit to yourself ( or even add more ), you can go further down the same file (line 63 or so):

// search engines to ping
Code:
$this->aPINGS[0] = array(
'site' => 'ask.com',
'url' => 'http://submissions.ask.com/ping?sitemap=' . $this->sSMURL
);

$this->aPINGS[1] = array(
'site' => 'google.com',
'url' => 'http://www.google.com/webmasters/sitemaps/ping?sitemap=' . $this->sSMURL
);

$this->aPINGS[2] = array(
'site' => 'live.com',
'url' => 'http://webmaster.live.com/ping.aspx?siteMap=' . $this->sSMURL
);

$this->aPINGS[3] = array(
'site' => 'yahoo.com',
'url' => 'http://search.yahooapis.com/SiteExplorerService/V1/ping?sitemap=' . $this->sSMURL
);

Just edit an existing aPINGS entry or add a new one like the following:
Code:
$this->aPINGS[3] = array(
'site' => 'site name for error/reference purposes',
'url' => 'http://domain/pathtosubmit?sitemap=' . $this->sSMURL
);

I'll see about adding in a method to dynamically decide where you want your sitemap to be posted so that tweaks won't be overridden by theme updates.

~Tony
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!