Before you embark on this approach ... think carefully about what you're trying to achieve ... possibly post some more information (more than a single line).
Assuming you know what you're talking about and have thought about the ramifications of messing with the user tables (possibly messing up authorship and other Drupal features) ...
1. set up your subdomain to point to the same location as your main domain (public_html or whatever) ...
2. in your "sites" folder ... create a folder ... call it com.example.yoursubdomain (see settings.php for instructions on how Drupal matches subdomains to folder names).
3. make a copy of the settings.php in the sites/default folder ... put it in com.example.yoursubdomain
4. alter the information in this new settings.php file ***
*** in the settings.php file there is some basic instructions on how to use table prefixes to share/not share particular tables.
Because your main Drupal install (presumably) doesn't use any table prefixes ... you can achieve your goal by setting up a prefix for user tables (and associated profile tables) in the subdomains settings.php file.
The website that I want to use is called tolstores.com with a subdomain of puelblo.tolstores.com. I have accomplished your items 1, 2 and 3, but because of the warning that you mentioned I decided not to proceed until I could do it and not create problems. The site is built with drupal 6 and Ubercart 2. I would like to share everything except the users. For the main site tolstores.com, it will serve most of the closer areas. But because Pueblo is further away and thus will have higher costs I would like it to have a separate user or customer list and possibly have the some (or all) of the items for sale listed at different prices. If there is a better way to do this I am willing to entertain it.
So many parts of Drupal use UIDs to identify shopping carts, content authorship, who's online, etc. Drupal isn't going to know that UID 13 on the subdomain isn't the same user as UID 13 on the main site (how could it?).
I think a better approach would be to use a single website ... two (slightly) different themes to brand each site, Organic Groups to handle subscription, or maybe domain_access (contributed module) to assign certain bits of content to each (or both) sites. Then you're "only" problem would be tackling different prices for products depending on which site you're on.
I haven't got an immediate solution (off the top of my head) ... perhaps have a look on the Ubercart forums ... maybe UC Role Discount and using two different roles could be a solution? (guessing here).
Comments
Before you embark on this
Before you embark on this approach ... think carefully about what you're trying to achieve ... possibly post some more information (more than a single line).
Assuming you know what you're talking about and have thought about the ramifications of messing with the user tables (possibly messing up authorship and other Drupal features) ...
1. set up your subdomain to point to the same location as your main domain (public_html or whatever) ...
2. in your "sites" folder ... create a folder ... call it com.example.yoursubdomain (see settings.php for instructions on how Drupal matches subdomains to folder names).
3. make a copy of the settings.php in the sites/default folder ... put it in com.example.yoursubdomain
4. alter the information in this new settings.php file ***
*** in the settings.php file there is some basic instructions on how to use table prefixes to share/not share particular tables.
Because your main Drupal install (presumably) doesn't use any table prefixes ... you can achieve your goal by setting up a prefix for user tables (and associated profile tables) in the subdomains settings.php file.
More explanation
The website that I want to use is called tolstores.com with a subdomain of puelblo.tolstores.com. I have accomplished your items 1, 2 and 3, but because of the warning that you mentioned I decided not to proceed until I could do it and not create problems. The site is built with drupal 6 and Ubercart 2. I would like to share everything except the users. For the main site tolstores.com, it will serve most of the closer areas. But because Pueblo is further away and thus will have higher costs I would like it to have a separate user or customer list and possibly have the some (or all) of the items for sale listed at different prices. If there is a better way to do this I am willing to entertain it.
BTW thanks for answering,
Ron
So many parts of Drupal use
So many parts of Drupal use UIDs to identify shopping carts, content authorship, who's online, etc. Drupal isn't going to know that UID 13 on the subdomain isn't the same user as UID 13 on the main site (how could it?).
I think a better approach would be to use a single website ... two (slightly) different themes to brand each site, Organic Groups to handle subscription, or maybe domain_access (contributed module) to assign certain bits of content to each (or both) sites. Then you're "only" problem would be tackling different prices for products depending on which site you're on.
I haven't got an immediate solution (off the top of my head) ... perhaps have a look on the Ubercart forums ... maybe UC Role Discount and using two different roles could be a solution? (guessing here).
Thanks
Thanks for the reply. Your response has save a bunch of headaches and grief!!
Thanks again,
Ron