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.
i use the zoints seo plugin however and it breaks the use of the new domain in the fourm links.
is there anyway to support zoints seo? if you could point me in the right direction i could help out... ie how/where do you rewrite the links to follow the new domain?
i would think that to support zoints wold be easy, since its just the web root that needs to be addressed...
well, dont have a real fix but managed to get this working with zoints seo... basically you can easily disable zoints for the redirected domains by editing:
The Different Domain, Different Style -> Force URL to Style plugin as follows:
configure vb to use the one style which you want the 'multiple domains' to use, then install this to change the style of the other 'specific domain' to use. You can configure vb to not allow users to change styles - but you still have to have the styles checked as user selectable to that this add-on can use it.
i moved my forum, everything BUT this plugin is working... DDDS seems to ignore the domain name, is there something i might have overlooked ? something i can do to test ?
when you say moved your forum, you mean from one host to another? Did you configure your domains/subdomains in the same manner (ie. pointing to teh same webspace as your primary domain)?
and the secoind part of teh question - I need to know how you are using iut to know how to help.
If you have a new domain name, you'll need to recopnfigure DDDS. Are you using subdomains to trigger different styles? If so, have you created and parked those subdoains correctly (on teh same web space/root as your primary domain)?
and the secoind part of teh question - I need to know how you are using iut to know how to help.
If you have a new domain name, you'll need to recopnfigure DDDS. Are you using subdomains to trigger different styles? If so, have you created and parked those subdoains correctly (on teh same web space/root as your primary domain)?
yes, i did reconfigure DDDS, all i changed was mobi.olddomain.net to mobi.newdomain.net..
i do not use sub-domains for the mobile site. all i had/want DDDS to do is when it detects mobi.mydomain.net use style id 5..