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 |
#12
|
|||
|
|||
empty hack name in forum option
|
#13
|
|||
|
|||
I had that problem MaxiMal -- hmm I'll take a look at the code.
Regards Jason |
#14
|
|||
|
|||
Just a slight question - Does this do anything different from just adding on a domain and using it as a redirect domain pointing to the styleid?
|
#15
|
|||
|
|||
This doesn't add domains - you'll need to register any additional domains or set up sub-domains and configure them to point to the same webspace as your primary domain. Redirects will not work with this add-on as they simply redirect one url to your primary domain.
Once you have your domain names setup and visiting these domain names takes you to the same content as your primary domain you can then install and configure this add-on. What it then does is checks the URL that was used to get to your site, and if this matches one configured with this add-on it will override the default style with the configured style. For example, if your sites primary domain is "domain.com" and you use the default vBulletin style, all visitors to your domain will be presented with this default style. If you then register say "pinkdomain.com" and configure it to use the same webspace as your primary domain, all visitors to "pinkdomain.com" will also be presented with the same default style. If you were to install a new style - lets say with a pink colour scheme called "Pink" and installed this addon, you could configure it such that all visitors to "pinkdomain.com" will be presented with the "Pink" style whilst visitors to "domain.com" will continue to be presented with the default style. The same could be done if you configured a subdomain of "pink.domain.com" The user/visitor can not override the style with this addon, even if you allow them to change styles, this will force the visitor to what ever style you configure. Hope this helps.. |
#16
|
|||
|
|||
*installed*
Hey I think this may interfere with vBseo in some way. mobile.htireland.com goes to the mobile theme no problem, but all the links from then all go back to www.htireland.com. Is there any other reports of this? |
#17
|
|||
|
|||
VBSEO sets the HTML BASE and essentially messes up this addon as all relative URLs will point to the BASE set by VBSEO as opposed to a relative URL.
I don;t use VBSEO, but you could probably find teh plugin that sets the HTML BASE and add a conditional so that it does not get changed on you mobile. Alternatively, A simple plugin could be written taht re-sets the BASE if the mobile style is in use. ANyone out there use VBSEO who may also be able to work out a good place to do this? |
#18
|
|||
|
|||
I use vBSEO and haven't encountered any problems, yet.
|
#19
|
|||
|
|||
i added this..bt not working...help me pls
|
#20
|
|||
|
|||
I have my domain howieforums.com and I set up a mobile domain mobile.howieforums.com
When I go to mobile.howieforums.com it doesn't change the style. Any ideas? |
#21
|
|||
|
|||
Just checked you site - looks like you sorted it out...
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|