vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - DDDS - Different Domain Different Style (https://vborg.vbsupport.ru/showthread.php?t=151514)

dartho 05-21-2008 12:27 AM

Sure is, there is however a 3.7 version over here which has some minor changes although identical functionality...

Parker Clack 02-26-2009 03:50 AM

If someone types in mobile.mydomain.com this works fine. If they type in mobile.mydomain.com/forum/index.php it uses the default skin instead of the mobile skin. Shouldn't this keep the mobile skin throughout the whole site?

vanistrians 02-26-2009 07:34 AM

okay... I'm an actionscript guru... not php/vbulletin gumshoe. I tried monkying around with this add on and got no results... here is what I did...

First I went to the plug in manager from the plug ins and products in vbulletin and then went to the link Force URL to Style and messed around with some of the code from the panel. Please tell me the proper method to place for the variables so I can see this actually work. here is the code...

if ($vbulletin->options['ddds_36_enabled'] == 1)
{
if ($vbulletin->options['ddds_36_en1'] == 1)
{
$styleurl=$vbulletin->options['ddds_36_url1'];
if(preg_match('/'.$styleurl.'/i', $_SERVER['HTTP_HOST'], $match))
{
$styleid=$vbulletin->options['ddds_36_style1'];
}
}

if ($vbulletin->options['ddds_36_en2'] == 1)
{
$styleurl=$vbulletin->options['ddds_36_url2'];
if(preg_match('/'.$styleurl.'/i', $_SERVER['HTTP_HOST'], $match))
{
$styleid=$vbulletin->options['ddds_36_style2'];
}
}

if ($vbulletin->options['ddds_36_en3'] == 1)
{
$styleurl=$vbulletin->options['ddds_36_url3'];
if(preg_match('/'.$styleurl.'/i', $_SERVER['HTTP_HOST'], $match))
{
$styleid=$vbulletin->options['ddds_36_style3'];
}
}

if ($vbulletin->options['ddds_36_en4'] == 1)
{
$styleurl=$vbulletin->options['ddds_36_url4'];
if(preg_match('/'.$styleurl.'/i', $_SERVER['HTTP_HOST'], $match))
{
$styleid=$vbulletin->options['ddds_36_style4'];
}
}

if ($vbulletin->options['ddds_36_en5'] == 1)
{
$styleurl=$vbulletin->options['ddds_36_url5'];
if(preg_match('/'.$styleurl.'/i', $_SERVER['HTTP_HOST'], $match))
{
$styleid=$vbulletin->options['ddds_36_style5'];
}
}
}



I tried the following method...

if ($vbulletin->options['ddds_36_en2'] == 1)
{
$styleurl=$vbulletin->options['http://www.domainname.com/'];
if(preg_match('/'.$styleurl.'/i', $_SERVER['HTTP_HOST'], $match))
{
$styleid=$vbulletin->options['template_style_name'];
}
}

badda bing... badda broken ! nothen appears to take any effect. Crack all the greenhorn jokes you want... time constraints get the best of any jedi !

Parker Clack 02-26-2009 12:40 PM

I am getting the following error

Warning: preg_match() [function.preg-match]: Unknown modifier 'h' in /global.php(233) : eval()'d code on line 9

and when I try to log in I get

vBulletin Message
Unable to add cookies, header already sent.
File: /usr/local/www/htdocs/htf/includes/class_core.php
Line: 3052

I couldn't log in to turn off the product so I deleted it from the database. I am still getting the error message. The only way I can get my forum to work is to comment out

($hook = vBulletinHook::fetch_hook('style_fetch')) ? eval($hook) : false;

Then everything works except now I cannot access my portal page that uses vBAdvanced as it uses the fetch_hook to load.

Any ideas how to fix this?

Thanks,
Parker

Parker Clack 02-26-2009 12:53 PM

Nevermind. I got it fixed.

Parker

dartho 02-26-2009 08:05 PM

@Parker - glad to hear, how about the query in post #92?
@vanistrians - what are you trying to do?

vanistrians 02-28-2009 12:11 AM

Dartho- I am trying to figure out the proper way to use DDDS of coarse. I have the product installed but just need to know the Standard Order of Procedure of how to use it... the basics 101.



I went to vbulletin options and selected Different Domain Different Style. I'm now @ the DDDS control panel.
Here is a link to the image of the control panel...




I also have a question if I should change anything in the following php code...





if ($vbulletin->options['ddds_36_enabled'] == 1)
{
if ($vbulletin->options['ddds_36_en1'] == 1)
{
$styleurl=$vbulletin->options['ddds_36_en1'];
if(preg_match('/'.$styleurl.'/i', $_SERVER['HTTP_HOST'], $match))
{
$styleid=$vbulletin->options['ddds_36_style1'];
}
}

if ($vbulletin->options['ddds_36_en2'] == 1)
{
$styleurl=$vbulletin->options['ddds_36_url2'];
if(preg_match('/'.$styleurl.'/i', $_SERVER['HTTP_HOST'], $match))
{
$styleid=$vbulletin->options['ddds_36_style2'];
}
}

if ($vbulletin->options['ddds_36_en3'] == 1)
{
$styleurl=$vbulletin->options['ddds_36_url3'];
if(preg_match('/'.$styleurl.'/i', $_SERVER['HTTP_HOST'], $match))
{
$styleid=$vbulletin->options['ddds_36_style3'];
}
}

if ($vbulletin->options['ddds_36_en4'] == 1)
{
$styleurl=$vbulletin->options['ddds_36_url4'];
if(preg_match('/'.$styleurl.'/i', $_SERVER['HTTP_HOST'], $match))
{
$styleid=$vbulletin->options['ddds_36_style4'];
}
}

if ($vbulletin->options['ddds_36_en5'] == 1)
{
$styleurl=$vbulletin->options['ddds_36_url5'];
if(preg_match('/'.$styleurl.'/i', $_SERVER['HTTP_HOST'], $match))
{
$styleid=$vbulletin->options['ddds_36_style5'];
}
}
}



In other words... what is the simplest way for me to assign a different style to a different domain with this? I do not see anything else in the Different Domain Different Style control panel that show where to input the style... it just shows Style ID and I have a choice of entering 0 to 5. True I can enter the url but how do I assign the different style to the newly selected url input ?

DieselMinded 02-28-2009 12:19 AM

DDDS is not the answer , all you do is set your additional domain names home page to the style id in your server admin cp .

www.dieselbombers.com
www.dieselbombers.mobi

this will also prevent search engines from indexing your additional domains as different sites and removing links from its listing as duplicate content

vanistrians 02-28-2009 12:27 AM

diesel.. how do I do this? And what do you mean DDDS is not the answer? I have a total of 4 urls hosted that shares the same data that I want to have similar but different stylesheets. Basically Im trying to develop a vbulletin based social network where the main url defaults to the vbadvanced dynamics article generator. The second url would share the same database but would just default to the vbulletin based blog module. I would like to assign similar but slightly different style sheets (the article url would have different page navagation and the blogger would have its own custom page navagation). As it stands... both the article url and blog url currently share the SAME template navigation. I really hope DDDS is a way to fix this.

vanistrians 02-28-2009 12:29 AM

From the looks of things the hype of DDDS was as big of a hype as obama's economic bailout plan. If DDDS is not qualified as a solution... then what is?


lol DDDS = bailout plan for vbulletin site developers wanting to create a multi-url socnet ! :)


All times are GMT. The time now is 07:29 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.01341 seconds
  • Memory Usage 1,748KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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