The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Different Domain, Different Style Details »» | |||||||||||||||||||||||||
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
|
Comments |
#222
|
|||
|
|||
have you gone through the post about 3 above (Post 217) ?
|
#223
|
|||
|
|||
Yes.
I have "mobile.example.com" and "example.com" In vbulletin options, my forum url is "http://example.com" If i change it to "http://mobile.example.com" then it works. And i login fine. But that is not my true forum's Url so i can't keep it set to the mobile site. Update just so you know. I have vbadvanced installed and set up so. http://example.com is my home page / portal and http://example.com/forum are the actual forums. I have my sub domain set up so it points directly to the /forum directory that was the mobile subdomain bypasses the vbadvanced page altogether I may be 100% screwed https://www.vbulletin.com/forum/show...ty-patch/page3 |
#224
|
|||
|
|||
I think that's your problem. Your webroot for any subdomain has to be same as for primary domain. Ideally you'd have a CNAME DNS record which points mobile.example.com at example.com In cPanel parking a domain on teh same root as your primary domain is how to do it.
|
#225
|
|||
|
|||
Quote:
Please post here your plugin php code |
#226
|
|||
|
|||
Quote:
Hi to all, After many work I modify the addon with the sung options and It works for me on 4.1.7 very well.. m.example.net -> mobile style mobile.example.net -> mobile style example.net -> normal style But the problem is when the forum emails some alert to the users from a thread they always use mobile.example.net/forum/etc instead of example.net/forum/etc ! how can I solve this ? any ideas ? Best regards |
#227
|
|||
|
|||
Hi to all,
Vote here in JIRA: http://tracker.vbulletin.com/browse/VBIV-14142 https://www.vbulletin.com/forum/show...in-sub-domain- (example-http-m-vbulletin-com) For an official ability to set the mobile style in sub-domain. Best Regards |
#228
|
|||
|
|||
bump
|
#229
|
|||
|
|||
omgoodness! I have been working on this for weeks trying to find an answer as to how I could achieve this!!! I'm sooooo happy! Thank you for offering this! I'm going to work on installing it now. If all goes well I will be donating!!! Thank you so much this is awesome!
|
#230
|
|||
|
|||
I have setup style for pc: domain.com, and style for mobi: m.domain.com
When I use phone device go to domain.com, it not redirect to m.domain.com, but it show style mobi. How to redirect m.domain.com when go by phone? and user can choose link domain.com to use pc style? Im using mod Detect Mobile Device and Different Domain, Different Style Thanks |
#231
|
|||
|
|||
mobile detect sets style based on device used to visit page
different domain assigns style based on URL visited (domain name) sorry - they do not know about each other or work together My suggestion would be disable detection and inform users of mobile site address. What version of VB do you use? This https://vborg.vbsupport.ru/showthread.php?t=270978 might work if your version of VB has notices |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|