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 |
#32
|
|||
|
|||
|
#33
|
|||
|
|||
Quote:
Quote:
what this addon does it makes "pinkdomain.com" use the pink style, as opposed to the default style. what would be the difference between this addon, and setting up "pinkdomain.com" to redirect to "domain.com?styleid=2" |
#34
|
|||
|
|||
@wpeloquin - The two scenarios are similar in many ways however a redirect is a redirect - it will send your visitor to a different page with a different URL. This add-on will leave your visitor at the page they landed on and with the same URL and all page activity will be relative to the landing URL. This Add-On allows you to Force a style on a user and not allow the user to change the style.
|
#35
|
|||
|
|||
Well I give up completely....
1) I've set up my sub-domain correctly so that: mobile.4winmobile.com goes to www.4winmobile.com 2) The Mod is set to use the Mobile Style 0.06 3) I've modified functions_vbseo.php as per: PHP Code:
Any ideas guys as this is driving me nuts! |
#36
|
|||
|
|||
Quote:
http://mobile.slackercentral.com/ Notice that the URL doesn't change to my standard URL. The mod needs that to stay in the address bar to work. Delete the redirection and see if you can figure out how to park it. |
#37
|
|||
|
|||
Looks like I'm stuck then as this is using WHM / cPanel to add a standard subdomain.
The problem with it failing are caused by me having: 1) .htaccess redirect 301 /index.html http://www.4winmobile.com/forums/portal.php in my .htaccess file. 2) index.html reading as per: HTML Code:
<html> <head> <title>Redirecting to the main site...........</title> <META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://www.4winmobile.com/forums/portal.php"> </head> <body> </body> </html> Help!! |
#38
|
|||
|
|||
Don't do it as a subdomain in cPanel. If you have access to WHM you can park the domain there. Can you find that option? It should be under DNS Options -> Park a domain. Tell it to park your mobile URL on top of your forums URL and you should be all set.
|
#39
|
|||
|
|||
@tekguru - making your htaccess entry something like this would do the same thing assuming you have modrewrite on your server:
Code:
RewriteEngine On RewriteBase / RewriteRule ^index\.html$ ./forums/portal.php [R=301,L] |
#40
|
|||
|
|||
Okay this is starting to get there......
Firstly thanks to Dartho if I use the code he kindly provided in .htaccess then one of my alternative true domains (www.tekguru.co.uk) does indeed remap correctly on top of the main site and retains the original URL. 1) First of all I do not own the mobile.4winmobile.com domain, no need to acording to ServInt as this is a valid subdomain of www.4winmobile.com. According to them the correct way of setting it up is as a subdomain. Are they wrong here? If I delete mobile.4winmobile.com as a sub domain I can ...... Try to park mobile.4winmobile.com on www.4winmobile.com. I fI try this I get an error..... Argh I don't believe it - 5 times it blinking errors, I try it now and it parks! Argh!!!! And the Mod has kicked in as well and is working. God knows what the problem was! Cheers for the advise guys Very happy now! |
#41
|
|||
|
|||
Parking is just a way of saying make the [sub]domain point the the same document root as your primary domain.
Glad it is working for you! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|