The MU forums have moved to WordPress.org

Calender for WPMU (7 posts)

  1. sepp88
    Member
    Posted 13 years ago #

    hi there,
    i found this wonderful plugin that does exactly what i want for a normal wp-blog. you have the option to add a sidebar widget that shows upcoming and daily events. you can easily add new events in you admin. this plugin is just great. this is the plugin

    the thing is, it would be great to get exactly the same thing running with wpmu and the sitewide-tags plugin. so that every subblog has it's own calender and it's own sidebar, but the mainblog collects all calender-events of every subblog.

    would that be possible?
    thanks for your support

  2. SteveAtty
    Member
    Posted 13 years ago #

    The plugin works fine in WPMU if you put it in as a normal WP plugin, I've got it on my site.

    Not sure how much work it would need to make it fully automatic from the mu-plugins folder, but you could turn it on globally under 2.8.2 and then you could write a custom query for the "Admin" blog which crawls all the calender tables and creates a global calendar.

  3. sepp88
    Member
    Posted 13 years ago #

    oh, i know that it works, of course i tested it before i wrote that post here. however i thought maybe there is even such a plugin version for wpmu out yet.

    the plugin will be turned on on my mainblog anyway. so i would only need to write that query. unfortunately i've no idea how to do that.

    are there any tutorials, descriptions or something else out there that explains how to write such a query?

  4. SteveAtty
    Member
    Posted 13 years ago #

    If you're confident about writing php and a bit of SQL then its not really a problem. The best way is to dig into wpmu plugins and see how they handle working with multiple blogs and then you can take that code and base your code on it.

    I think that the reason there probably isn't a mu specific version of this plugin is that people might use calendars for different things and so a "global" calendar might not really make much sense.

  5. sepp88
    Member
    Posted 13 years ago #

    in my case i would make sense totally. #bummer

    would that be a lot of code? are we talkin of a few lines like 10 or a many lines of code like 500?

  6. Ovidiu
    Member
    Posted 13 years ago #

    the author of that plugin claims: Comaptible with WordPress MU

    that means it runs on wpmu, maybe you can "bribe" him to work in a wpmu feature, where if the plugin is run on blog_id 1 which should be the main blog, it gathers all other blogs's events and displays those instead of blog 1's events?

  7. Ovidiu
    Member
    Posted 13 years ago #

    anyway, I guess the needed changes aren't that big, I mean you gotta find the place where the plugin looks for events and put it into a loop, so it loops through all blogs gathering all events site-wide ;-)
    now all you gotta do is find someone willing to implement those changes...

About this Topic