![]() |
|
Mod Options |
![]() |
|||||||||||
Different Domain, Different Style
![]() Developer Last Online: Aug 2023 ![]() ![]() ![]() This modification is in the archives.
This is a simple add-on which will force users to a specific style based on the url the user visited.
I wrote this with the idea of being able to create a subdomain of mobile.domainname.com and have visitirs to that URL forced to a mobile style whilst visitors to my normal site (domainname.com or www.domainname.com) would be rpesented with my regular style. Alternatively 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. 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 Information 1.0.0 - Initial release ported from 3.6 version 1.0.1 - Fixed missing Setting Group Name product-ddds37.xml supports a single additional domain product-ddds37_5-domain-version.xml supports one to five additional domains To upgrade, simply import and allow overwrite. Download Now Only licensed members can download files, Click Here for more information. Show Your Support
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
Forum Display Enhancements DDDS - Different Domain Different Style | dartho | vBulletin 3.6 Add-ons | 116 | 25 Nov 2009 08:20 |
Comments |
#2
|
|||
|
|||
Hi Dartho,
So, I can choose any domain for the mobile style? If this is the case, is the force style hack needed? Regards Jason ![]() No members have liked this post.
|
#3
|
|||
|
|||
You can use either add-on or both side by side.
One example of using side by side would be if you wanted to not auto-detect and force iPhones to a mobile style, but still wanted to give them the option of browsing. You could add iPhones to the exclusion list in the auto-detect mobile device hack and configure this addon so that iPhone users could still browse via mobile.domainname.com if they found the default style too slow or bandwidth hungry. No members have liked this post.
|
#4
|
|||
|
|||
Ah, I see.
Dartho, I've just installed this product, but in the vBulletin options there is no title. Not a big problem, as I can still set the settings. Regards Jason ![]() No members have liked this post.
|
#5
|
|||
|
|||
Could you do a screen dump and show me - the code looks like it should be OK....
Ed: A 5 domain version has just been added No members have liked this post.
Last edited by dartho; 28 Mar 2008 at 04:53. |
#6
|
||||
|
||||
Cool! This is perfect for some things I'd like to do with my forum. Thanks!
No members have liked this post.
|
#7
|
|||
|
|||
I also have an add-on that will assign a different vBAdvanced page based on the domain which I'll post up ... "Different Domain, Different vBAdvanced Page" should do for a name
![]() No members have liked this post.
|
#8
|
|||
|
|||
Hi Dartho,
I want to use: www.tst2go.org... it doesn't seem to be owned by anyone -- would I have to purchase this -- or could I use it as an add-on domain? Regards Jason ![]() No members have liked this post.
|
#9
|
|||
|
|||
You would need to purchase the domain name, then depending on your hosting, you would need to park it on the same same webspace as your main domain
No members have liked this post.
|
#10
|
|||
|
|||
I see -- thanks!
Regards Jason ![]() No members have liked this post.
|
#11
|
|||
|
|||
empty hack name in forum option
No members have liked this post.
|
#12
|
|||
|
|||
I had that problem MaxiMal -- hmm I'll take a look at the code.
Regards Jason ![]() No members have liked this post.
|
#13
|
|||
|
|||
Just a slight question - Does this do anything different from just adding on a domain and using it as a redirect domain pointing to the styleid?
No members have liked this post.
|
#14
|
|||
|
|||
This doesn't add domains - you'll need to register any additional domains or set up sub-domains and configure them to point to the same webspace as your primary domain. Redirects will not work with this add-on as they simply redirect one url to your primary domain.
Once you have your domain names setup and visiting these domain names takes you to the same content as your primary domain you can then install and configure this add-on. What it then does is checks the URL that was used to get to your site, and if this matches one configured with this add-on it will override the default style with the configured style. For example, if your sites primary domain is "domain.com" and you use the default vBulletin style, all visitors to your domain will be presented with this default style. If you then register say "pinkdomain.com" and configure it to use the same webspace as your primary domain, all visitors to "pinkdomain.com" will also be presented with the same default style. If you were to install a new style - lets say with a pink colour scheme called "Pink" and installed this addon, you could configure it such that all visitors to "pinkdomain.com" will be presented with the "Pink" style whilst visitors to "domain.com" will continue to be presented with the default style. The same could be done if you configured a subdomain of "pink.domain.com" The user/visitor can not override the style with this addon, even if you allow them to change styles, this will force the visitor to what ever style you configure. Hope this helps.. No members have liked this post.
|
#15
|
||||
|
||||
*installed*
Hey I think this may interfere with vBseo in some way. mobile.htireland.com goes to the mobile theme no problem, but all the links from then all go back to www.htireland.com. Is there any other reports of this? No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 06:46.