1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. To combat forum spam, new accounts will need to make at least one (valid) post.
    Otherwise, we will periodically purge all users without posts or that haven't confirmed their account.

Domain and Subdomain Share Calendar?

Discussion in 'General Support' started by jcimb, Jun 9, 2010.

Thread Status:
Not open for further replies.
  1. jcimb

    jcimb New Member

    Still not sure after reading the forum whether I can have a domain and subdomain share one database.
    Main domain: courtsandridges.org
    Subdomain: swimteam.courtsandridges.org
    Calendar's been set up and working for quite a while on main domain. Would like to access calendar now via subdomain.
    The community has a swim team, and some events are to be displayed on both the main site and swim team site.
    I've tried modifying calendar.php's URL path and modifying the requires: require("http://courtsandridges.org/calendar/calendar.php")
    or
    require("/var/www/vhosts/courtsandridges.org/httpdocs/calendar/calendar.php")

    The only result I get that is not a white screen and is close to a calendar is with this:
    urlPath="/calendar/"
    and
    require("http://courtsandridges.org/calendar/calendar.php")
    even though I read that the require is not supposed to specify an absolute path.

    Here is the page I'm testing with:
    http://swimteam.courtsandridges.org/st_calendar.php

    Version 6.3.29 ionCube

    Thanks in advance!
    :confused:
     
  2. Brian

    Brian EPC Developer Staff Member

    You need to install two instances of the calendar (one on each domain) for this to work. Then share a common mySQL database connection.
     
  3. jcimb

    jcimb New Member

    Just to clarify - one license, two instances?
    Thanks for super-quick reply.
     
  4. Brian

    Brian EPC Developer Staff Member

    The general rule of thumb is that if you would need another print calendar because it will be administered by a different "group", you will need a separate license. If it's to be used by the same "group" but for different groups of events, you can use the same license file or use categories and the showCat option to filter events.
     
  5. jcimb

    jcimb New Member

    Cool - will give it a try and write back if I have problems.
    Thanks Brian!
     
Thread Status:
Not open for further replies.

Share This Page