By TuTToWeB on
hi to all,
if it's possible, i need to, for some users, to make log in them from another drupal web site, installed on the same server.
I want to explain my problem completely...
I built a website for an italian society and they need to another web site that have the same services of the first one, but with a different template.
But, when users logged in from the new web site, should be redirect to the first one.
My idea was: is it possible to login from the new site, but the access is valid for the first one also?
thank you very much
vg
Comments
up
up
......
You can enable the 'Drupal' module in the default package which "Lets you register your site with a central server " and lets you do what you are wanting.
Why you can't create it as a
Why you can't create it as a multi site? If it is multi site then you can share users table.
how to create a multi site?
how to create a multi site? and what is a multisite?
http://drupal.org/node/43816
http://drupal.org/node/43816
why 2 sites? why not 1 site
why 2 sites?
why not 1 site with 2 templates?
because some users must log
because some users must log in (thus, login page) with a different template...
for anonymous users there is at most one template...
so, i thought to do a new website for that users with the different template, so that they login and will be riderected in the first site with a different template, using role_template module.
so, there will be 2 urls
so, there will be 2 urls ..
aaa_for_general.com
aaa_for_vip.com
technically easy to do ..but..not biz smart...
instead, it's exactly what i
instead, it's exactly what i think to do. but i've
www.aaa_for_everyone.com
www.aaa_for_everyone.com/vipaccess
is it possible change theme for the seconds one?
yes.. depends on u are using
yes..
depends on u are using clean url or not...
/vipaccess will be convert as a param, and the theme template will based on this param to show the normal layout or vip layout.
BUT..if I were your vip, I will not be happy if u ask me to type extra characters (even just 10) ..VIP do not like typing ...ha ha ..
there's no my problem: my
there's no my problem: my firm wishs so, and i do what they say to me
i just thought: when vip
i just thought: when vip enter in their "home" and they go to any link, which template appear on the next page?
there's a problem, i need to
there's a problem,
i need to do 2 website, because the second one do not have the same content of the anonymous area.
When users log in, should be redirect in the first website with a different layout for the user.
So, the problem is the first posted
What you're looking to do can
What you're looking to do can be accomplished in a few way on a single site, which will be easier for your clients and less headache for you.
If the client wishes the logged-in users to see one set of content and the not-logged-in users to see another type of content, you could:
1. Create different content types to be used for anonymous user content or logged-in user content
2. Allow the client to choose an audience for each node, which can be handled by modules like Content Access or potentially something in a search for access-moderation modules.
On the different look thing. My assumption here is that the anonymous, not-logged in users will be able to access significantly less information than the logged-in users. Potentially, they'll have fewer pages to look at. Whatever the case may be, there is a straight-forward way within Drupal to enable a different look and layout for anon and logged-in users.
The way I would probably go is to use one theme, but add a little bit of code to the file named "template.php" which controls how the theme is used by Drupal. The top-level of the code basically says "Is use logged in? If yes, use page.tpl.php. else, use anon-page.tpl.php" Then you build anon-page (or whatever you call it) and probably a copy of the theme's css file that you can make custom changes to for the anon template. There are people more qualified than I to help you with this.
At any rate, making two completely different sites is not only redundant, but will make whoever administers the site spend twice as much time as they need to.
Might I offer a suggestion
Might I offer a suggestion and ask a question?
Your customer might be happy with vip.site.com for the vips and www.site.com for the unwashed masses.
My question is whether the Drupal module is in 6.x? I don't see it there but I do in 5.x. Or am I just stupid?
:)
Which module are you looking
Which module are you looking for? If you're talking about a module to handle a domain www.site.com and a subdomain vip.site.com, I think it might be more efficient to use the server host's domain controls to redirect/mask vip.site.com to the authenticated area of www.site.com. The more modules present, the slower the site.
the problem is: there is 2
the problem is:
there are 2 anonynous users where the firsts one go to www.site.it and the seconds one go to vip.site.com
problem isn't how to manage those 2 anonymous users.
I think I may be
I think I may be misunderstanding how the users interact with the site.
Can you explain how a user interacts with the sites? This may clarify what the needs are. From what I understand:
1. A user enters URL
2. lands on www.example.com
3. That user logs in
4. and is redirected to vip.example.com
Is this correct?
When I say "anonymous" I mean a person who has not logged into the site. So the distinction is "anonymous" (not logged in) and "authenticated" (logged in).
or, rather, 1. user lands on
or, rather,
1. user lands on www.site.com
2. user logs in
3. user pointed to www.site.com/vip with a different theme.
This is a perfect case for a template.php conditional handler. If I can find the code specifically I'll link to it here, though I'd also suggest asking around the programmers you know for assistance as well.
What i want to do is: 1a.
What i want to do is:
1a. User goto www.site.it with theme A
2a. log in
3a. personal page with theme A
Then
1b. user goto vip.site.it with theme B
2b. log in
3b. personal page (same page of 3a point) with theme B
my question is: how to make the page vip.site.it? Do I use a new drupal installation? Can I do it with the same drupal installation?
vip.site.it haven't the same content of www.site.it...
I thought to use two drupal installation that, when an user logged in, it will be redirected to 3a personal page, with module B, using the "role theme switcher" module
But, how to redirect login from vip.site.it to www.site.it?