Version: 1.0.1, by dartho
Developer Last Online: Oct 2023
Category: Forum Display Enhancements -
Version: 3.7.0
Rating:
Released: 03-27-2008
Last Update: 05-18-2008
Installs: 189
Uses Plugins
Re-useable Code Translations
No support by the author.
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.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
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..
Does that mean that if I have the mobile device detection mod installed, AND THEN I go to "mod.lawnsite.com" for example (for my moderator client), it will still override the detection and show the PC layout?
I just need moderators to see the original style (and hopefully switch back and forth between them) from their mobile phones.
@BCE - Not necessarily, the mobile detectiom add-on may still overide by default, however, you could change the plugin execution order of the this add-on to execute after the mobile detect plugin and thus override it.
@rudeboy - No, you would use your existing domain (domain.com), and create a sub-domain of m.domain.com
still not working.... so i can go to the mobile site on my laptop (by using mobi.domain.net...) but when i try it on my phone/BlackBerry, it does not work.