Results 1 to 1 of 1

Thread: Multiple domain concept

  1. #1
    Senior Member wajones has disabled reputation wajones's Avatar
    Join Date
    Jul 2000
    Location
    Vista, California
    Age
    65
    Posts
    453

    Multiple domain concept

    I don't know if this concept has been mentioned before, maybe it has ??? but here's what I have.

    Code:
    $domain = $HTTP_HOST;
    $domain = strtolower($domain);
    $domain =str_replace ("www." , "", "$domain");
    if ($domain == "domain1.com") {
     $styleid=1;
    }
    if ($domain == "domain2.com") {
     $styleid=2;
    }
    I tried it and it works, I put it in global.php after the require('./admin/functions.php'); commented out the existing style setting routines and now I can have multiple domains pointing to the same scripts same database but different style and templates. In the bburl and homeurl fields you would put http://www.$domain/forums. etc. for your Replacement variables. Of course you lose the ability to switch styles unless you do other more creative things.
    Could be used in multiple ways with a little creativety.

    This is just a concept not a full blown hack, so take it for what it is. You will have to do a little more hacking to get it fully functional.
    Last edited by wajones; Fri 1st Jun '01 at 4:31am.
     

Similar Threads

  1. vB needs better multiple domain support
    By Xabbu in forum vBulletin Suggestions and Feedback
    Replies: 10
    Last Post: Tue 6th Jul '04, 12:19am
  2. Urgent: Using Board with Multiple Domain Names
    By SpeedStreet in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 4
    Last Post: Wed 15th Oct '03, 4:25pm
  3. Cookies and multiple boards on one domain
    By whopwood in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 2
    Last Post: Mon 13th May '02, 1:54pm
  4. Multiple domain hosting??
    By freehtml in forum vBulletin Hosting Options
    Replies: 0
    Last Post: Fri 10th May '02, 10:52pm
  5. Multiple domain names for one board.
    By paulsjv in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 1
    Last Post: Tue 4th Dec '01, 9:04pm

Bookmarks

Posting Permissions

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