Posted by beautifulmind on August 7, 2008 at 4:15am
An idea was popped in my mind when I was in bed. Is it worth using multi-sites concept with multi-version of Drupal? Like 5.x and 6.x, both share some user related tables and have different db for rest. This is just like the interface we have for http://api.drupal.org. As much as our
hypothetical multi-version concerns, we can provides some apparent difference related to working of both the versions, new features, etc.
I have your say about is it worth thinking in this way?
Thank you.

Comments
It should be fairly simple
It should be fairly simple to get a drupal 5 site and a drupal 6 site to share the same database and therefore share the users.
Yes
You can share the databases/tables which are having same structure and same use at is in earlier version of drupal....
what i mean to say is that you have to prefix all othere tables which are not common or which are used differently then it was in earlier version.
So hope you have got clear in mind what i mean to say.....
contact : 9879224233
Exactly!! This is what I
Exactly!!
This is what I mean!!!
But I see a difficulty here, suppose you wanna install a module for which a version of either 5.x or 6.x is not available, in such case, I think we have to manually modify the settings.php to assign the prefix to the table that our to be installed module will create.
Or there is another way to cop with this?
:)
beautifulmind
BeautifulMind
you could give the D5 site
you could give the D5 site tables a prefix of 'five_' and the D6 tables a prefix of 'six_' then all the shared tables a prefix of 'shared_'
All tables for new modules on the D5 site will have the 'five_' prefix and on the D6 site will have the 'six_' prefix, if they are modules.
That's a very good
That's a very good idea!!
:)
beautifulmind
BeautifulMind
multisite vs. multiple code
Not to rain on anyone's parade, and this simply might be me getting stuck on semantics, but is it still a multisite if you're using two different code bases? Also, where is your url going to point to? You'll need to have your two code bases in separate directories. Which one is your webroot? I kind of see what you're trying to do as two sites sharing a database, which is fine, and an interesting challenge, and there are modules that will help with that to some degree, but that's not a multisite, persay.
One option is to use subdomains and have each direct to the folder you want.
http://d5.example.comhttp://d6.example.com
But you're going to have a really tough time getting your site to run through both code bases.
Also, even if you do separate them out somehow, it will only work for very simple sites. There are incompatibilities in how core works between D5 and D6, that you're going to run into some major issues just on how nodes, modules, and content created by modules are handled. Try installing a D6 module on a D5 site and watch Drupal wonder what the hell you're trying to do. It's very interesting to watch Drupal try to figure that one out.
Mike
@ixlr8: You are right. Hey
@ixlr8: You are right.
Hey !beautifulmind. Do not try messing up things, you will land no where. Read the drupal documentation and use Drupal in best way.
Two different codebases & single database.... its not at all logical here... :(
Thanks to all of you for
Thanks to all of you for expressing your views. :)
You make the discussion a live wire. :)
I really wanted to know whether this is possible or not, as I daily visit the http://api.durpal.org. So, I thought, can't we implement the same thing for our website?
And I think its quite difficult to maintain single db over two codebases.
Thank you very much.
:)
beautifulmind
BeautifulMind
http://api.drupal.org
http://api.drupal.org doesn't use two codebases. Does it?
Well, it wasn't about the
Well, it wasn't about the codebases, but the way it displays information.
If you click on Drupal 5, you will get all about Drupal 5 and similar with other versions.
:)
Beautifulmind
BeautifulMind
This has nothign to do with
This has nothign to do with hte actual backend of the site. the just is powered by drupal 5 API module which just aggrigates information from any code base you point it to.
------------------
Sometimes interesting things appears on http://litwol.com
please move to drupal forum or related group
this is an interesting thread, but it is rather off topic for the nyc group.
When posting, please make sure that you post only to relevant groups and not simply to every group you are a member of.