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.
Works if I go direct to /forum but when I click on a thread I get a wierd url
/forum//forumdisplay.php/showthread.php. I can solve this by turning the SEO settings to standard.
If I go to root / I get back to the default style.
try adding the <base href="{vb:raw vboptions.bburl}/" /> line back in, but manually edit it to be hard coded to refelect what the [sub]domain actually is. If this makes thikngs start working, I may be able to modify teh plugin to do this.
Before I start editing stuff. wha exactly doesn't make this work on vb4 for some of you?
I just installed it on vb4 and everything working just fine on it.
I think it depends if you have your forums in root or not and also if you have CMS installed. The issue I had was with the base tag messing up my links...
I only tried it on one of my sites and the forum is in the root. I made my own CMS and not using the vb4 default one since I don't like it. All the links work just fine. I so far have no seen any bugs or problems yet.
try adding the <base href="{vb:raw vboptions.bburl}/" /> line back in, but manually edit it to be hard coded to refelect what the [sub]domain actually is. If this makes thikngs start working, I may be able to modify teh plugin to do this.
I modified the plugin a little more to get this to (mostly) work in vB4. Added the following inside the if block when the domain matches.
So far the only issue I have run into is with forums that are links, they still seem to be using the "default" forum URL instead of the mobile one, i.e. they try to go to www.example.com instead of m.example.com despite being relative links