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.
lunabyte
Member
Posted 17 years ago #
Have you asked the plugin author?
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
Which subdirectory did you install this plugin? Can you explain how you've installed it please?
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
lunabyte
Member
Posted 17 years ago #
Did you activate it under the individual blog, and not just the admin one?
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?
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.
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.
i have tried put the folder in the mu-plugins folder but it does not active in other user blog...
any advice?
Thank you
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?
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.
I fixed it.
Thank you so much for your help.