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 |
#152
|
|||
|
|||
Hi Guys
Need a little clarification and assistance here please as I am still learning, but I have setup a sub domain on my original forum domain, so its mobile.domain.com and I have installed the DDDS mod here and set that up correctly pointing at the new domain/skin. But for the life of me I just don't know how when a user would go to mobile.domain.com it would take them to the forum. Is there some other mod I need to install or other files in the subdomain? Sorry if I am being thick, right now the subdomain folder is empty and it goes nowhere! Please help Thanks Stuart |
#153
|
|||
|
|||
Well, technically I think its a DNS CNAME that you want, not a subdomain.
|
#154
|
|||
|
|||
Thank you so much for the message but I am still having troubles, I checked DNS zones and by adding a subdomain it created the C NAME but I still can't work out how to get it to direct itself back to my forum, using htacess redirects don't seem to work!
Any ideas please? Thanks again Stuart |
#155
|
|||
|
|||
Do you use cPanel or Plesk to add subdomains?
|
#156
|
|||
|
|||
Hi dartho,
This mod from what I understand only support different styles on different domains. I have some questions and I hope you can help:
Hopefully can help? Cheers. |
#157
|
|||
|
|||
Quote:
I brought this quote message of yours back because I want to ask if you could do a separate forums different domains? I understand that this would require additional licenses and fine with that. Just looking for a mod/script that is able to do this so that we could have all forums and users under a single database. |
#158
|
|||
|
|||
you could do this by additional conditionals in your forumhome/forumdisplay templates (could be a LOT depending on the number of forums you have - if a lot it May even be worth doing file/db edits)
If it's something you want anytime soon, you'd be best off paying someone to do the work. It's not something I'm personally looking for at the moment, although in the future I may have a need |
#159
|
||||
|
||||
do you think it would be possible to apply this mod only to unregistered users?
I'd like my members to move seamlessly across domains, but guest to have their style changed. It seems that your plugin hook (style fetch) happens before there is a variable to discriminate between members and guests. |
#160
|
|||
|
|||
I guess it would be possible - but it's not something I'd spend a lot of time on, if I'm digging throughthis code again, I'll have a quick look
|
#161
|
||||
|
||||
I figured it out... while is true that the object/variable $this->registry->userinfo is empty or nonexistant at the style_fetch hook, $vbulletin->userinfo is not. So if you condition the plugin to:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|