Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
Details »»

Version: , by wajones wajones is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 05-31-2001 Last Update: Never Installs: 1
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-06-2001, 07:56 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting.

Not exactly what I'm thinking of for using for myself, but this might actually come in handy at one point or another, nonetheless.

Currently, my plan is to make a network of all my sites. Two of those sites will be run on a different domain (probably stacked on the same server on the account of my first domain, though) with their own databases, but since my forum (the first site, or at least, part of it) is a support-forum for both of them, I want to design user registration for the two other sites in such a way that, with a single checkbox, they can choose to immediately sign up for the forum At The Same Time, with that very one signup session. So they'd be added as a new user to TWO databases - for this, I will have to do something similar to what you showed up there, yet in case I end up with my three domains on three different servers, then I will probably use the above for some extra connectivity.
Reply With Quote
  #3  
Old 12-07-2001, 09:06 PM
jamesdasher jamesdasher is offline
 
Join Date: Oct 2001
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have actually been able to expand this concept so that I can have different style and template sets for various browsers (NS goes to one IE to the other) therefore making it an option to have different sites that work in the various browsers
Reply With Quote
  #4  
Old 12-07-2001, 09:16 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's quite a good idea there. Sounds like too much work for me, though.

Plus, I don't care all that much about Netscape users. As long as a page _shows_ in NS, I ain't gonna bother any more making it compatible for them (with stuff like this). God, Netscape developed some excellent technologies for the internet over the years, but they should've stayed Way Clear from browsers!
Reply With Quote
  #5  
Old 12-08-2001, 06:45 AM
merk merk is offline
 
Join Date: Nov 2001
Location: Canberra, Australia
Posts: 601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually, NS follows more W3c Standards than IE
Reply With Quote
  #6  
Old 12-08-2001, 02:58 PM
Mark Hewitt Mark Hewitt is offline
 
Join Date: Oct 2001
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by wajones
I don't know if this concept has been mentioned before, maybe it has ??? but here's what I have.

You mean like my site
http://www.motorsportforums.com/forums/ vs
http://www.indyracingforum.com/forums/ vs
http://www.rallyforum.com/forums/ etc
Reply With Quote
  #7  
Old 12-08-2001, 07:09 PM
Modshack's Avatar
Modshack Modshack is offline
 
Join Date: Oct 2001
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I take it that you have alll of those domains on the same server and just point the domains to the same route dir ?

Also can you be more specific on what was edited out of the global.php ?

Any help apreciated as this sounds like a kewl little hack.

HM
Reply With Quote
  #8  
Old 12-08-2001, 09:20 PM
merk merk is offline
 
Join Date: Nov 2001
Location: Canberra, Australia
Posts: 601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Mark Hewitt


You mean like my site
http://www.motorsportforums.com/forums/ vs
http://www.indyracingforum.com/forums/ vs
http://www.rallyforum.com/forums/ etc

May i ask how you handled the login storage?

Or does one have to login 3 times?
Reply With Quote
  #9  
Old 12-09-2001, 05:44 PM
Modshack's Avatar
Modshack Modshack is offline
 
Join Date: Oct 2001
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If used with Biras Cookie Hack then I would think that the problem of having to log in all the time would be sorted or am I barking up the wrong tree .

Anyhow this would be a kewl hack for server admin so I think its worthy of a ^^^BUMP^^^

HM
Reply With Quote
  #10  
Old 12-09-2001, 08:03 PM
merk merk is offline
 
Join Date: Nov 2001
Location: Canberra, Australia
Posts: 601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im working on a extensive cross domain hack, however i dont believe the work will be released at this stage.

It really depends on how much longer its going to take me and how much code i have to write.
Reply With Quote
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:33 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05327 seconds
  • Memory Usage 2,282KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete