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 03-02-2008 08:31 PM

You're welcome! I have only done a few but check my profile for other mods https://vborg.vbsupport.ru/member.php?u=110638

DieselMinded 03-04-2008 03:28 AM

Uninstalled , Used .htaccess to rewrite different links to different styles

Merjawy 03-04-2008 09:18 PM

I like this mod.. really do .. even though I have few domians parked but not all are used now.. but from time to time someone would come through them

I have 5 domains but all point to same and one site with one copy of vB installed and that was fine as I been told by vBulletin a while back.. as I only have one copy installed and not modified in any way to act as mutli site/forum

mister 03-17-2008 09:03 PM

Quote:

Originally Posted by dartho (Post 1358189)
You can't hide parts of your forum as such, all you can do is assign a different style based on the URL visited.

Does anybody know if a hack like this exists? I'd like forum A B and C to show on domain1.com and forum A D and E to show on domain2.com .. (note 'A' is shared between both, but B C D and E aren't.

dartho 03-17-2008 11:47 PM

You could possibly use conditionals in your templates for each individual style in conjunction with this add-on to do this. If you have multiple domains which display different content, under vBulletins license agreement you would be required to have a vBulletin license for each domain...

newmasalaboard 04-08-2008 09:05 AM

Hello,

Great hack i must say!
But i have 2 questions :

1. I have 2 domains www.abc.com and www.xyz.com [suppose]. Forum is running on www.abc.com and i want www.xyz.com to be a second domain which should point to www.adc.com but with a different look.Now what server settings will i need for www.xyz.com ?

I have edited the nameserver of the new domain to the same server.Now simply i have to add the domain in DDDS settings or i have to add the domain to the server first. Basically what i want to ask is how will i redirect 2 domain to same forum.

2. Is there any option by which i can hide some sections of www.abc.com in www.xyz.com and viceversa.

dartho 04-08-2008 12:52 PM

@newmasalaboard - You need to have domain xyz.com point to the same webspace as abc.com - A or CNAME records I think? If using cpanel you would "park" xyz.com or add it as an addon domain and point it's home directory at the same home directory as abc.com.

If both domains are point ing to teh same webspace, they will both get the same content -ie. your forum. You can then confire this add-on to assign a different style based on teh domain visited.

See the post before yours for the answer to question 2.

funkmeister 04-15-2008 03:09 AM

dartho - a question for you. I apologize if they've been answered earlier, but after reading through this, I don't think so.

If I park a domain onto another domain, both domains non-forum content will be the same, as they will share the same document root, correct?

In my case I have 2 domains (one with a forum already installed) - I want to share only the forum content between the two (each with it's own unique style), but keep the rest of the individual domains document root's completely different/separate. So let's say it's all about "cars" - both forums are all about "cars", but one website's main content is all about German cars and the other website is about American cars.

So I need a shared forum, but the two domain's other content are completely separate (different document roots and with different content) - how would I set up each domain from the server side to accomplish this? I'm using WHM and cPanel. I assume the domain with the forum currently installed, kind of acts as the master domain in some fashion?

How do plug-in's act with this installed - are there any known one's that have issues, or is it completely transparent to them?

Thank you in advance.

mariocaz 05-21-2008 12:13 AM

Hi dear Dartho, is this working on 3.7 Gold ??

mariocaz 05-21-2008 12:18 AM

Yes I can confirm that is working in 3.7 gold very well, thnk you.

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 ! :)

DieselMinded 02-28-2009 12:48 AM

<a href="http://www.fluidhosting.com/support/hsphere/user/html/14191.htm" target="_blank">http://www.fluidhosting.com/support/...html/14191.htm</a>

vanistrians 02-28-2009 12:54 AM

Quote:

Originally Posted by DiesellMinded (Post 1756555)


I have all 4 urls hosted... I do not wish to create redirects. Just seperate template styles re-assigned to them. Thanks anyway Diesel.

Basically I have it like this...


domainname1.com = article site
domainname2.com = blog site

domain1 is the main site but domain2 is just an extenstion of the first url.

Lets just say that I was able to get a generic blog domain I want to use to co-brand domain1 :)

I really am hoping DDDS is a good way to assign different template styles without too many issues.

DieselMinded 02-28-2009 12:56 AM

Using redirects ensures that your sites dont compete against each other and eliminate each other via duplicate content .

theres also vbulletin licenses issues that may arise if this is accomplished by other means

i have 9 url's pointing to diesel bombers , only 1 using the mobile style

Normal
www.dieselbombers.com
www.dieselbombers.net
www.dieseldiscussion.com
www.dieselperformanceforum.com
www.galaxydiesel.com
www.ballsdeepdieselperformance.com
www.dieselvendor.com
www.bombeddiesel.com
www.dieselcommunity.com
Mobile
www.dieselbombers.mobi

