Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #21  
Old 08-13-2005, 07:38 PM
Brinnie's Avatar
Brinnie Brinnie is offline
 
Join Date: Jul 2005
Location: Louisiana
Posts: 360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

By the way, Google will hate you for this.
Reply With Quote
  #22  
Old 08-13-2005, 08:44 PM
rebootln rebootln is offline
 
Join Date: Mar 2005
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i would like to do this also

same content just different logo to be displayed....not even different style
Reply With Quote
  #23  
Old 12-31-2006, 05:45 PM
Chris 96 WS6 Chris 96 WS6 is offline
 
Join Date: Jul 2005
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, I want to do this too...same content on both "sites", just branded with a different domain/skin.

Somebody should release a hack for this.

Where would we put this in 3.6? Create a plugin under global_start?

Quote:
Originally Posted by Markro View Post
Oddly enough, the script doesn't work, because when I visit the domain from:

http://www.domain.com
-or-
http://domain.com

it'll only work on one, the one I configured in...

PHP Code:
 if ($_SERVER['SERVER_NAME'] == 'domaina')
{
    
$styleid X;
}
elseif (
$_SERVER['SERVER_NAME'] == 'domainb')
{
    
$styleid Y;

so, if I put, www.domain.com it'll only work for http://www.domain.com, but if I put domain.com it'll only work for http://domain.com .... have a solution?

EDIT: Solution found.

Solution:

PHP Code:
if ($_SERVER['SERVER_NAME'] == 'domaina.com' || $_SERVER['SERVER_NAME'] == 'www.domaina.com')
{
  
$styleid 2;
  
$vboptions['styleid'] = 2;
  
$bbuserinfo['styleid'] = 2;
  
$codestyleid 2;
}
elseif (
$_SERVER['SERVER_NAME'] == 'domainb.com' || $_SERVER['SERVER_NAME'] == 'www.domainb.com')
{
  
$styleid 3;
  
$vboptions['styleid'] = 3;
  
$bbuserinfo['styleid'] = 3;
  
$codestyleid 3;

Another question for you fellas, If I want to hide certian boards when domaina is visited or when I visited domainb different boards are hidden.
Reply With Quote
  #24  
Old 12-31-2006, 06:07 PM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in 3.5/3.6 put it in the style_fetch plugin, and also you need to set $userselect to true
Reply With Quote
  #25  
Old 12-31-2006, 07:56 PM
Chris 96 WS6 Chris 96 WS6 is offline
 
Join Date: Jul 2005
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How should I set the alternate domain up? Masked park on top of the forum home?
Reply With Quote
  #26  
Old 01-02-2007, 06:09 PM
Chris 96 WS6 Chris 96 WS6 is offline
 
Join Date: Jul 2005
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I implemented the code as suggested but it doesn't work. The plugin is active, $userselect is on.

I don't have to turn on register_globals to get $_SERVER to work do I?
Reply With Quote
  #27  
Old 03-15-2007, 09:30 PM
GruntHalo GruntHalo is offline
 
Join Date: Dec 2006
Location: New Jersey, USA
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wow lol this forum has everything :O
Reply With Quote
Reply


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 07:24 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04078 seconds
  • Memory Usage 2,238KB
  • Queries Executed 11 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete