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.
I had the same problem and saw this in the previous version:
Go to 1) vBulletin Options
2) Different domain, different style
3) Domain Style?
Take out the www and the "http"
That fixed the problem for me.
Love this add-on...great stuff!
thanks m8 but my problem didn't solve !
when i use forum.shahrsakhtafzar.com it work's great but when i use shahrsakhtafzar.com/forum it gets me that error ! i've this problem for Tabbed Forum ! i really don't know what's problem for this address . do you know why ?
when i use forum.shahrsakhtafzar.com it work's great but when i use shahrsakhtafzar.com/forum it gets me that error ! i've this problem for Tabbed Forum ! i really don't know what's problem for this address . do you know why ?
shahrsakhtafzar.com/forum is not a domain - it has a path on it + slash which would be messing with it. DOmain names only have numbers, letters and dots...
shahrsakhtafzar.com/forum is not a domain - it has a path on it + slash which would be messing with it. DOmain names only have numbers, letters and dots...
so there is no way to use this hack on this domain ?
so there is no way to use this hack on this domain ?
shahrsakhtafzar.com will get your default style without this addon, you can then assign a different style to forum.shahrsakhtafzar.com using this addon. If you wished to assign a 3rd style, you'd need a 3rd unique hostname
I have come across a very annoying but presumably easy to fix issue;
Here on the forum index, the thread page selection works fine eg Page (123 ... ) points to mobile.adultforum.co.nz
But here within the thread, the page number links point to www.adultforum.co.nz
So we are loosing the mobile template upon page selection within threads ... can anyone point me to a fix please?
EDIT: More link issues, heres a quote from one of my members;
Quote:
Oops, when you reply to a thread by clicking the reply link it goes back to the www.adultforum.co.nz version of the site.
Also, you are looking at a list of topics (e.g. from the "new posts" link) the "lastest messages" type button is missing so you can't go to the post just after the one you last read.
Is there a way to make it so that the mobile style can ONLY be accessed by the mobile domain? I don't want users being able to select it, unless they are coming from the mobile domain.
You'd have to not allow the user to change styles in vBulletin Options - but still have mobile style selected as user selectable. Then use this addon. That's it.
If you do have multiple styles which you allow your users to select from, you could 'hide' your mobile style form teh Style Chooser using this addon which does just that. However, if teh style ID was known/guessed, users could still use it