vanistrians 02-28-2009 01:09 AM

Im not worried about license issues... I spent a long time saving up for all the vbulletin major addons ( wasn't easy either! ). Worst case scenerio I would end up buying another license if needed. Really its just one site... divided into two urls for its different features. Marketing reasons is why I want to do this. (the second url is a generic phrase I want to use as the site's blogger community)

No worries of duplicate content... url #1 would just have user generated articles. Url # 2 would just be a blogger community.
I am not making a forum section at all with vbulletin-oddly enough its just going to be articles and blogs. Both urls would pull data from the same mysql table.

vanistrians 02-28-2009 01:14 AM

Believe it or not I was actually able to get a generic blog domain name that I would like to use exclusively as the site's main blog portal... but I do not wish to rename the site. DDDS looks like this would be really good. Still waiting on Dartho's response.

Thanks for the help diesel !

DieselMinded 02-28-2009 01:16 AM

You can still do that with redirects and increase your SEO , How ever you want to do it Good Luck

DieselMinded 02-28-2009 01:19 AM

Quote:

Originally Posted by vanistrians (Post 1756556)
I have all 4 urls hosted... I do not wish to create redirects. Just seperate template styles re-assigned to them. Thanks anyway Diesel.

Basically I have it like this...


domainname1.com = article site
domainname2.com = blog site

domain1 is the main site but domain2 is just an extenstion of the first url.

Lets just say that I was able to get a generic blog domain I want to use to co-brand domain1 :)

I really am hoping DDDS is a good way to assign different template styles without too many issues.

Is there a Blogs link on your article site and when you go to it the articles url is still active and the blogs url is not ? if so then the 2 urls will compete on search engines as the same content is on 2 different urls

vanistrians 02-28-2009 01:59 AM

btw... Dartho... if you ever get a chance... please lend some input on post # 97 if you have any time. Here is the link again that may help with my question. The panel only shows to enter urls... how do I assign different styles to them? Thanks !


:cool:

vanistrians 02-28-2009 02:27 AM

yes... are the articles url it will have links that will direct to the blog url and the blogs url will have links that will point back to the articles url. Right now i noticed a small issue of having to sign in twice but ill take care of that later on. Redirects are good but not a best situation for everything depending on the goal in hand. I would think that would be kind of funny of the blog url competes with the articles url. That would be like snickers candy competing with twix... both are owned by mars inc. Wouldn't hurt anything if it did.

DieselMinded 02-28-2009 02:52 AM

yes it would ,

Along comes a google bot

whats this ohhh a article ...

This is an article about .....

the google bot says ill index this sucker in to my database so when people search google this will come up ...

a week later a google bot is on your blog site

it says whats this ohhh a blog ..

This is an article about .....

What the hell this is the same thing

Then its either not going to index it , index it and remove the other one or just black list you

if the content is different thats fine ...thats how the internet works different content different url's BUT if you have the same content on

www.yoursite1.com/blogs
and
www.yoursite2.com/blog

even tho that's not the intent if the same content can be reached with 2 different url's then your screwing yourself

vanistrians 02-28-2009 03:19 AM

ok... here's the way its being done...

1. domain#1.com articles only (no forums or blogs)
2. domain#2.com blogs only (no forums or articles)

I will create a robots.txt in both urls where only certain directories can be crawled and blogs will only be achieved in url # 2

Still trying to figure out the proper settings and syntax for the DDDS in vb. Quite painstaking aweful since I'm mainly an actionscript guru. I have it htacess protected as of now. when I get more work done to it I will remove the htacess prompt box

As soon as I am able to figure out proper DDDS usage it would benefit both to have simular but different styles... only difference would be content and page navagation. Styles will be similar though.

vanistrians 02-28-2009 03:40 AM

lol politics and programming... I feel like Winstin Churchill ! lol

vanistrians 02-28-2009 03:49 AM

just forgot.. since the site that is being developed is proptboxed protected... the previous link pertaining to the question would have been kinda null... here is the link to the screenshot of the Different Domain Different Style control panel


It shows to enter the domain and style id but how to I attach a newly created template to a style id ? what procedure?

vanistrians 02-28-2009 07:51 AM

I think I will try to have better luck uninstalling the ddds I have and installing DDDSDL instead because that one appears to have an option to select added styles from a dropdown menu... havent had too much time to see if it works out for me.

dartho 03-01-2009 10:31 AM

O.k.

ekool 11-08-2009 05:07 PM

Does anyone know if this works with 3.8?

halkum 11-25-2009 07:20 AM

I can confirm this works with vbulletin 4.0 beta 4!!!!!


All times are GMT. The time now is 09:31 AM.

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.01414 seconds
  • Memory Usage 1,835KB
  • 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
  • (3)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
  • (37)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