![]() |
DDDS - Different Domain Different Style
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 |
I was going to reserve this first post as it seems to be what everyone else does, but I didn't see the point...
|
Well this is perfect for my site, but don't you have a PM or IM cause I want t ask you some details...
|
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?
|
Very nice!!
|
Thanks. This is perfect for my site
|
@iogames - you can send me a PM via https://vborg.vbsupport.ru/private.p...newpm&u=110638
@Luky - yes, it will work like that |
Just uploaded an additional new version which has support for 5 domains
|
/me clicks install
|
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. |
* installs
|
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. |
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? |
Quote:
|
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. |
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. |
AWESOME!!
soooo gunna need this. :) Quote:
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? |
Thanks for the feedback Floris, but I think you may be reading too much into the license agreement..
Code:
vBulletin license grants you the right to run one 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. |
Confirmed with vBulletin.com - it is OK to point sub-domains at your main forum also
|
Quote:
|
Getting better? ;)
|
can it may Different language ??
|
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. |
perfect, thanks dartho!
*clicks install* |
Warning: preg_match() [function.preg-match]: Unknown modifier '/' in /global.php(237) : eval()'d code on line 9 :|
|
I think that will happen with the mod enabled, but no URL specified...
|
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 |
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 |
can u do something like: different domains, diffrent logo ?
pleasee:) |
Yes - just create a new style (as a child of your existing one) and give it a different logo..
|
Quote:
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 |
@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. |
@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 |
still improving! ;)
|
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 |
it should make no difference whether they are registered or not. May I have your site URL (both domains) to check? Thanks
|
Beautiful! Thank you! :)
Rebecca |
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? |
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 ? |
question...
If you are using a .mobi domain..Are your users that use the .mobi domain browsing via mobile device? |
All times are GMT. The time now is 04:27 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|