Page 4 of 4 FirstFirst ... 234
Results 31 to 39 of 39
  1. #31
    Join Date
    May 2010
    Posts
    15

    Default

    Thanks for everything Jonathan! This will allow us to create the addon's we need while keeping our installation easy to update.

  2. #32
    Join Date
    Jun 2010
    Posts
    23

    Default

    Quote Originally Posted by jonyo View Post
    I *think* he is referring to making all 10 domains "point" to the same installation. First thing is first, like Geomodules said, contact us at sales@geodesicsolutions.com to talk about setting you up software license wise and what it would take.

    Once you have the license set up, to make a different template set load that would be done in the file geo_templates/t_sets.php. You would customize that file, and add code to load a specific template set based on what domain is being used. See this tutorial for the general isntructions on how to get started. The "criteria" portion might look something like this:

    PHP Code:
    if ($_SERVER['HTTP_HOST']=='domain1.com') {
    geoTemplate::addTemplateSet('domain1_templates');

    Hope that helps get you started If you need any more help just ask!
    I tryed adding a code to make that work but not working my code looks as followed
    PHP Code:
    if ($_SERVER['HTTP_HOST']=='jacked-up.midmobuyandsell.com') {
    geoTemplate::addTemplateSet('new_site');
    }elseif (
    $_SERVER['HTTP_HOST']=='midmobuyandsell.com') {
    geoTemplate::addTemplateSet('blue_lite_primary');
    geoTemplate::addTemplateSet('blue_lite_secondary');
    geoTemplate::addTemplateSet('my_templates');

    Any Ideas?
    Last edited by JohnM; December 30th, 2012 at 04:16 PM. Reason: adding to it

  3. #33
    Join Date
    Jun 2006
    Location
    Texas
    Posts
    4,633

    Default

    Quote Originally Posted by JohnM View Post
    I tryed adding a code to make that work but not working my code looks as followed
    PHP Code:
    if ($_SERVER['HTTP_HOST']=='jacked-up.midmobuyandsell.com') {
    geoTemplate::addTemplateSet('new_site');
    }elseif (
    $_SERVER['HTTP_HOST']=='midmobuyandsell.com') {
    geoTemplate::addTemplateSet('blue_lite_primary');
    geoTemplate::addTemplateSet('blue_lite_secondary');
    geoTemplate::addTemplateSet('my_templates');

    Any Ideas?
    What does the entire file look like? It could be doing things before/after the code you added, not sure. Also when you say "not working", what is it doing specifically?

    Some hosts you have to use something different than HTTP_HOST, it could be that is the case for you, or something else might be going on, hard to say though without seeing the problem in action or knowing more details.

  4. #34
    Join Date
    Sep 2011
    Posts
    73

    Default

    Quote Originally Posted by geomodules View Post
    So what you asking here???

    Is this....

    user comes to domain1.mydomain.com and now you redirect them to one template.
    another user comes to domain2.mydomain.com and now you redirect them to another template

    is this correct?

    If so then I could use the language to do it. VIEW HERE

    You create the redirect to send them to the site and then place the URL for the language. Each language has its own templates. Your not using it for french, italy etc... You just diplaying different templates. But in the end they are actually on the same domain after the redirect. If this is what you mean this will work I am sure.
    Suppose you want to have users come to domain1.com or domain2.com, rather than as subdomains of mydomain.com, you don't mind purchasing an extra Geocore license to do it, but you want users to have a single log in so that their login is coordinated across multiple domains (on the same linux server): What's the best way to do it?

  5. #35
    Join Date
    Jun 2006
    Location
    Texas
    Posts
    4,633

    Default

    Quote Originally Posted by jdj View Post
    Suppose you want to have users come to domain1.com or domain2.com, rather than as subdomains of mydomain.com, you don't mind purchasing an extra Geocore license to do it, but you want users to have a single log in so that their login is coordinated across multiple domains (on the same linux server): What's the best way to do it?
    Well if each is running it's own GeoCore installation, use the bridge addon. If you are using a single installation to run both, no need since by definition, the same user will be used on both sites, since it is essentially the same website.
    Last edited by jonyo; February 27th, 2013 at 10:16 AM.

  6. #36
    Join Date
    Sep 2011
    Posts
    73

    Default

    Quote Originally Posted by jonyo View Post
    Well if each is running it's own GeoCore installation, use the bridge addon. If you are using a single installation to run both, no need since by definition, the same user will be used on both sites, since it is essentially the same website.
    I thought from what I read elsewhere that the bridge only worked if both installations were on subdomains of the main domain. Is that not the case?

  7. #37
    Join Date
    Sep 2011
    Posts
    73

    Default

    Quote Originally Posted by jonyo View Post
    I *think* he is referring to making all 10 domains "point" to the same installation. First thing is first, like Geomodules said, contact us at sales@geodesicsolutions.com to talk about setting you up software license wise and what it would take.
    I'd be interested in the answer to this as well so that I know what all the options are for using multiple domains; both the technical side of it and any license considerations. Any chance of posting it here?

  8. #38
    Join Date
    Jun 2006
    Location
    Texas
    Posts
    4,633

    Default

    Quote Originally Posted by jdj View Post
    I thought from what I read elsewhere that the bridge only worked if both installations were on subdomains of the main domain. Is that not the case?
    It works fine across different domains for just syncing up users. The auto-login does not work though, that is just because of how cookies work, it can't set a cookie for a different domain name so it can't log you in for the other domain name automatically. So the same user would be on both sites, but you would need to log into the second site even if you are already logged into the first site. If the 2 are on the same domain, it will auto-log you in just fine to all installations on that domain.

    Quote Originally Posted by jdj View Post
    I'd be interested in the answer to this as well so that I know what all the options are for using multiple domains; both the technical side of it and any license considerations. Any chance of posting it here?
    That is not typical, we would take it case by case depending on the specific circumstances as each person's needs will be different. So in short, you would just need to contact us if you want to set up something special like this.

  9. #39
    Join Date
    Sep 2011
    Posts
    73

    Default

    Quote Originally Posted by jonyo View Post
    It works fine across different domains for just syncing up users. The auto-login does not work though, that is just because of how cookies work, it can't set a cookie for a different domain name so it can't log you in for the other domain name automatically. So the same user would be on both sites, but you would need to log into the second site even if you are already logged into the first site. If the 2 are on the same domain, it will auto-log you in just fine to all installations on that domain.
    Thank you that clears up my confusion.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •