HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Forum Subdomain - Compatible?

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#26860 (In Topic #6199)
Joe
Avatar

Honoured member

As most of you should know, when creating a subdomain, a folder is created in your root directory where the subdomains information resides. Say if I were to install ocPortal with Invision Power Board for Forums. Would it be possible to install ocPortal in a location such as example.com, and the Forum at a location such as forums.example.com; would this work even though ocPortal an IPB were installed in two totally different directories? I thought I'd ask before actually trying just to find out it doesn't work. I know most Content Managing Systems don't allow the installation of Forum Software in a location other than below the CMS i.e. example.com/forums

Any help would be appreciated. Thanks. :)

-Joe

Back to the top
 
Posted
Rating:
#26861
Avatar

Community saint

Yes it would work fine.
Infact you can have the forum located any where even on a different domain trust me I tested it.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#26862
Joe
Avatar

Honoured member

Ok, thanks for the help. :)

Back to the top
 
Posted
Rating:
#26863
Avatar

Community saint

I should mention it is best to have them on the same server though.
Not sure if linking to a different server would work.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#26864
Joe
Avatar

Honoured member

But it would work on a different domain name that is hosted on the same server, right?

Back to the top
 
Posted
Rating:
#26865
Avatar

Community saint

yes thats what I was getting at sorry.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#26866
Joe
Avatar

Honoured member

Oh ok, thanks. :)

Back to the top
 
Posted
Rating:
#26867
Joe
Avatar

Honoured member

Err, it actually doesn't matter. When creating a subdomain on one of my hosts, it creates a folder named "subdomain.example.com" in the root directory, but with the host I'm trying to install ocPortal on, when creating a subdomain, it just makes a directory named "forums" in my root (public_html) directory, so the subdomain is showing information from the "forums" directory.

Back to the top
 
Posted
Rating:
#26868
Avatar

Community saint

Thats the way it should be.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#26869
Joe
Avatar

Honoured member

To clarify, my main domain name on my old host uses this directory:
/home/public_html/domain.com

And when creating a  subdomain, it creates a folder here:
/home/public_html/subdomain.domain.com

But with my host that I'm trying to install ocportal on, my main domain creates a folder here:
/home/public_html

And creating a subdomain (forums.domain.com) creates a folder here:
/home/public_html/forums

Back to the top
 
Posted
Rating:
#26870
Avatar

Community saint

The second way is also the way mine works and it should work fine on your ocPortal site.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#26877
Avatar

One small note – you can't use the 'Forum in portal' option (where the forum is framed inside ocPortal) with different subdomains (due to how Javascript security works), but otherwise it's fine.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#26896
Joe
Avatar

Honoured member

I'm confused. It wouldn't work even though seeing the subdomain creates a folder named 'forums'? Even when visiting my site without using the subdomain (domain.com/forums) doesn't work. And yes, the setting has been activated but is not working.

Back to the top
 
Posted
Rating:
#26897
Avatar

Javascript (and infact, any kind of web page technology that happens in the web browser) knows nothing of the directory structure of your web server. The security checks Javascript performs solely depend on the domain names involved.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: