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.
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
I've managed to fix this issue (for me at least) by creating a new plugin to the header_redirect hook.
NOTE: This assumes you're trying to redirect your "normal" forums at URI www.example.com/forum to whatever you have set in the DDDS options. Change the $ddds37_default variable accordingly.
Before you can use this, you must have a domain name or subdomain configured pointing at the same web space as your primary domain. Usually a CNAME record for teh secondary [sub]domain pointing at your primary domain will do the trick - check with your provider if you don;t know how to do this.
Additionally you will need a secondary style installed.
Instructions:
Save XML file in first post to your computer
Log into AdminCP on your site
AdminCP -> In Plugins & Products -> Manage Products click the [Add/Import Product] link at the bottom of the page
Click the Browse button and locate the XML file you saved to your computer.
Click the "Yes" radio button to allow overwrite
Click the Import button to import the product.
Now go to AdminCP->vBulletin Options->vBulletin Options
Locate the "Different Domain, Different Style" section.
Select 'Yes' to enable DDDS
Enter in the [sub]domainname you wish to specify a style for. eg. mobile.vbulletin.com
Select the style you wish to use for this domain name.
Click the "Save"button.
Now go to AdminCP->vBulletin Options-> General Settings and add your [sub]domain name to the Post Referrer Whitelist
Assuming all is configured correctly (style, [sub]domain and this add-on, you should be able to browse to your [sub]domain and get teh configured style.
Before you can use this, you must have a domain name or subdomain configured pointing at the same web space as your primary domain. Usually a CNAME record for teh secondary [sub]domain pointing at your primary domain will do the trick - check with your provider if you don;t know how to do this.
Sorry about my this question . i have a domain name www.myforum.com and i want this for the mobile style : mobile.myforum.com
so in this case what will i do, Kindly please help in this thanks
When I log in with the new subdomain I get this error msg
Invalid Redirect URL
But it in fact does log me in. Any reason why i would get this?
Ok i got it boiled down to my forum url setting in the admincp. If i change that to the new mobile subdomain it logs in fine. Only problem is that is not where my forum is located and changing that breaks alot of codes especially the bburl tag.