Results 1 to 15 of 15

Ping live.com

This is a discussion on Ping live.com within the Sitemap Features Archive forums, part of the vBulletin Links & Resources category; I have made these changed to the vbseo_sitemap_functions.php to add live.com pinging to the sitemaps. Code: function vbseo_sitemap_ping_url($url) { global ...

  1. #1
    Senior Member
    Real Name
    Dhillon
    Join Date
    Apr 2006
    Posts
    341
    Liked
    1 times

    Ping live.com

    I have made these changed to the vbseo_sitemap_functions.php to add live.com pinging to the sitemaps.

    Code:
       	function vbseo_sitemap_ping_url($url)
       	{
       		global $vbseo_stat;
       		$purl = 'http://www.google.com/webmasters/tools/ping?sitemap='.urlencode($url);
       		$rping = vbseo_query_http($purl);
    		$vbseo_stat['ping'] = strstr($rping, 'Received');
    
       		//$purl = 'http://search.yahooapis.com/SiteExplorerService/V1/ping?sitemap='.urlencode($url);
       		$purl = 'http://search.yahooapis.com/SiteExplorerService/V1/updateNotification?appid='.VBSEO_YAHOO_APPID.'&url='.urlencode($url);
    
    		$rping = vbseo_query_http($purl);
    		$vbseo_stat['pingyahoo'] = strstr($rping, 'successfully');
    
       		$purl = 'http://submissions.ask.com/ping?sitemap='.urlencode($url);
    		$rping = vbseo_query_http($purl);
    		$vbseo_stat['pingask'] = strstr($rping, 'successful');
    
       		$purl = 'http://api.moreover.com/ping?u='.urlencode($url);
    		$rping = vbseo_query_http($purl);
    		$vbseo_stat['pingmore'] = strstr($rping, 'Thank you');
    
    		$purl = 'http://webmaster.live.com/ping.aspx?siteMap='.urlencode($url);
    		$rping = vbseo_query_http($purl);
    		$vbseo_stat['pingmore'] = strstr($rping, 'Thanks for submitting your sitemap.');
    
    		return ;
       	}
    Code:
    Google ping: ".(isset($stat['ping'])?($stat['ping']?'Successful':'FAILED'):'Disabled').".
    Yahoo ping: ".(isset($stat['pingyahoo'])?($stat['pingyahoo']?'Successful':'FAILED'):'Disabled').".
    Ask ping: ".(isset($stat['pingask'])?($stat['pingask']?'Successful':'FAILED'):'Disabled').".
    Moreover ping: ".(isset($stat['pingmore'])?($stat['pingmore']?'Successful':'FAILED'):'Disabled').".
    Msn ping: ".(isset($stat['pingmore'])?($stat['pingmore']?'Successful':'FAILED'):'Disabled').".
    Does that look Alright ?

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Hello,

    you should replace 'pingmore' with 'pinglive' for the new entry.

  3. #3
    Senior Member
    Real Name
    Dhillon
    Join Date
    Apr 2006
    Posts
    341
    Liked
    1 times
    Ok Thanks

  4. #4
    Junior Member
    Real Name
    HoTShoT
    Join Date
    Mar 2008
    Posts
    4
    Liked
    0 times
    Would you mind posting the final code and some basic instructions on how to revise the code?

  5. #5
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    In vbseo_sitemap_functions.php file
    FIND:
    PHP Code:
    $vbseo_stat['pingmore'] = strstr($rping'Thank you'); 
    ADD BELOW:
    PHP Code:
    $purl 'http://webmaster.live.com/ping.aspx?siteMap='.urlencode($url);
            
    $rping vbseo_query_http($purl);
            
    $vbseo_stat['pinglive'] = strstr($rping'Thanks for submitting your sitemap.'); 

    FIND:
    PHP Code:
    Moreover ping".(isset($stat['pingmore'])?($stat['pingmore']?'Successful':'FAILED'):'Disabled')."
    ADD BELOW:
    PHP Code:
    Msn ping".(isset($stat['pinglive'])?($stat['pinglive']?'Successful':'FAILED'):'Disabled')."

  6. #6
    Junior Member
    Real Name
    HoTShoT
    Join Date
    Mar 2008
    Posts
    4
    Liked
    0 times
    I must be missing something because my codes says:


    Google ping: ".($vboptions['vbseo_sm_ping']?($stat['ping']?'Successful':'FAILED'):'Disabled').".
    Yahoo ping: ".($vboptions['vbseo_sm_pingyahoo']?($stat['pingyahoo']?'Successful':'FAILED'):'Disabled').".

  7. #7
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Do you have v2.1 of vBSEO Sitemap Generator installed?

  8. #8
    Junior Member
    Real Name
    HoTShoT
    Join Date
    Mar 2008
    Posts
    4
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    Do you have v2.1 of vBSEO Sitemap Generator installed?
    I downloaded it from here vBSEO Google/Yahoo Sitemap Generator for vBulletin 3.6.x, 3.5.x & 3.0.x - Page 108 - vBulletin.org Forum it says 2.0. Where is 2.1?

  9. #9
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times

  10. #10
    Junior Member
    Real Name
    HoTShoT
    Join Date
    Mar 2008
    Posts
    4
    Liked
    0 times
    Thanks! Always helps to be using the latest version. :-)

  11. #11
    Junior Member
    Real Name
    Dave
    Join Date
    Jan 2008
    Posts
    26
    Liked
    0 times
    Thanks for this one.


    -Dave

  12. #12
    Member ZeroHour's Avatar
    Real Name
    Shaun
    Join Date
    Mar 2008
    Location
    Scotland
    Posts
    31
    Liked
    0 times
    BTW Live.com webmaster tools recommends this:
    Code:
    http://webmaster.live.com/webmaster/ping.aspx?siteMap=[Your sitemap web address
    as ping urls.
    http://www.edugeek.net - The I.T. Professionals Life Line

  13. #13
    Senior Member
    Real Name
    mreyes
    Join Date
    May 2008
    Posts
    125
    Liked
    3 times
    Quick question, is this modification planned to be included in the next release of sitemap?

  14. #14
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Yes, it will be included.

  15. #15
    Junior Member
    Real Name
    ssslippy
    Join Date
    Dec 2006
    Posts
    21
    Liked
    0 times
    I downloaded the sitemap recently and this was already in it.


Similar Threads

  1. Just went live - WOW.
    By Lasher in forum General Discussion
    Replies: 1
    Last Post: 08-20-2007, 06:59 PM
  2. Now Live
    By jamcamuk in forum General Discussion
    Replies: 1
    Last Post: 01-12-2007, 09:15 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •