Support » Themes and Templates » p2 Ajax updates for all visitors

  • Is there a way to make the p2 theme automatically update in realtime for all visitors? Currently, it only updates for those who are registered and logged in.

Viewing 9 replies - 1 through 9 (of 9 total)
  • I’m actually wondering the same thing. Any help with this would be very much appreciated.

    This patch will enable automatic post and comment updates for all users, but be warned that it might break something else in the js/theme. So far in my tests (wordpress 2.8 only) it works flawlessly, but I don’t know why auto updates was off to begin with.


    To apply:
    $ cd
    $ patch < p2.diff p2.js

    Alternatively just open p2.js and near line 514, remove the “&& isUserLoggedIn” flag for both PostsUpdates and CommentsUpdates.

    actually, I think this is what happened for the gizmodo liveblog – (

    anyway, i tested it out, works well. thanks!

    i dont think this live update thing work on my install of p2
    i havent seen it working in my tests

    @isamisam, I don’t understand how to use the patch. I did try to delete the code in p2.js, but that didn’t actually change anything for me. So I’m going to try the patch.

    Do upload the patch to my p2/inc folder?
    Where do I put the code:
    $ cd
    $ patch < p2.diff p2.js

    I presume the first line of code should be altered to reflect the correct path?

    See, I thought that was the solution as well, but it did not work. Maybe it has to do with some settings in the WP admin panel?

    …seems like the p2 theme for has automatic updates for all

    Link to a blog suffering this problem would be very much appreciated.

    My blog works flawlessly when I’m logged in, but I want any viewer to see the live updates.

    I’ve applied the change suggested by isamisam above, but it does not work for me.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘p2 Ajax updates for all visitors’ is closed to new replies.