Auto Ping PPS from WordPress 1.5

Filed in: Tips, WordPress — April 22nd, 2005

Wordpress

Since the site is upgraded to WordPress 1.5 and the core code changed, here is the updated guide to auto ping Project Petaling Street (PPS).

For previous WordPress version, please refer to Guide to ping PPS from WordPress. It works on WP 1.0 / 1.2.

We need to edit two files in WP_ROOT/wp-admin:

  • edit-form.php – Simple controls post editor
  • edit-form-advanced.php – Advance control post editor

Important: Backup the files before continue.

Simple controls post editor (edit-form.php)

Auto Ping PPS - Simple control

  1. Open edit-form.php for edit.
  2. Goto line #56, where it read:
    [html]
    [/html]
  3. Replace the line with:
    [html]
    [/html]
  4. Save and upload edit-form.php. Done.

Advance controls post editor (edit-form-advanced.php)

Auto Ping PPS - Advance control

  1. Open edit-form-advanced.php for edit.
  2. Goto line #27, where it reads:
    [php]$form_trackback = ‘
    ‘;[/php]
  3. Add following code ABOVE the line:
    [php]if($to_ping == ”) $to_ping = ‘PPS PING PATH’;[/php]
    So that it looks as follow:
    [php]if($to_ping == ”) $to_ping = ‘PPS PING PATH’;
    $form_trackback = ‘
    ‘;[/php]
  4. Save and upload edit-form-advanced.php. Done.
Note: Replace PPS PING PATH with provided ping URL when you register to PPS.

Thought:
Hope this helps Malaysia bloggers who are using WordPress 1.5 (or later?) to easily ping PPS, and increase blog traffic. Of course, you can remove the PPS ping URL when you do not want to ping PPS for certain post. :)

Like this post? Please share:

Follow @liewcf on Twitter; Join Facebook page; Subscribe to free newsletter for updates like this article..

  • http://blog.chewxy.com/ Chewxy

    THANK YOU!!!!!!!!!!!!!!!!

  • http://blog.chewxy.com/ Chewxy

    THANK YOU!!!!!!!!!!!!!!!!

  • http://blog.chewxy.com Chewxy

    THANK YOU!!!!!!!!!!!!!!!!

  • http://www.kahsoon.com/ Kahsoon

    hey liew…i was wondering, im using wp1.5 as well…do i need to register as a member to auto ping? previously i had an account in pps and it is meant for blogspot…can i use back same account or i must register a new one? for wp1.5 like you and me…i changed edited the 2 files but whats next? do i need to go to pps and send them an email saying that i want to auto ping and do we need to wait them to approve us?

  • http://www.kahsoon.com/ Kahsoon

    hey liew…i was wondering, im using wp1.5 as well…do i need to register as a member to auto ping? previously i had an account in pps and it is meant for blogspot…can i use back same account or i must register a new one? for wp1.5 like you and me…i changed edited the 2 files but whats next? do i need to go to pps and send them an email saying that i want to auto ping and do we need to wait them to approve us?

  • http://www.kahsoon.com Kahsoon

    hey liew…i was wondering, im using wp1.5 as well…do i need to register as a member to auto ping? previously i had an account in pps and it is meant for blogspot…can i use back same account or i must register a new one? for wp1.5 like you and me…i changed edited the 2 files but whats next? do i need to go to pps and send them an email saying that i want to auto ping and do we need to wait them to approve us?

  • http://tembikai.com/blog/ H4RRY

    nice work, and i was wondering why i can’t ping to PPS as i was using the old auto PPS ping method.

    Kahsoon: you can use your current account and no, no need to send Aizuddin an email. just ping all you want. you can also ping to the test site of PPS if you’re not sure.

  • http://tembikai.com/blog/ H4RRY

    nice work, and i was wondering why i can’t ping to PPS as i was using the old auto PPS ping method.

    Kahsoon: you can use your current account and no, no need to send Aizuddin an email. just ping all you want. you can also ping to the test site of PPS if you’re not sure.

  • http://tembikai.com/blog/ H4RRY

    nice work, and i was wondering why i can’t ping to PPS as i was using the old auto PPS ping method.

    Kahsoon: you can use your current account and no, no need to send Aizuddin an email. just ping all you want. you can also ping to the test site of PPS if you’re not sure.

  • http://www.kamigoroshi.net/ Edrei

    That would explain why the ping only worked once. Now I can use this to ping all the sites.

    Thanks a lot man, makes perfect sense now.

  • http://www.kamigoroshi.net/ Edrei

    That would explain why the ping only worked once. Now I can use this to ping all the sites.

    Thanks a lot man, makes perfect sense now.

  • http://www.kamigoroshi.net Edrei

    That would explain why the ping only worked once. Now I can use this to ping all the sites.

    Thanks a lot man, makes perfect sense now.

  • http://www.kahsoon.com/ Kahsoon

    How come i edited the file but still when i publish a post my entry wont appear in pps???

  • http://www.kahsoon.com/ Kahsoon

    How come i edited the file but still when i publish a post my entry wont appear in pps???

  • http://www.kahsoon.com Kahsoon

    How come i edited the file but still when i publish a post my entry wont appear in pps???

  • LcF

    pls double check your code, and refresh pps.

  • LcF

    pls double check your code, and refresh pps.

  • LcF

    pls double check your code, and refresh pps.

  • http://www.kahsoon.com/ Kahsoon

    i dont understand the last part. Note: Replace PPS PING PATH with provided ping URL when you register to PPS. what is the provided ping URL?

  • http://www.kahsoon.com Kahsoon

    i dont understand the last part. Note: Replace PPS PING PATH with provided ping URL when you register to PPS. what is the provided ping URL?

  • http://www.kahsoon.com/ Kahsoon

    nvm i got the ping url already lol….just want to know if everyone’s ping url is the same?

  • http://www.kahsoon.com/ Kahsoon

    nvm i got the ping url already lol….just want to know if everyone’s ping url is the same?

  • http://www.kahsoon.com Kahsoon

    nvm i got the ping url already lol….just want to know if everyone’s ping url is the same?

  • LcF

    Yes, everyone’s ping url is the same. Please keep the url private.

  • LcF

    Yes, everyone’s ping url is the same. Please keep the url private.

  • LcF

    Yes, everyone’s ping url is the same. Please keep the url private.

  • http://www.ahknight.net/ AhKnight

    whats the diff btw this and old method ?

    by using the old method it only wont work when you default post method is advance ?

  • http://www.ahknight.net AhKnight

    whats the diff btw this and old method ?

    by using the old method it only wont work when you default post method is advance ?

  • LcF

    @AhKnight: ya, there are code different in advance mode. the theory is still same though.

  • LcF

    @AhKnight: ya, there are code different in advance mode. the theory is still same though.

  • http://www.ibnjuferi.com/ MENJ

    LCF, instead of hacking into WP, can someone write an auto-pinger plugin instead?

    - MENJ

  • http://blog.menj.org MENJ

    LCF, instead of hacking into WP, can someone write an auto-pinger plugin instead?

    - MENJ

  • LcF

    good idea. I wonder WP has the hook for trackback field or not…

  • LcF

    good idea. I wonder WP has the hook for trackback field or not…

  • http://www.ahknight.net/ AhKnight

    i just wonder why pps is using trackback but not pinging ?

  • http://www.ahknight.net AhKnight

    i just wonder why pps is using trackback but not pinging ?

  • LcF

    I am working on the plugin but get stucked in adding ping url in advance form.

    PPS is using MT blog trackback function.

  • LcF

    I am working on the plugin but get stucked in adding ping url in advance form.

    PPS is using MT blog trackback function.

  • http://www.syiok.com/ Syiok.com

    Works great. Thank you very much mr. Liew. :)

  • http://www.syiok.com Syiok.com

    Works great. Thank you very much mr. Liew. :)

  • http://www.wiredpod.com/ wiredpod

    Great stuff.. Just to say thanks that finally I got to ping back to PPS.
    Cheers! :)

  • http://www.wiredpod.com wiredpod

    Great stuff.. Just to say thanks that finally I got to ping back to PPS.
    Cheers! :)

  • Pingback: Bernie’s ramblings… » Auto Ping PPS from Wordpress 1.5 | LiewCF.com - Latest Technology, Computers and Internet in Malaysian style.

t