The MU forums have moved to WordPress.org

Sitewide Feed (213 posts)

  1. drmike
    Member
    Posted 18 years ago #

    Finally figured out how to ditch the "Hello World!" posts.

    - Edit wpmufeed.php

    - Look for the function create_map.

    - A couple lines down, you should see:

    FROM ".$wpmuBaseTablePrefix.$blogid."_posts

    - Change the following line to:

    WHERE post_title != 'Hello World!' AND post_status = 'publish' AND (post_type = 'post' OR post_type = '') AND post_date_gmt < '".gmdate("Y-m-d H:i:s")."'

    *grumble* Took me 2 hours since I was looking further down in the code and I couldn't get it to work that way. Got an interesting resault once with nothing but "Hello World!" posts. *grumble*

    I have it here as well.

  2. drmike
    Member
    Posted 18 years ago #

    Probably should do this as well on the Pages and Comment feeds but I don't use them on my site. Same method should apply though.

  3. Misera
    Member
    Posted 18 years ago #

    where.... is wpmufeed.php? :x..

  4. andrea_r
    Moderator
    Posted 18 years ago #

    You get that file when you install the plugin. :)

  5. Misera
    Member
    Posted 18 years ago #

    ah ha ha ha..

  6. drmike
    Member
    Posted 18 years ago #

    IIRC, that's the entire plugin within the single file linked up above. I don't think I've done any editing to it besides that.

  7. anabelle
    Member
    Posted 18 years ago #

    how can i make it work on non-vhost installation?

  8. dsader
    Member
    Posted 18 years ago #

    anabelle,
    Here's what I do: in site feed options set Trigger Blog ID to be any active blog other than 1.
    Then point your rss reader to:
    http://www.site.org/username of Trigger Blog ID/wpmu-feed/

    dsader

  9. anabelle
    Member
    Posted 18 years ago #

    ok maybe im very ignorant, but i don't understand, also, i cant find the plugins tab in worpress mu wp-admin

    don't i have to activte this plugin or configure it?

  10. dsader
    Member
    Posted 18 years ago #

    Sorry, yes I presumed you had installed the plugin already.
    First I put plugin wpmufeed.php in my mu plugins directory.

    Then you log in as the site admin to see the "Site Admin" menu, as usual.
    There you'll find the new "Site Feed" menu.

    dsader

  11. anabelle
    Member
    Posted 18 years ago #

    nope, there is no sitefeed menu :(

  12. dsader
    Member
    Posted 18 years ago #

    I dunno. Try http://www.itdamager.com/plugins/wpmu-sitewide-feed/. I just followed his instructions from scratch and they work.

    I download the plugin, put it in my mu-plugins folder(not the plugins folder), and it's just there under Site Admin. Mu version 1.0rc4, feed plugin version 0.3.1.

    Maybe it's there but just no menu try:

    http://yoursite.org/wp-admin/wpmu-admin.php?page=wpmu_sitewide_feed

    dsader

  13. slipxaway
    Member
    Posted 18 years ago #

    I'm having the same problem... Copy the file into mu-plugins and then it's not showing up under the Site Admin section.

  14. bmm
    Member
    Posted 18 years ago #

    So, if I'm reading correctly, this plugin "will not" work where mu has been installed in a "sub-directory” (e.g. http://blog_root.mysite.com/user-blogs)? If so, any ideas of what changes need to take place to do this? I really need a plugin like this.

  15. slipxaway
    Member
    Posted 18 years ago #

    has anyone figured out why this wouldn't be adding to the admin panel? I see the part in the code where it's supposed to add it, but its not "automagically" working and I just cant figure out whats wrong. It just doesn't appear to be doing anything at all. I tried site.com/wpmu-feed/, nothing... tried accessing the wpmufeed.php directly, nothing.. wont add to admin panel... Any help would be greatly appreciated

  16. bmm
    Member
    Posted 18 years ago #

    slipxaway:
    I had this same problem at first. I think there might be a couple of links that were *not* updated with the latest version of the plugin. Same thing was happening to me, then I found a couple of posts containing updates, I installed the latest and it worked like a charm. I’m sorry, I don’t have the page or link for the download that worked. If you leave your email I can send it to you.

  17. bmm
    Member
    Posted 18 years ago #

    So, this plugin will not work if mu is installed in a sub-directory?

  18. dsader
    Member
    Posted 18 years ago #

    I use subdirs, non-vhost, and it just works.

  19. slipxaway
    Member
    Posted 18 years ago #

    bmm, I appreciate the help. You can send it to me at emoscene@comcast.net Thanks again! :)

  20. bmm
    Member
    Posted 18 years ago #

    slipxaway: emailed file, let me know if it works.

    dsader: I have my mu installed in a sub directory, non-vhost and when I try to access /wpmu-feed/ i get bounced to the defualt index page (wp-signup.php?new=wpmu-feed).

    any ideas?

  21. dsader
    Member
    Posted 18 years ago #

    bmm

    Plugin activated? yes.
    Site Feed menu appears automagically? yes.
    Trigger Blog ID is anything but 1. Anything = an existing blog? yes.

    Path to feed?
    http://sitename.org/Anything/wpmu-feed/
    not
    http://sitename.org/wpmu-feed/

    ie. my trigger blog ID is 63. Blog 63 is "dsader".
    Therefore my site feed is

    http://sitename.org/dsader/wpmu-feed/

  22. bmm
    Member
    Posted 18 years ago #

    dsader:
    I read your post before...and is this the only way it will work? I guess I just did not want to create a "feed" or "dummy" blog to get this to work. Also, just to confirm from your example above;
    This works when you have mu installed in a sub-directory and all user blogs are being created in sub folders (e.g. http://root-blog.mysite.com/user-blogs), right?
    From this you get feeds for "all" mu blogs, not just the one with blog ID 63, right?

    Thanks

  23. dsader
    Member
    Posted 18 years ago #

    bmm,
    yes.

    Call your dummy blog "Feed" or "News".

    Put an "iframe cloak" in the dummy's theme header.php.

    <frameset rows="100%">
    <frame src="http://domain.org">
    </frameset>
    <noframes>
    Please follow link!
    </noframes>

  24. Melodiefabrieknl
    Member
    Posted 18 years ago #

    I am getting a 404:

    http://mu.mydisfish.com/wpmu-feed/

    Plugin is installed under mu-plugins unedited. I have only added these 2 like to htaccess.dist:
    RewriteCond %{REQUEST_URI} ^/wpmu-feed/(.*)$
    RewriteRule ^.*$ - [L]

  25. suleiman
    Member
    Posted 18 years ago #

    this Feed is not expiring properly. I'm having all sorts of trouble trying to get it to output the correct posts and posts from blogs I deleted hours ago are still persistently showing up in my RSS readers.

    Does anyone know how I could do a fresh install of this goodie? Deleting and re-uploading does no good I'm afraid.

  26. suleiman
    Member
    Posted 18 years ago #

    is anyone using this on an install of MU 1.0? After tehe upgrade this is what my sitefeed looks like: http://hadithuna.com/sitesfeed/

  27. Ovidiu
    Member
    Posted 18 years ago #

    well, if I click on the link to your sitefeed suleiman, I just get to your site, nothing else happens, when it should ask me for my favorite feedreader...

    same happens to me...

    one strange littel story, maybe it is related to the problem you reported about your sites loading slow:

    today I tried with the instructions you gave by mail to set up my mainblog site like yours, same theme (modified a little..) I tried to use the rss widget to display recent posts by showing the sitewide feed on my mainblog. I realized my server got slower and I got severall warnings from my system ... I had a look at the system resources and apaches children maxed out, mysql was going like crazy, a lot of slow queries , the system started swapping out and it almost came to a standstill...

    I tried a tail -f /var/log/accesslog which shows me in realtime what apache queries are incoming and 90% of those where accessing the sitewide feed... when I took out those feeds from my mainblog and reloaded apache everything went back to normal, so as I remember you reporting your site being slow... you might check these issues.

    I am not sure where the problem comes from, but I can for sure demonstrate and proof that if I put up my sitewide feed on my mainpage and relaod my site severall times the system breaks down.

    maybe someone with more insight into these matters could give me some hints what to check?

    oh and by the way, does this plugin need something like this:

    RewriteCond %{REQUEST_URI} ^/wpmu-feed/(.*)$
    RewriteRule ^.*$ - [L]
    like mentioned a few posts above mine?

  28. Ovidiu
    Member
    Posted 18 years ago #

    I do not want to bore anyone, but I remember reading a post somewhere her about plugins breaking the feed, and Igot this problem too: http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fzice.ro%2Fwpmu-feed%2F

    that is a link to a feedvalidator, have a look at the error it gives. thats caused by the popularity report plugin, any idea what to to, except for deactivating the plugin?

  29. suleiman
    Member
    Posted 18 years ago #

    Ovidiu, I did eventually get my site feed working, it's located it hadithuna.com/sitefeed/.

    In terms of speed, what is actually happening on my main blog is the sitefeed is being pulled from the Feedburner URL (feeds.feedburner.com/HadithunaMasterFeed/) and not directly from hadithuna.com/sitefeed/.

    Were you saying your mainpage was slow because sitewide feed was installed period? Or because your main page was pulling from the sitewide feed url?

  30. Ovidiu
    Member
    Posted 18 years ago #

    because the main site was pulling that feed which was and is broken because one of my plugins breaks it :-(

    I know I have seen a post somewhere here, saying something about a plugin breaking the feed, I just do not find it now...

About this Topic

  • Started 18 years ago by itdamager
  • Latest reply from jeremybyrne