I start working on multisite on elgg 1.5rc
You can see it running on the demo site
The points are :
- multisite is not compatible with simple cache, that mean that you have to disable simple cache. I made a trac about that, but the elgg team answer is that the multisite is not yet fully yet supported so adapting simple cache is an ehancement and not a defect to solve. I fully understand that point of view as multicite is very new. I guess that the elgg 2.0 will be fully multisite so we wont have to hack the code to make it work. So for now, no simple cache until someone brings up a hack for that :)
- The river is still not multisite comptatible as you get river data from other sites mixed into the river of the site you are logged in. The solution is to add a site_guid field in the system_log table and to modify the river so that the site_guid is checked when retrieving log data. I already made that work, ill put it in the documentation of the group soon.
- i do my best to make the new multisite plugin the more out of the core as possible to avoid hacking. Unitl now (except the river pb) i succeeded :) i override or hook the actions that need to be, and keep it inside the plugin instead of hacking the original files
- Unfortunately, the site switching cannot be hook in a plugin. the sites_init function has a plugin_hook implemented but the hook is triggered before the plugin are loaded :) . The solution i have found is to add a multisite.php file in the engine/lib folder. This way, the siote_init hook can be registered before it is triggered by the sites_init function.
- Unfortunately, le messages standard plugin doesnt fully use the page_handler. The result is that i cannot override the pages that i would need to (the send page ...). So i am going to build a specific multisite message plugin, whhich will be a copy of the original one for most of the functions, but will be compatible with multisite. So the administrators will just have to disable the standar message plugin and enable the multisite compatible one. This is the last work i have to do before releasing a new version comptable with elgg 1.5
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
Hi Fabrice,
I have done the things you have written it works well now, I can create dynamic subdomains.
Bu now I got a different problem. I translated the language file into Turkish which comes with the multisite plugin (I had also translated the main language file of the elgg (elggroot/language/en.php) ). Now I want the main site to be in English but the demo community to be in Turkish. So I logged in to the demo site and changed the default language of it to Turkish. Up to this point eveythings ok. I browsed the main site and logged in to it and it is in English as I want. Then I browse to demo site and logged in to it and here comes the problem. All the top menu bar links except the Adminsite which comes with multisite are in English , but the thing that I could not understand is that when I click on the Adminsite or Settings links all become Turkish as I wanted at the beginning, then if I again click on Administration, Dashboard, or Tools menus they all (except Adminsite ) become English again.
Do you have any idea for the reason of this problem? or am i still doing smt wrong?
@ZOOZ : what 1.5 version are you using ? the RC1 was wrong with the langage switching, the RC2 should have fixed that but maybe there is still pb in multisite environment ... I did propose a patch for the RC1 http://community.elgg.org/mod/groups/topicposts.php?topic=23741&group_guid=23300
maybe you could try it and let us know. This code is the one running on my side and i aint got any pb with different langages (my main site is in french and the demo is in english ..)
@Pablo : i wil add a new option in the next version so that the global admin can decide if he is the only one who can create new communities or allow average users to do.
@Dhrup : i already joined your elgg addicts group :)!!!
@Malaga : Test it and share your experiences and ideas, this will be helpfull :)
@Kevin : Thanks and glad to see you in that group :) I am already through the simplecache pb. The new pg in coming from the load plugin function (took me time to point that out !!) A new ElggFileCache has been implemented there between RC1 and RC2 (and now in the final release). This new caching cause a full mix up of the plugins setting (themes and tools as well) when you go from a site to another one. Now that i have pointed it out, i think i can fix it. My first idea is to go to the elgg_get_filepath_cache function and add a few lines to split the caches into different folders (one for each site).
@all : i am on my way, i hope to release a full multisite plugin running with elgg 1.5 on tuesday !!!
Hi Fabrice,
In fact I am not using one of the RC's but the actual 1.5 release. Just be sure that the problem is not my actual installation I removed whole site and the db's and created a fresh install of the 1.5 release.Before installing the multisite plugin I checked the translated language files on the main site and they are working fine.Then follwing the steps that you have explained in the readme txt again I installed the plugin. Here I noticed another problem. If I use the users.php file form the hackedfiles folder, I can not see anything but only the top menu bar after I log in to the main site. So I removed the hacked file and copied the clean one there and applied the hacks manually. Then again I logged in to the demo site and chaged its default language but the same problem still exists. That is when I log in to the demo site all the meus are in English , but when I click on the Settings menu they become to Turkish. If I click on another link when they are in Turkish they all return back to English. Only the Settings menu changes the menu. I appied the the things that you sent in the link above but in fact they are already in the release. Nothings changed.
$ZOOZ This could be caused by the new elgg cache management ..all the path related to the plugins are now in cache (i cant check this for now cause im not at my desk and maybe the language path are cached too) this would cause a mix up different differents langage setting. I am going to check this on my side before releasing a final version of multisite for elgg 1.5. Maybe you should wait 2 or 3 days to get a clean version :)
Thanks for your help, I will wait for it.
Keep up the great work!
Hi! This plugin is great. Where can I download the multisite plugin for 1.5? or is it not yet released?
Hi, the multisite version for elg1.5 is ready and already running on the demo site. I just need a few time to write a clean instal documentaion... and i am running out of time the days...i do my best to make the plugin available to download a soon as possible :)
Hey Fabrice,
Hope all is well. Any chance of getting the code for testing sometime this week? Thanks for all you do.
Deon
Hi Fabrice,
First of all Thanks for the wonderful work.
I have included the plugin for my elgg1.5 installation on server.I have checked out the demo site as well as the documentation and discussions.I have the following issues in my installation.
I couldn't get the domain name in action addsite.
(I have added the domain in plugin settings)
So I just added the domain name dynamically and also included the hack in site_init using engine\lib\multisite.php.In this case I can create new sites and the site's entity is saving correctly in database.And I can login to the site using community owner login.
But I couldn't get any of the actions working.
Do you have any suggession for me? am I going in wrong direction?
once again ,thanks for all you do :)
Vinitha
- Previous
- 1
- 2
- 3
- Next
You must log in to post replies.