PDA

View Full Version : Forum Display Enhancements - DDDS - Different Domain Different Style


dartho
07-05-2007, 10:00 PM
This is a simple add-on which will force a specific styleid based on the host url the user visited.

If you have 2 domain names which point to the same forum, you can have a customized style based on the domain name visited. You can do what you want, but it may be as simple as only having a different banner reflecting the host name visited, or if you have merged 2 forums - users could still get the same skin they always have had if they continue to visit the same URL.

Other uses may be having wap.domainname.com point to a different style than www.domainname.com.

With the HOST matching be aware that if the URL specified in the add-on matches anywhere in the url visited, the add-on will be triggered.

e.g. if URL specified in add-on = domainname.com, any subdomains of domainname.com will match this.

Version History
1.0.0: product_ddds_36.xml - Initial release, Supports a single additional domain
1.0.1: product-5_ddds_36.xml - Supports up to 5 additional domains
1.0.2: product-5_ddds_36.xml - fixed typo in code - update required!
1.0.4: product-5_ddds_36.xml - fixed bug, added comment code [B]update required!
1.0.5: product-5_ddds_36.xml - removed comment code - caused issues on some systems

dartho
07-06-2007, 01:08 PM
I was going to reserve this first post as it seems to be what everyone else does, but I didn't see the point...

iogames
07-06-2007, 02:03 PM
Well this is perfect for my site, but don't you have a PM or IM cause I want t ask you some details...

Luky
07-06-2007, 02:12 PM
Will this work for subdomains, eg. blue.mysite.com will give me a blue style and red.mystyle.com will give me a red style?

Alfa1
07-06-2007, 02:21 PM
Very nice!!

ngocha85
07-06-2007, 03:02 PM
Thanks. This is perfect for my site

dartho
07-06-2007, 09:06 PM
@iogames - you can send me a PM via https://vborg.vbsupport.ru/private.php?do=newpm&u=110638
@Luky - yes, it will work like that

dartho
07-06-2007, 10:33 PM
Just uploaded an additional new version which has support for 5 domains

projectego
07-07-2007, 07:13 AM
/me clicks install

Hornstar
07-07-2007, 08:16 AM
So if a domain is forwarded to another domain this will work for that domain as well? If so, that is pretty cool ^^

nice work either way.

Luky
07-07-2007, 08:46 AM
* installs

dartho
07-07-2007, 10:30 PM
Anyone who has installed the 5 domain version should upgrade (product-5_ddds_36.xml)!

Just re-install and choose YES to overwrite. There were some missing brackets in the code (bad copying/pasting on my behalf) which could cause issues.

Qwest
07-07-2007, 11:23 PM
This is perfect if you have a network of forums that feed off the same DB. You can have multiple domains/forums.

Question though. isn't hat against VB license agreement?

da420
07-07-2007, 11:42 PM
This is perfect if you have a network of forums that feed off the same DB. You can have multiple domains/forums.

Question though. isn't hat against VB license agreement?

If you only have one license - Yes, it would be against their licensing agreement. If you have enough licenses to match each site on your 'network' - No, it is not against the license agreement.

dartho
07-08-2007, 12:18 AM
having multiple domains parked on a single vb license is against the agreement, but I don't think the same applies to sub-domains.

If you do have multiple domains which you wish to park on the same forum - I suggest you use a 301 redirect (via .htaccess) - this way you won;t be in violation of license agreements. You could redirect to parked sub-domains and assign a different style using this hack.

Floris
07-08-2007, 04:06 PM
You can point sub domains and domains to a real site.

But you will require a license for each domain that appears as a separate forum - including sub domains.

If you detect with a plugin if a user is coming from WAP via a domain you can load the main site with a certain style. This is the same forum, and therefor is fine.

If you detect with a plugin where a user is coming from and give it a separate navbar/header/footer/content and therefor it appears as a separate instance aside from the real forum it is considered another instance and does require a license.

If anybody has any doubts they can simply start a support ticket on vBcom and ask staff to look into their situation to make sure no license agreement is broken.

This post is just a 'for your information'. Not dishing the plugin :) I like the plugin, good work.

GrendelKhan{TSU
07-08-2007, 05:19 PM
AWESOME!!
soooo gunna need this. :)

You can point sub domains and domains to a real site.

But you will require a license for each domain that appears as a separate forum - including sub domains.

If you detect with a plugin if a user is coming from WAP via a domain you can load the main site with a certain style. This is the same forum, and therefor is fine.

If you detect with a plugin where a user is coming from and give it a separate navbar/header/footer/content and therefor it appears as a separate instance aside from the real forum it is considered another instance and does require a license.

If anybody has any doubts they can simply start a support ticket on vBcom and ask staff to look into their situation to make sure no license agreement is broken.

This post is just a 'for your information'. Not dishing the plugin :) I like the plugin, good work.

so basically..if all the content (forums) is same, we're good? otherwise, wouldn't they just be considered different skins?

ie: I'm thinking of swithing my site's domain, but 301 forwarding my "old" domain to it...but with a different skin (perhaps for a SUBforum or even subdomain). so everything is the same content wise except the skin and perhaps what the landing page is (ie... maybe go directly to a sub-forum).

is that ok under one license?

dartho
07-08-2007, 09:50 PM
Thanks for the feedback Floris, but I think you may be reading too much into the license agreement..

vBulletin license grants you the right to run one
instance (a single installation) of the Software on one
web server and one web site for each license purchased.
Each license may power one instance of the Software
on one domain. For each installed instance of the
Software, a separate license is required. Modifications
to the Software or database to circumvent the
one-license-one-board rule are prohibited.

Based on the wording of the license agreement, sub-domains are fine - no matter what you do with the style. There's no mention of "appearing as a seperate instance". The basics appear to be: One License, One Instance/Installation, One Domain. A domain includes sub-domains, thats one of the many things that makes a domain a domain.

With a vanilla vBulletin install, you can already assign different theme's to different forums within your board. vbSEO maps forum names to subdirectory names - I'm suprised subdomains have not yet become part of vbSEO also, subdomains are quite an effective way of optomising your 'crawlability'

I'm going to check with vBulletin and point them to this thread to clarify.

dartho
07-08-2007, 11:19 PM
Confirmed with vBulletin.com - it is OK to point sub-domains at your main forum also

iogames
07-10-2007, 12:56 AM
Confirmed with vBulletin.com - it is OK to point sub-domains at your main forum also

Ok...

iogames
08-06-2007, 02:10 AM
Getting better? ;)

vspro
08-06-2007, 08:55 AM
can it may Different language ??

dartho
08-06-2007, 09:17 AM
Yes, the AdminCP interface is all phrased.

There are no end user screens, so if the admin can read english it will be OK for all Languages. You are welcome to translate and I can post the different language version in this thread also.

Ryuk
08-06-2007, 11:54 AM
perfect, thanks dartho!
*clicks install*

vspro
08-16-2007, 11:35 AM
Warning: preg_match() [function.preg-match]: Unknown modifier '/' in /global.php(237) : eval()'d code on line 9 :|

dartho
08-16-2007, 11:54 AM
I think that will happen with the mod enabled, but no URL specified...

vspro
08-16-2007, 03:51 PM
may i different domain point to small forum
ex :
sub.domain.com point to domain.com/forumdisplay.php?f=100
and it show as : sub.domain.com/index.php

dartho
08-16-2007, 09:06 PM
no, this can only change the style based on the domain visited.

What you suggest may be possible (and is a great idea) - but I think it would get too complex for someone like when when it comes to displaying threads/posts with in a forum

CraiovaOnLine
08-22-2007, 06:03 PM
can u do something like: different domains, diffrent logo ?
pleasee:)

dartho
08-22-2007, 09:26 PM
Yes - just create a new style (as a child of your existing one) and give it a different logo..

CraiovaOnLine
08-23-2007, 08:29 PM
Yes - just create a new style (as a child of your existing one) and give it a different logo..

Ok. I tried. Only if there is a problem.
The forum changes.
Take a look at the right side. It is bigger.
And this just for the ddds1, 2, 3 .. or 6!
The original style looks fine!

I'm using vb 3.6.5.
I know that the mod. is for 3.6.8 but..can you help me please?
Thanks!

//later
I just saw when trying to acces a forum this error:
Unable to add cookies, header already sent.
File: /home/craiova/public_html/global.php(241) : eval()'d code
Line: 12

dartho
08-24-2007, 03:59 AM
@CraiovaOnline - The alignment issue would be to do with how you modified the style rather than DDDS.

As for the error - make sure that all non used redirects are disabled, and that the enabled one has a URL.

I've sent you a PM.

dartho
08-24-2007, 11:00 PM
@CraiovaOnline - you were right! HTML comments in appear to have been interfering with the display, unsure why, but I have removed the commenst and released a new version. Tjis only affected the 5 domain version, tested and should be good now!

Thanks for the help/input Craiova

iogames
08-24-2007, 11:03 PM
still improving! ;)

ForYou
09-12-2007, 04:13 AM
Hello ,

I was install this hack and it is very very good hack , but this is just work when members login to my forum , mean when they login by the user name and password , but if still guest they will see the defaullt style ,

is there away to let unregisterd users see what i need Style ID ,

Regards

dartho
09-12-2007, 05:28 AM
it should make no difference whether they are registered or not. May I have your site URL (both domains) to check? Thanks

Rebecca217
09-12-2007, 11:30 AM
Beautiful! Thank you! :)

Rebecca

Kohhal
09-26-2007, 12:40 PM
Great hack, have a question.

I want my domain mysite.mobi to go to my new style on the forum page rather than my homepage ie. mysite.com/forum rather than mysite.com : how can I do this easiest? Can it be in the DNS maybe, a redirect or someplace else?

dartho
09-26-2007, 01:14 PM
In your mysite.mobi style you could modify the template of your home page to redirect to your forum page...

also modifiy the navbar/links so that links to home go to your forum page rather than your home page.

I'm assuming you have a mobile skin/style for teh .mobi and a standard skin/style for your .com ?

steveninstl
09-26-2007, 02:36 PM
question...

If you are using a .mobi domain..Are your users that use the .mobi domain browsing via mobile device?

dartho
09-26-2007, 02:53 PM
With a few small tweaks - this style (https://vborg.vbsupport.ru/showthread.php?t=151186) I wrote can give you a mobi compliant vBulletin site. Use it in conjunction with this hack to have mobi/com :up:

Kohhal
09-28-2007, 05:45 AM
In your mysite.mobi style you could modify the template of your home page to redirect to your forum page...

also modifiy the navbar/links so that links to home go to your forum page rather than your home page.

I'm assuming you have a mobile skin/style for teh .mobi and a standard skin/style for your .com ?

Hi dartho,

I want to use your mobile skin for .mobi(for forums only) and a standard skin for .com basically.

I have a CMS at domain.com with links to my forum, but when a user goes to domain.com I want domain.com/forum to load, not the front page of the CMS/site.

Currently, domain.mobi is not parked anywhere but when I do, I want it to load the mobile forum skin ie. I don't want to have to host the .mobi site if you get me?

dartho
10-09-2007, 11:04 AM
Hi Kohhal

I;m a little confused - mostly by this bit "I have a CMS at domain.com with links to my forum, but when a user goes to domain.com I want domain.com/forum to load, not the front page of the CMS/site"

DO you mean you want "domain.mobi" to load "domain.com/forum" using the mobi skin?

Kohhal
10-09-2007, 11:09 AM
Yep, that's what I did. It's sorted now, in the end I didn't need this hack but used your other mobile detect hack, thanks :)

cgutzmer
10-10-2007, 02:10 AM
I am having a hard time wrapping my head around exactly what this does. Does anyone have a link or three they would be willing to post here so we can see it in action. I am most interested in seeing how different the forums look like their own entities yet still run off the same database.
Thanks!
Chris

dartho
10-10-2007, 02:34 AM
First, you need 2 styles installed on your system and you need either 2 domain names or a domain and sub-domain parked on the same webspace.

This hack will parse the URL visited and assign a style based on this information.

Eg:
You have the default style and a "red" style install.
You have the domain "domain.com" and a sub domain "red.domain.com"
You could then use this hack to force the "red" style on visitors to "red.domain.com"

Clear as mud?

cgutzmer
10-12-2007, 09:47 AM
Hmmm yeah, I get that part. I would like to see one in action though. I am an admin at a fairly large site but not the programmer.... and we have several different hobbies. We would like to be able to set it up so that if someone comes in with one domain they get different color schemes, only see particular parts of the forums, have a specific banner on the top. etc. I think this does that but I am not positive.
Thanks again!
Chris

dartho
10-12-2007, 11:37 AM
Thats almost exactly what it can do.

You can't hide parts of your forum as such, all you can do is assign a different style based on the URL visited.

Do be aware that multiple domain names pointing to your forums will require multiple licenses. The essence of the license agreement for vbulletin is one license, one domain. Check the end of page 1 and the start of page 2 in this thread for a brief discussion on the matter.

cgutzmer
10-13-2007, 12:52 AM
Thanks for the info. We are looking for a way to hide some parts of the forum so I suppose this wont work. We basically want to operate multiple topics independently (at least look independent) of each other but use the same database as the backbone.

SCRIPT3R
11-02-2007, 05:35 PM
I would also like to see this in a live-setting somewhere.

dartho
11-19-2007, 09:49 PM
Here's an example of it in use (this is the single additional domain version - product_ddds_36.xml (https://vborg.vbsupport.ru/attachment.php?attachmentid=66599&d=1183730853))
DDDS is installed and configured to assign a different style to the domain "m.twf.com.au"

http://twf.com.au - is my regular site/style
http://m.twf.com.au - is the same site, but using a different style designed for mobile devices (THIS (https://vborg.vbsupport.ru/showthread.php?t=151186) one)

xavierx
11-24-2007, 01:20 PM
In my case dont work :(
Look de captures
What's wrong? helpme please!

dartho
11-24-2007, 07:29 PM
Is the Mobile style actually styleid 2? (In that screen shot "2" is the display order) Click on the "Go" button next to the style name and then look at the top for the screen for the styleid
72627

xavierx
11-24-2007, 10:19 PM
Thanks.
StyleID problem fixed but..... dont work.
What is the best way for make the redirection between subdomain (in this case m) and main url...

Example: m.url.com ---> www.url.com ?

dartho
11-24-2007, 10:26 PM
OK - I see your problem.

A redirection will not work as this sends the http://m.url.com subdomain to http://www.url.com what you need to do is add the http://m.url.com subdomain and "park" it on top of your http://www.url.com domain

I'm not sure what controlpanel you are using for managing your domain, but the "Documento Principal" in your screen shot should be "/public_html/" with no redirection.

Hope this helps!

xavierx
11-25-2007, 07:28 AM
OK - I see your problem.

A redirection will not work as this sends the http://m.url.com subdomain to http://www.url.com what you need to do is add the http://m.url.com subdomain and "park" it on top of your http://www.url.com domain

I'm not sure what controlpanel you are using for managing your domain, but the "Documento Principal" in your screen shot should be "/public_html/" with no redirection.

Hope this helps!
Thanks!!! The problem was fixed ;)

dartho
11-25-2007, 07:50 AM
[Mr Burns Voice]Excellent![/Mr Burns Voice]

romanticyao
11-25-2007, 08:19 AM
this is very useful

dartho
01-02-2008, 11:28 PM
There have been some questions previously about the Vbulletin license agreement and how this add-on may be use to break it. I've just found a post on Vbulletin.com HERE (http://www.vbulletin.com/forum/showthread.php?t=103150)


1. Your forum is accessable from multiple domains but the content is the same for each link. This is OK and does not require multiple licenses. My site is an example of a multi-domain setup that is allowed:

http://www.mscclan.com/forum/
http://www.macsubculture.com/forum/
http://www.mac-gamer.com/forum/

Notice how each domain points to exactly the same content.
2. Your forum is accessable from multiple domains but each domain shows a different forum style. This is OK and does not require multiple licenses.
3. Your forum is accessable from multiple domains and your forums are configured to show/hide certain forums based on the domain. This is not OK and requires an active vBulletin license for each domain. In this situation the forums appear to have separate content thereby making them separate forums in the eyes of the license agreement. Your forum content needs to be the same for each domain in order to qualify as a single forum.


In essence, it would appear that no matter how you use this add-on, it will not break the license agreement.

HiSoC8Y
01-23-2008, 05:09 PM
do i need to create a subdomain in cpanel, and redirect the subdomain to my original forum url?

wap.myforum.com is the url im trying to use, so i created the subdomain wap.myforum.com

and my original forum is www.myforum.com

??

HiSoC8Y
01-23-2008, 05:42 PM
guys,

how can i do this in cPanel?

dartho
01-23-2008, 07:30 PM
G'day - you don't "redirect" the subdomain, you need to park the domain on the same document root as you're primary domain.

Guest210212002
02-09-2008, 04:15 PM
Thanks for this. As soon as I figure out how to park a domain in plesk, I think I'll be all set. :D

DieselMinded
02-18-2008, 02:47 AM
Does this not work with VBSEO ?

dartho
02-18-2008, 06:15 AM
It may have an issue, more so having a subdomain or alternative domain name using the same webspace may. I think vbSEO sets the base to be your default domain and as such all relative URL's will be relative to the "base" set.

Ideally you would be able to stop this happening in you alternative style (if it's a style forced by this plugin which isn;t usually selectable by users it would make no difference to your SEO as it would never get crawled anyway)

I've not used vbseo, but I'm sure a vbseo plugin which sets teh base directory could be modified so it can work with this add-on.

mariocaz
02-24-2008, 06:38 PM
I am having the same trouble that some users that I read.

In the top of my site appears these errors:

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

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

Also the change of templates is not working for each of my templates, I have 3 templates installed and also 3 domains to my site, the orginal and 2 more redirecting to my site, not sub-domains, "real domains" (example: abc.com, bdc.com and efg.com), I want that appears one different template to each of my domains, but the mod is not working for me and also appears that error when I enabled it.

The url addresses are correct in the Mod Control Panel and also is enabled for each domain, the toher ones that I didn´t put URL are disabled, so this is not causing the error in the top of my site.

Is this Mod working with real domains or only is for subdomains ??

Help me please.

dartho
02-25-2008, 02:32 AM
this mod works for all domain names.

The mod allows for 5 domain names to be assigned unique styles. I am guessing by those errors that you have options enabled, but no domain name filled in?

As for you additional domain names, a redirection will not work as all this does is send the browser from domain1.com to domain2.com. You need to have the additional domains DNS pointing to the same IP as your primary domain. In cPanel you could do this by 'parking' the additional domains on the same document root as your primary domain.

mariocaz
02-25-2008, 03:05 AM
Mmmm ok I will check that thing about my domains with my host provider.

And for the errror I don´t have the other options enabled that don´t domain name filled in.

Mario

dartho
02-25-2008, 07:10 PM
If you continue getting the error, you could PM me an admin account with the ability to edit plugins I could have a look.

mariocaz
02-25-2008, 07:35 PM
Okidoki, let me try the change of my domains and then I hope that errors dissappears.

Undertaker #59
02-27-2008, 05:11 PM
Hello.

Is it possible to use this mod for this? My main site is site1.com. I have two add-on domains, site2.com and site3.com. The VB forums are on site2.com. I would like to use your mod as intended with site3.com. If I set site3.com to a parked domain, it loads site1.com. (as that is the main account). Is there anyway I can set things so that it loads site2.com instead?

Thanks.

dartho
02-27-2008, 08:04 PM
Hello.

Is it possible to use this mod for this? My main site is site1.com. I have two add-on domains, site2.com and site3.com. The VB forums are on site2.com. I would like to use your mod as intended with site3.com. If I set site3.com to a parked domain, it loads site1.com. (as that is the main account). Is there anyway I can set things so that it loads site2.com instead?

Thanks.

You can do this, just make site3.com's document root to be the same as Site2.com

Undertaker #59
02-28-2008, 12:56 PM
Thank you, I got it figured out. Had to put it back as an add-on domain and then specify the home directory to be site2.com/forums.

mariocaz
02-29-2008, 05:23 PM
Ok my friend I parked my additional domains (foro-marino.com and acuariosdearrecife.com) in my Cpanel.

But the mod is not working yet, I rechecked the settings in the CP of this Mod and everything is fine.

And again the error appears in the top of the site if the mod is enabled.

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

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

you can see it if you go to www.foro-marino.com or www.acuariosdearrecife.com (Now the mod is disabled to avoid these errors)

And the other options to put domains are disabled and also don?t have URL sites there.

Any suggestion ?? or maybe I am doing something wrong ?

Help!!

dartho
02-29-2008, 11:32 PM
@Mariocaz - That all sounds correct... would you mind setting me up an admin account so I can have a look. I'll need admin perms to administer settings and plugins.

I have registered on your site with the same username as here, you can send me a PM there with details, although my account needs approval first I think.

mariocaz
03-01-2008, 06:56 PM
Ok let me find you in my forum and send you the PM with all the details, thank you dartho.

You need to check the verification mail after your registration

dartho
03-01-2008, 10:30 PM
Mario,
I can not send you a PM back here as you have the option disabled.


I also need Administrator access for "Can Administer Settings", "Can Administer Styles" and "Can Administer Plugins" before I can look at anything. You can enable these options from "Usergroups", "Administrator Permissions"

Also, my account is still inactive for the forums - I think you need to approve it first. The email I got after registering said

Gracias por registrarte en All-Reefs. Nos da gusto que hayas elegido formar parte de nuestra comunidad acuariofilica y esperamos que disfrutes de ella.

Thanks

mariocaz
03-02-2008, 05:06 AM
Perfect my friend you have all that options enabled and also I can receive PM from you ok.

And your account was automatic activate when you registered.

Thank you again!

dartho
03-02-2008, 09:03 AM
All fixed. The errors you were getting were caused by including "http://" with the domain name.

There is also no need to include "www"

For example, "myforum.com" will match "myforum.com" "www.myforum.com" and "wap.myforum.org" - the leading http:// is just a protocol declaration and not a part pf the domain name.

mariocaz
03-02-2008, 04:49 PM
Yes now is working awesome, thank you a lot for all your nice help!!

Mario

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
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... (http://www.vanister.com/ddds.png)




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
http://www.fluidhosting.com/support/hsphere/user/html/14191.htm


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
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 (http://www.vanister.com/ddds.png). 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 (http://www.vanister.com/ddds.png)


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