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 |
#142
|
|||
|
|||
Possibly in conjunction with conditional statements in your styles templates
|
#143
|
|||
|
|||
Ok I don't know if this can be done with this mod however I thought I would ask...
I run two websites lets call it website1.com and website2.com they are on the same dedicated server however are not really "linked" but I want them to share the same forums... I was wondering whether it would be possible to make it where my forums are on website1.com but when people click on forums on website2.com it takes them to a design specifically designed to website2.com Sorry if this is confusing - but mainly they are two websites pointing to the same forums I am hoping to organize a theme/style specifically for website2. Please if you could let me know if this can be done so I can download and install it. |
#144
|
||||
|
||||
does this still work with 3.8?
|
#145
|
|||
|
|||
Sure does.
|
#146
|
||||
|
||||
thank you
|
#147
|
|||
|
|||
do i install this as a style?
sorry for the noob question I just didn't see any install instructions anywhere |
#148
|
||||
|
||||
no, install it in Plugins & Products..
|
#149
|
|||
|
|||
This may have been asked already, so don't kill me if I missed it lol. I'm looking to use this script and your "Mobile Phone / iPhone / PDA Detection and Style Assignment" together. Basically I only want the second script to kick in if the request comes from http://mobile.wvmotorsports.com/forums/ and not if the user on their phone goes to just http://www.wvmotorsports.com/fourms/
Any ideas? Oh and if that first link doesn't work it means the host finally pointed it to the right place and just remove the /fourms/ Thanks! |
#150
|
|||
|
|||
is there a way to make it so that only a mobile device can access the subdomain/not have a regular browser access it? I set up a subdomain so that mobile users can access but I don't want regular pc/mac accessing, mobile only.
|
#151
|
|||
|
|||
No sure fire simple way I can think of. You could possibly account for the majority of PC users by adding some javascript to the header template of the mobile style which detects IE or Firefox and sends t hem to a different page?
HTML Code:
<script type="text/javascript"> if (navigator.userAgent.indexOf("Firefox")!=-1) window.location = "http://mywebsite.tld/forum/index.php?styleid=XX/" if (navigator.userAgent.indexOf("MSIE")!=-1) window.location = "http://mywebsite.tld/forum/index.php?styleid=XX/" </script> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|