The MU forums have moved to WordPress.org

Installing Calendar 2 in WPMU (13 posts)

  1. thtang
    Member
    Posted 17 years ago #

    I have installed the plugin Calendar 2 (http://n0id.hexium.net/?page_id=56) in my site. However, since it's for WP only, i have to edit the code so as to make it compatible to WPMU.

    I have a problem.
    I add

     <? if (function_exists('do_calendar')) {
    	do_calendar();
    }	?>

    in sidebar.php. The domain: mydomain/wp (admin blog) can show the calendar while /mydomain/wp/apple (user "apple"'s blog) cannot.

    I would like to know why the function_exists will return false in apple blog while return true in admin blog.

    Thank you.

  2. lunabyte
    Member
    Posted 17 years ago #

    Have you asked the plugin author?

  3. thtang
    Member
    Posted 17 years ago #

    no, but can you suggest me why it cannot find te do_calendar function if the domain is mydomain/wp/username but workable in mydomain/wp...

    Thanks

  4. drmike
    Member
    Posted 17 years ago #

    Which subdirectory did you install this plugin? Can you explain how you've installed it please?

  5. thtang
    Member
    Posted 17 years ago #

    I installed the plugin in /wp-content/plugins/.

    I just put the calendar folder in wp/wp-content/plugins/ and the activate the plugin with admin login.

    And then i add the code

    <? if (function_exists('do_calendar')) {
    	do_calendar();
    }	?>

    in sidebar.php in wp-content/themes/default/. Then i can see the calendar in admin page but not other's blog.

    Thanks

  6. lunabyte
    Member
    Posted 17 years ago #

    Did you activate it under the individual blog, and not just the admin one?

  7. thtang
    Member
    Posted 17 years ago #

    Really thx. i miss this. After activating it, it can display the calendar.

    However, as administrator, i would like to know if i can set it active for all blogs?

  8. andrea_r
    Moderator
    Posted 17 years ago #

    That's what the mu-lplugins folder is for. It will make it active for *all* users.
    You may still need to edit it a bit though. have to try it and see.

  9. thtang
    Member
    Posted 17 years ago #

    you mean i should put the calendar folder in the mu-plugin folder instead of plugin folder so i can make it active for all user?

    Thank you.

  10. thtang
    Member
    Posted 17 years ago #

    i have tried put the folder in the mu-plugins folder but it does not active in other user blog...

    any advice?

    Thank you

  11. andrea_r
    Moderator
    Posted 17 years ago #

    Does it give you an error? Did you remember to take the copy *out* of the regular plugins folder? Did you add the function call to the other user's themes?

  12. lunabyte
    Member
    Posted 17 years ago #

    "i have tried put the folder in the mu-plugins folder but it does not active in other user blog..."

    mu-plugins does not recognize directories inside of it.

    Please search the forums here to learn about the differences between mu-plugins and plugins.

  13. thtang
    Member
    Posted 17 years ago #

    I fixed it.

    Thank you so much for your help.

About this Topic