Tagged: multi-site
- This topic has 6 replies, 2 voices, and was last updated 12 years, 2 months ago by Sebastian.
Author | Posts |
---|---|
Abland
July 8, 2012 at 7:22 pm
|
Notice: this information was written when Microthemer version 2 was current. On Dec 26th, 2014 version 3 was released with a completely new interface. Some of the information may be redundant, but as much of the functionality remains the same in version 3 we haven't deleted this post. Hi, This is nice software. I’m testing things on a WordPress multisite with an Artisteer parent. I’m unsure if this is the correct place to post, but I would suggest having a Settings page added would be a good feature. Currently, I’ve edited the plugin to only show the “Manage Themes” and “Prefernces” page to the Super Admin (myself). I’m also doing the same with the sidebar widgets “Import Settings” and “Plugin Menu”. For all sites in the multisite environment, each has an admin but I only wish for them to edit the theme I’ve assigned rather than seeing all the others. A Settings page for the Super Admin to assign what roles can see the available pages would be a good feature. |
Sebastian
July 8, 2012 at 7:28 pm
|
Hi Abland, Thanks for the feature suggestion. I’ll set up a dummy WordPress multi-site install so that I can look into that for you. Cheers, Sebastian |
Abland
July 18, 2012 at 2:27 am
|
Hi, Sebastian, Thought I should update you on the multi-site use of the plug-in. I’ve tried one parent theme and child themes for all sub-sites and that didn’t work so I’ve placed full themes for each site in the network. I’ll keep poking around and hopefully one of us finds a solution 🙂 |
Sebastian
July 18, 2012 at 9:00 am
|
Hi Abland, Thanks for sharing your activity. I’m sorry I haven’t had a chance to troubleshoot this yet. By the sounds of things, I’m going to have to have a close look at how Mulit-site WordPress assigns plugin resources to individual themes. I’ll post back here with my findings. Cheers, Seb |
Abland
July 18, 2012 at 5:00 pm
|
Hi, Sebastian, Thanks for your fast response. I’ve been messing with the code for a while and finally came up with the solution – simple in retrospect 😉 In “get-dir-paths.inc.php” approx. line 49 change: $this->micro_root_dir = $wp_content_dir . ‘/micro-themes/’; to: global $blog_id; Now each blog directory has its own micro-themes folder and active-styles.css and updates to one will not affect any other. This worked for my multisite setup but it would need some additional if / else to determine whether it was single or multisite install so that either one path or the other would apply. Thanks again 🙂 |
Abland
July 18, 2012 at 5:11 pm
|
lol – here we go 🙂 if (is_multisite()) { |
Sebastian
July 18, 2012 at 5:12 pm
|
Perfect! Yes I will add that update with a conditional statement which checks for multi-site on the next release of Microthemer. Thank you so much for sharing that insight. Sebastian |