vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Two URLs, Two Skins, One Board (https://vborg.vbsupport.ru/showthread.php?t=93818)

Brinnie 08-13-2005 07:38 PM

By the way, Google will hate you for this.

rebootln 08-13-2005 08:44 PM

i would like to do this also

same content just different logo to be displayed....not even different style

Chris 96 WS6 12-31-2006 05:45 PM

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 (Post 752532)
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.


Adrian Schneider 12-31-2006 06:07 PM

in 3.5/3.6 put it in the style_fetch plugin, and also you need to set $userselect to true

Chris 96 WS6 12-31-2006 07:56 PM

How should I set the alternate domain up? Masked park on top of the forum home?

Chris 96 WS6 01-02-2007 06:09 PM

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?

GruntHalo 03-15-2007 09:30 PM

wow lol this forum has everything :O


All times are GMT. The time now is 02:26 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.01179 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete