PDA

View Full Version : Different Domains - Different Home Page


interfx
12-23-2004, 12:00 PM
is this possible?

I have a client that has the following desire, and I'm trying to figure out how to accomplish. Would really like to get it done in VBa...

http://www.thedomain.com
- Would show the entire VBa site... (All forums, etc.)

http://www.thedomain1.com
(redirect to www.thedomain.com/domain1_index.php)
- Would show the VBa site, but just the domain1 forums, etc. on the home page.

http://www.thedomain2.com
(redirect to www.thedomain.com/domain2_index.php)
- Would show the VBa site, but just the domain2 forums, etc. on the home page.

Brian
12-23-2004, 12:20 PM
As far as I know that's not really possible because you'd run into issues with cookies.

Our Sponsors
 

interfx
12-23-2004, 12:24 PM
Ok, I won't worry about the cookies... will just use the main site for the cookies.

The http://www.thedomain1.com will JUST redirect to www.thedomain.com/domain1_index.php. (ie. not really another site) just showing an index page with just news from forums that go with that rediected domain...

ie.

Forum Category - Main
Forum Category - Domain 1 (topic#1)
Forum Category - Domain 2 (topic #2)


I would show the VBa site, but just the domain1 forums, etc. on the home page.

Does that make more sense?

InterFX

Brian
12-23-2004, 12:41 PM
Shouldn't be a problem then. You'll just need to make a copy of the cmps_index.php file, then at the top, right after the <?php tag, add this code:

define('VBA_PAGE', 'page_name_here');

Then create different pages in the cmps and replace page_name_here in the above line to reflect the identifier you used on that page.

Our Sponsors
 

interfx
12-23-2004, 12:50 PM
That sounds pretty easy...

How would I then assign different forums to be shown on that new page I create? Right now I use the AdminCP to control which forums are shown on the index page...

How do I use this to define different forums on each of these new pages I'm creating above...

Thanks again for the fast replies...

Brian
12-23-2004, 01:12 PM
When you create a new page you will be able to change each option on that page and set it to pull news and such from a different forum.

interfx
12-23-2004, 01:17 PM
Wow, that's very simple...

Thanks again.
InterFX