Auto Ping PPS from Wordpress 1.5

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

advertisement

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:
    1. <input type="text" name="trackback_url" style="width: 360px" id="trackback" tabindex="7">

  3. Replace the line with:
    HTML:
    1. <input type="text" name="trackback_url" style="width: 360px" id="trackback" tabindex="7" value="PPS PING PATH" />

  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:
    1. $form_trackback = '<input type="text" name="trackback_url" style="width: 415px" id="trackback" tabindex="7" value="'. str_replace("\n", ' ', $to_ping) .'" />';

  3. Add following code ABOVE the line:
    PHP:
    1. if($to_ping == '') $to_ping = 'PPS PING PATH';

    So that it looks as follow:

    PHP:
    1. if($to_ping == '') $to_ping = 'PPS PING PATH';
    2. $form_trackback = '<input type="text" name="trackback_url" style="width: 415px" id="trackback" tabindex="7" value="'. str_replace("\n", ' ', $to_ping) .'" />';

  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. :)

Bookmark and Share

Read also:

What do you think? 18 Responses to “Auto Ping PPS from Wordpress 1.5”

Comments Feed | TrackBack URL
  1. #1
    Chewxy Says:

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

  2. #2
    Kahsoon Says:

    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?

  3. #3
    H4RRY Says:

    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.

  4. #4
    Edrei Says:

    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.

  5. #5
    Kahsoon Says:

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

  6. #6
    LcF Says:

    pls double check your code, and refresh pps.

  7. #7
    Kahsoon Says:

    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?

  8. #8
    Kahsoon Says:

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

  9. #9
    LcF Says:

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

  10. #10
    AhKnight Says:

    whats the diff btw this and old method ?

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

  11. #11
    LcF Says:

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

  12. #12
    MENJ Says:

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

    - MENJ

  13. #13
    LcF Says:

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

  14. #14
    AhKnight Says:

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

  15. #15
    LcF Says:

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

    PPS is using MT blog trackback function.

  16. #16
    Syiok.com Says:

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

  17. #17
    wiredpod Says:

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

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

    [...] I’ve been trying to auto-ping PPS for quite a while but have been unable to. Well, silly me because I didn’t even Google for a solution - I merely tried inserting the provided URL in the auto-ping of my Wordpress blog. Turns out, PPS uses MT’s trackback but not auto-pinging. I’ve now implemented a hack recommended by LiewCF.com . I hope it works and this post is a quick test . [...]

Comments are closed. Submit your comment here