View Full Version : Forum Display Enhancements - Different Domain, Different Style
dartho
03-27-2008, 10:00 PM
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.
Jase2
03-28-2008, 01:31 AM
Hi Dartho,
So, I can choose any domain for the mobile style? If this is the case, is the force style hack needed?
Regards Jason :)
dartho
03-28-2008, 01:43 AM
You can use either add-on or both side by side.
One example of using side by side would be if you wanted to not auto-detect and force iPhones to a mobile style, but still wanted to give them the option of browsing. You could add iPhones to the exclusion list in the auto-detect mobile device hack and configure this addon so that iPhone users could still browse via mobile.domainname.com if they found the default style too slow or bandwidth hungry.
Jase2
03-28-2008, 01:49 AM
Ah, I see.
Dartho, I've just installed this product, but in the vBulletin options there is no title. Not a big problem, as I can still set the settings.
Regards Jason :)
dartho
03-28-2008, 03:42 AM
Could you do a screen dump and show me - the code looks like it should be OK....
Ed: A 5 domain version has just been added
ChurchMedia
03-28-2008, 04:26 AM
Cool! This is perfect for some things I'd like to do with my forum. Thanks!
dartho
03-28-2008, 05:13 AM
I also have an add-on that will assign a different vBAdvanced page based on the domain which I'll post up ... "Different Domain, Different vBAdvanced Page" should do for a name :)
Jase2
03-28-2008, 02:19 PM
Hi Dartho,
I want to use: www.tst2go.org... it doesn't seem to be owned by anyone -- would I have to purchase this -- or could I use it as an add-on domain?
Regards Jason :)
dartho
03-28-2008, 08:19 PM
You would need to purchase the domain name, then depending on your hosting, you would need to park it on the same same webspace as your main domain
Jase2
03-28-2008, 11:35 PM
I see -- thanks!
Regards Jason :)
MaxiMal
03-29-2008, 02:53 PM
empty hack name in forum option
Jase2
03-29-2008, 04:30 PM
I had that problem MaxiMal -- hmm I'll take a look at the code.
Regards Jason :)
lighti
03-31-2008, 11:32 PM
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?
dartho
03-31-2008, 11:49 PM
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..
Sparky_s
04-26-2008, 10:31 PM
*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?
dartho
04-30-2008, 06:37 AM
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?
Jase2
04-30-2008, 02:02 PM
I use vBSEO and haven't encountered any problems, yet.
Mr:Ishi
05-01-2008, 04:33 AM
i added this..bt not working...help me pls
joopster
05-12-2008, 12:57 PM
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?
dartho
05-12-2008, 09:11 PM
Just checked you site - looks like you sorted it out...
Magnumutz
05-13-2008, 04:59 PM
Can this be modified to allow you to have different styles on different subforums?
joopster
05-15-2008, 02:07 AM
Just checked you site - looks like you sorted it out...
Yes I did, thank you.
dartho
05-15-2008, 02:34 AM
Can this be modified to allow you to have different styles on different subforums?
You can already assign a style to a [sub]forum with vanilla vBulletin ...
swissbob
05-15-2008, 10:52 AM
*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?
I had the same problem, and solved it here:
http://www.vbseo.com/f2/base-href-23196
Amiga Harrison
05-16-2008, 03:02 PM
Ah, I see.
Dartho, I've just installed this product, but in the vBulletin options there is no title. Not a big problem, as I can still set the settings.
Regards Jason :)
I've installed this mod and it is working perfectly, allowing me to go to a mobile skin via a sub domain.
However I also have the same issue as mentioned by Jase2. From the admin panel, when I go to vBulletin Options and scroll through the Setting Group list, an entry for DDDS is not shown. However there is a completely blank entry in the list and when i select this it goes to the DDDS settings page. Therefore it looks like it is adding the entry correctly into the Setting Group list but not adding a title.
dartho
05-19-2008, 06:01 AM
I finally found and fixed the name not showing up in vBulletin options - simply reinstall and overwrite existing...
Amiga Harrison
05-20-2008, 08:32 AM
Great. Thanks. That fixed it.
msu2k
05-21-2008, 06:18 PM
Nevermind....found my answer about vBSEO above.
spankaveli
05-22-2008, 10:34 AM
I must be the only one this isn't working for :(
I setup http://m.bayoushooter.com/ to forward to http://www.bayoushooter.com/forums and the redirect works so I installed the hack, turned it on, put "m.bayoushooter.com" in the domain name field and chose my mobile skin but when you go to m.bayoushooter.com it redirects but uses the default skin.
dartho
05-22-2008, 10:51 AM
You shouldn't be using redirects as it does as the name implies, redirects you to the destination domain and as such this add-on won;t kick in.
You need to point or park your m.bayoushooter.com subdomain on the same webspace as your standard domain.
Slacker
05-23-2008, 03:52 AM
Worked great for me, dartho. Awesome work!
http://mobile.slackercentral.com
wpeloquin
05-26-2008, 02:18 AM
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?
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..
dartho, i think what he meant was this:
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"
dartho
05-26-2008, 02:50 AM
@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.
tekguru
05-30-2008, 04:26 PM
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:
if(
VBSEO_BASEDEPTH &&
defined('VBSEO_PREPROCESSED')
&& ($_SERVER['HTTP_HOST'] != 'mobile.4winmobile.com')
)
Yet still no redirection.
Any ideas guys as this is driving me nuts!
Slacker
05-30-2008, 05:08 PM
Well I give up completely....
1) I've set up my sub-domain correctly so that:
mobile.4winmobile.com goes to www.4winmobile.com
Any ideas guys as this is driving me nuts!
Actually you don't have that part right yet. You need to park that other domain, not redirect it. Like this:
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.
tekguru
05-30-2008, 06:52 PM
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>
<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>
Bu if I don't have these in there then there is no way to redirect folks from www.4winmobile.com to the portal at: http://www.4winmobile.com/forums/portal.php - Unless of course you can say otherwise?
Help!!
Slacker
05-30-2008, 07:30 PM
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.
dartho
05-30-2008, 08:32 PM
@tekguru - making your htaccess entry something like this would do the same thing assuming you have modrewrite on your server:
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ ./forums/portal.php [R=301,L]
tekguru
05-30-2008, 09:23 PM
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!
dartho
05-30-2008, 09:35 PM
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!
tekguru
05-30-2008, 09:35 PM
The only problem is now that if one tries to log into mobile.4winmobile.com you get the logging in message then returned to the portal (or forum index) but not shown as logged in - a cookie issue I presume....
Any solution to that issue guys?
dartho
05-30-2008, 10:03 PM
it looks like you may have other rewrite rules in your htaccess file or the base is being set to www.4winmobile.com as all links seem to be relative to this ...
tekguru
05-31-2008, 06:04 AM
Okay thinking that rewrite rules may be the issue, my .htaccess was as per:
But the problem is still there.
I've checked through vbSEO to see if any rewrites are set in there, and none have been set.
Plus with vbSEO as per the earlier post I've modified the functions_vbseo.php file as per here (http://www.vbseo.com/f2/base-href-23196/), to read:
instread of:
I did try changing the line:
as mentioned in the thread but that made the entire forum vanish!
So unless there is something I else I need to take out of the .htaccess file it looks like I can't find the cause of the rewrite issue.
dartho
05-31-2008, 08:49 AM
Nothing in the htaccess looks - bad - I suggest editing and removing that stuff now.
At a guess there must be a plugin changing your local links to be absolute...
tekguru
05-31-2008, 08:57 AM
Yep edited :)
Well again looked through and there is nothing I can see in any of the plugins. I still think it is vbSEO somehow, but it looks like a dead project for me unfortunately.
Or I'm wondering if a cookie reset will help using the tools as I have this sort of issue each time I recreate my test site?
Would a list of the plugins / products help at all?
tekguru
05-31-2008, 10:54 AM
Okay problem 99% solved. The fix was in two parts:
1) in vbSEO config turn off 'Include Domain Name in URLs?' as an option.
2) In the vB config set the cookie domain to .4winmobile.com (it was blank previously)
Now the only remaining issue which I'm not sure is fixable is that vBa CMPS saves within it the path to the forums so if one is at the portal and clicks on home you are sent to the default which is the www. domain instead of the mobile. domain.
Any ideas on fixing that one guys?
tekguru
05-31-2008, 11:20 AM
And just fond the 'Different Domain, Different vBAdvanced Page' (https://vborg.vbsupport.ru/showthread.php?t=180651&highlight=Different+Domain%2C+vBAdvanced+Page)Mod so on the way :)
OsideRida06
07-05-2008, 02:03 AM
I love this mod. But does it not allow people to change skins after this is installed? It seems people cannot change to a different skin. So they must use the skin set for the domain they came in through. Is this the case?
Is there anyway to make it where they come in through that domain and get the set skin? But then they can change it?
dartho
07-05-2008, 05:17 AM
It seems people cannot change to a different skin. So they must use the skin set for the domain they came in through. Is this the case?
That is the case for this mod. Would need to re-write or extend it and use cookies to make it an initial setting which can be changed.... I've wanted to do this with another mod, so if/when I work that out it should be easy to apply to this one.
Karri
07-07-2008, 05:10 PM
That is the case for this mod. Would need to re-write or extend it and use cookies to make it an initial setting which can be changed.... I've wanted to do this with another mod, so if/when I work that out it should be easy to apply to this one.
I look forward to it when you do. My users would love to be able to set different skins for different urls. Also I would like to request if possible that a setting be to only allow certain skins to be chosen per url.
Zacarias
07-17-2008, 09:50 PM
Can I suggest putting this:
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
In headerinclude for a different domain that links to the same content. It will tell spiders not to index it. You won't get a penalty for duplicate content.
dartho
07-18-2008, 01:33 AM
Good idea - you'd need to put that in the headinclude of your"different style", I don't think it is something I'd get this add-on to do, so it will be up to individuals to make these edits..
samiro
07-21-2008, 05:40 AM
it works only with subdomain? or with domain?
dartho
07-21-2008, 06:10 AM
either
Amenadiel
07-24-2008, 02:59 AM
wouldn't I need to have a different VB license for each domain I run the hack with, and same for VBSEO?
dartho
07-24-2008, 03:20 AM
No - have a read here: https://vborg.vbsupport.ru/showthread.php?p=1286197#post1286197
and here: https://vborg.vbsupport.ru/showthread.php?p=1414222#post1414222
for the official word from vBulletin.com and pertinent parts of the license agreement.
Not sure about VBSEO though...
Amenadiel
07-24-2008, 08:31 PM
I understand, but I was thinking in hiding some subforums in different skins so that
domain1 sees skin1 and subforums 1,2 and 3
domain2 sees skin2 and subforums 4, 5 and 6
That would be pretty much like pretending to be different sites, which is what the license stands for.
dartho
07-24-2008, 09:51 PM
Yes, I believe you may require additional licenses if you were to do that with different domain names. However, from reading the license agreement if you were to only have different sub-domains you may be within the bounds of the license agreement, although possibly outside the intent or spirit of it.
Assim
07-29-2008, 08:27 AM
I don't know how I can thank you for this Dartho, you made my days brighter. :)
Merjawy
08-13-2008, 08:19 PM
This is beautifull.. I like it and I have a need for it too with 4 domains pointing at the same location...
Thanks
islandcommuter
08-19-2008, 08:31 PM
This is a really valuable mod. Thanks for posting it!
In my tests, it only seems to work for users who are logged in. Could it be modified to work for users NOT logged in? Thanks!
Phil
dartho
08-19-2008, 08:54 PM
This sounds like the styles are not user selectable, or that you don't allow users to change styles. As an admin, you can use any installed style whether userselectable or not, but normal users can't.
islandcommuter
08-20-2008, 04:27 AM
Ah, thank you! I had the skins I needed excluded from user selection in the style settings! :0
Tulsa
10-29-2008, 08:06 AM
I have downloaded and installed this Modification
Great Idea By the way..
I have parked the domain
mobile.mydomain.com to mydomain.com via WHM
but there is one thing i cant seem to figure out.
My forum is located at
mydomain.com/forums
with the parked mobile domain it goes to the mydomain.com
how do i get the mobile.mydomain.com to forward properly to the mydomain.com/forums/
thanks
dartho
10-29-2008, 11:13 AM
not trying to be clever, but the same way you get mydomain.com to forward to mydomain.com/forums I guess?
Tulsa
10-29-2008, 11:35 AM
ok mydomain.com has a page associated to it. created by vbadvanced cmps
and they are unable to get to the mobile skin forums from there.
Im sure that im doing something wrong the only thing is finding out what :D
dartho
10-29-2008, 09:17 PM
check here: https://vborg.vbsupport.ru/showthread.php?p=1535871#post1535871 and https://vborg.vbsupport.ru/showthread.php?p=1655608#post1655608 here for a couple ways to work with vbadvanced and mobile styles
shridevimoogi
10-31-2008, 09:04 AM
hi dartho
Could you please tell me how to configure different styles for different domains using this add on
your guidance will be of great help to me
Thanks
Shridevi
dartho
10-31-2008, 11:21 AM
Point your additional domains to the same websapce as your primary one, install multiple styles, install this add-on and configure which domain uses which style
shridevimoogi
11-03-2008, 02:07 AM
Hi,
Could any one please tell me how to use this mod,
I have installed it in my vb instance
where and how to configure it to have different styles for diff domain
I am a newbie,your detailed steps would of great help
Thanks
dartho
11-03-2008, 07:48 AM
You configure the options for this addon in your AdminCP. Then expand "vBulletin Options" on teh left, the click the "vBulletin Options" sub-menu on teh left, then on teh right pane double click on "Different Domain, Different Style" and set the options accordingly
shridevimoogi
11-04-2008, 03:32 AM
I apologize to bother you
I am not exactly setting how to configure
I am attaching a screen shot
after entering vbulletin options I am not finding different domain different styles
dartho
11-04-2008, 04:34 AM
It will likely be right at the end of the list....
fredang85
11-06-2008, 03:13 AM
How do you get different styles to show different forums?
e.g. Site 1.com has Category A and B
Site 2.com has Category C and D
Thanks in advanced.
dartho
11-06-2008, 08:02 AM
I'm not the license police, but to do that you would require multiple licenses of vbulletin.
This addon can not do that, but it could probably be done with template conditionals
fredang85
11-06-2008, 10:13 AM
will it be under showforum?
fredang85
11-07-2008, 02:59 PM
in my sandbox.motorolafans.com, it shows everything propey, even in forum main, but if u go to any forum or thread, it can't detect css, or rather, it can, but doesn't show.
what makes?
dartho
11-07-2008, 08:33 PM
Looking at the source to your site, the CSS path is relative. With the url re-writes the css fiule does not exist at the relative path when in any forum other than the forumhome
An immediate test/work around would be to edit your vbulletin options and select "No" to "Store CSS Stylesheets as Files?"
fredang85
11-08-2008, 01:54 AM
Great! That fixed it! Thanks alot!
fredang85
11-19-2008, 03:21 PM
are there anyone with login problems?
I let 2 domains point to the same place, but one's logged in while the other's not. is there a way out here?
dartho
11-19-2008, 08:16 PM
There shouldn't be an issue. You'll need to add your sub domain to the Post Referrer Whitelist in vBulletin Options
sectomy
11-25-2008, 06:08 PM
hi,
just a dumb question, ive installed this mod and activated it on one domain, the vbA page looks good, the links in the vbA and the navigation also point to the nord.xxx.com
but if i click on it, it shows me the style of my original forum.
what did i do wrong ? :(
vba with 3.7.3 vb
DieselMinded
11-28-2008, 11:27 PM
With this modification your other Style will get Indexed in Search engine and compete with your real style and kill off each other with duplicate content .
I brought this up before if you dont want search engine results then it dont matter
grecostimpy
12-01-2008, 10:47 PM
With this modification your other Style will get Indexed in Search engine and compete with your real style and kill off each other with duplicate content .
I brought this up before if you dont want search engine results then it dont matter
See post #51 for a solution to this:
https://vborg.vbsupport.ru/showpost.php?p=1578034&postcount=51
DieselMinded
12-02-2008, 07:26 AM
Why not just redirect your Domains to your Style ids Server Side
www.dieselbombers.com
www.dieselbombers.mobi
dartho
12-02-2008, 07:58 AM
htaccess redirects work well for doing what this plugin does - however it doesn;t seem to be working for your site? the .mobi just redirects to the .com?styleid=6 which doesn't look like a particularly firendly mobile style
DieselMinded
12-04-2008, 09:27 AM
Days of The Slow , Choppy Cell Phone Internet are GONE !
Black berrys and Iphone are where its at , Look at my Mobile Site on one of them its Perfection ! , Even coding the mobile site to recognize Iphones and offer our Icon for there Desk Tops
nymyth
12-14-2008, 10:04 PM
i cant get this to work at all...no matter what I do, the links on m.loungeboard.com always point to my main site.....i have vbseo i added the line of code that was mentioned earlier but still no luck....
Dartho, thanks for this mod - it is exactly what I am looking for. I believe I am very close to having it function, however still hitting a snag. My usage case is very similar to tekguru: I have vbseo installed on my forum and I manage my domain through cPanel. I'm somewhat of a newbie at site administration.
I installed the skin and mod at www.ontrackdriver.com. You can see that the Mobile skin is user selectable.
I have installed the "Different Domain, Different Style" product and configured it to use the Mobile skin.
I did the other alterations to account for vbseo: edited functions_vbseo.php, changed the absolute vs. relative settings, plus enabled the cookie for .ontrackdriver.com, as per tekguru's suggestions.
The problem is, when I add m.ontrackdriver.com as a sub-domain in cPanel, a visit to that URL simply re-directs to the default skin.
I believe the issue may be my method for creating the sub-domain m.ontrackdriver.com. In cPanel, I have:
-Subdomains
-Addon Domains
-Parked Domains
-Redirects
Is it necessary to use the Parked Domains method? The Subdomains method does not work when I add m.ontrackdriver.com and use the forum root as the root path. It simply redirects (even with redirection 'disabled') to the default skin.
Thanks for your help!
EDIT: Oh yeah, when I try to add m.ontrackdriver.com using the Parked Domains method, I get the following error:
Error from park wrapper: Sorry, you are not allowed to add any more than (0) parked domains!
So if I need to use the Parked Domains method, perhaps I need a different hosting package from Glowhost (my provider)?
dartho
12-17-2008, 12:35 AM
I don;t have a cpanel account, but if memory serves you can use subdomains, you just need to not have redirectes, and set it's root folder to be the same as your primary domain.
Check your .htaccess file to make sure you don;t have any redirects in there - I noticed that ontractdriver.com redirects to www.ontrackdriver.com
Check your .htaccess file to make sure you don;t have any redirects in there - I noticed that ontractdriver.com redirects to www.ontrackdriver.com
Here is my .htaccess file. Would you mind having a look and letting me know if there are redirects in there? (sorry, I am not sure how to decipher)
# Comment the following line (add '#' at the beginning)
# to disable mod_rewrite functions.
# Please note: you still need to disable the hack in
# the vBSEO control panel to stop url rewrites.
RewriteEngine On
# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
#RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.ontrackdriver\.com
RewriteRule (.*) http://www.ontrackdriver.com/$1 [L,R=301]
RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron)
RewriteRule ^(.*\.php(/.*)?)$ vbseo.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]
dartho
12-17-2008, 03:38 AM
I'm no expert in this area, but I'm guessing that:
RewriteCond %{HTTP_HOST} !^www\.ontrackdriver\.com
RewriteRule (.*) http://www.ontrackdriver.com/$1 [L,R=301]
is the issue. If it is what it looks like, it is redirecting all URL's which are NOT www.ontrackdriver.com to www.ontrackdriver.com
This would indeed redirect m.ontrackdriver.com to www.ontrackdriver.com
VBSEO would do this as it is good SEO to only have content listed on a single domain name, in this case it's www.ontrackdriver.com. I'd suggest changing this to:
RewriteCond %{HTTP_HOST} !^ontrackdriver\.com
RewriteRule (.*) http://www.ontrackdriver.com/$1 [L,R=301]
This will then redirect URL's which don't have the www, but leave all others alone. The only other there will be is m.ontrackdriver.com and we don;t want this redirected anyway.
As I said, I'm no expert in this, so rather than delete the lines, copy then and then comment out the originals with a leading '#' character to make reversal easy if need be. You could even do a quick initial test by just commenting out that section altogther before editing.
hope this helps
Thanks, dartho. Commenting out the code worked. But changing it to the code you suggested doesn't work (returns 500 level server error).
At least it appears to be working right now, will continue to test. Is having the code commented out a viable long term solution? Or will that leave vbseo or anything else affected?
dartho
12-17-2008, 08:29 PM
Yeah - I got that previous code quite wrong - try removing the '!' or try the following
RewriteCond %{HTTP_HOST} ^ontrackdriver.com$
RewriteRule ^/(.*) http://www.ontrackdriver.com/$1 [R=301,L]
by not havng the code there, SEO 'experts' suggest you are possibly diluting your Google ranking by having 2 domains publishing the same content (the two domains being www.yourdomain.com and yourdomain.com). My uneducated view is that in the case of a www prefix, google et al wouldn't be that dumb - but it's easy to do (when you know how) so it can;t really hurt.
Yeah - I got that previous code quite wrong - try removing the '!' or try the following
RewriteCond %{HTTP_HOST} ^ontrackdriver.com$
RewriteRule ^/(.*) http://www.ontrackdriver.com/$1 [R=301,L]
by not havng the code there, SEO 'experts' suggest you are possibly diluting your Google ranking by having 2 domains publishing the same content (the two domains being www.yourdomain.com and yourdomain.com). My uneducated view is that in the case of a www prefix, google et al wouldn't be that dumb - but it's easy to do (when you know how) so it can;t really hurt.
Hmmm. That code doesn't work, either. Possibly another typo somewhere?
dartho
12-20-2008, 04:15 AM
As mentioned - I'm no expert in this rewrites .... how about:
RewriteCond %{HTTP_HOST} !^www\.ontrackdriver\.com [AND]
RewriteCond %{HTTP_HOST} !^m\.ontrackdriver\.com
RewriteRule (.*) http://www.ontrackdriver.com/$1 [L,R=301]
?
trainer
12-30-2008, 02:58 PM
currently have this setup
http://www.site1.com/forums/
shares the forums with
http://www.site2.com/forums/
issue is i am not logged in when i goto the new site forums. everything else seems to be working fine
thanks
giorgiotave
01-05-2009, 03:55 AM
Hi :)
I have some error:
Warning: preg_match() [function.preg-match]: Unknown modifier 'f' in [path]/global.php(243) : eval()'d code on line 158
This product can be used with php4?
shahryar_neo
01-20-2009, 04:45 PM
Hi :)
I have some error:
This product can be used with php4?
i've a same problem !
Hi :)
I have some error:
This product can be used with php4?
I had the same problem and saw this in the previous version:
All fixed. The errors you were getting were caused by including "http://" with the domain name.
There is also no need to include "www"
For example, "myforum.com" will match "myforum.com" "www.myforum.com" and "wap.myforum.org" - the leading http:// is just a protocol declaration and not a part pf the domain name.
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!
shahryar_neo
01-21-2009, 09:23 AM
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 ?
dartho
01-21-2009, 10:09 AM
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 ?
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...
shahryar_neo
01-21-2009, 11:35 AM
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 ? :o
dartho
01-23-2009, 12:52 AM
is working on my site, so I assume so
dartho
01-23-2009, 12:54 AM
so there is no way to use this hack on this domain ? :o
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
Is there a way to re-order the forums depending on the domain?
Krazeguy
02-03-2009, 07:22 PM
I have come across a very annoying but presumably easy to fix issue;
Here (http://mobile.adultforum.co.nz/forumdisplay.php?f=2) on the forum index, the thread page selection works fine eg Page (1 2 3 ... ) points to mobile.adultforum.co.nz
But here (http://mobile.adultforum.co.nz/showthread.php?p=37340#post37340) 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;
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.
dartho
02-14-2009, 08:07 PM
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 (https://vborg.vbsupport.ru/showthread.php?t=183185) which does just that. However, if teh style ID was known/guessed, users could still use it
wynode
02-15-2009, 03:54 AM
How exactly is this installed?
fattony69
03-02-2009, 05:49 AM
I have a content encoding error using this on 3.8.1.
I'm having problems. I had this installed and working, but never used it. Now I want to use it but no luck. I parked red.mydomain.com; when I go there I get the Index page though. Any ideas to fix it?
Index of /
Icon Name Last modified Size Description
[TXT] 404.shtml 01-Mar-2009 22:50 620
[ ] index.phpbak 01-Mar-2009 16:33 196
[DIR] mydomain.com/ 01-Mar-2009 14:27 -
Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8b DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_python/3.3.1 Python/2.4.3 Server at red.mydomain.com Port 80
dartho
03-09-2009, 05:02 AM
not sure I entirely understand. Does the red.mydomain.com subdomain point to teh same webspace as your primary domain?
Found a slight issue with the plugin as is. Originally I only used m.example.com as the domain and everything worked as expected. Today I added forum.example.com to DNS which was also directed to the mobile style (not what I wanted).
This was fixed by changing if(preg_match('/'.$styleurl.'/i', $_SERVER['HTTP_HOST'], $match))
to
if(preg_match('/\b'.$styleurl.'\b/i', $_SERVER['HTTP_HOST'], $match))
TheLab
03-13-2009, 09:54 AM
My normal index page for my site is /index.php which is an vBadvanced page. The page doesn't work well with the mobile theme so is it possible to use this them and point the users to /forums.php page instead of the index?
Thanks in advance :)
dartho
03-13-2009, 11:05 AM
check here: https://vborg.vbsupport.ru/showthread.php?p=1535871#post1535871
TheLab
03-13-2009, 01:39 PM
check here: https://vborg.vbsupport.ru/showthread.php?p=1535871#post1535871
Thats perfect thanks! :up:
Mellow
05-06-2009, 11:58 AM
My vb cookies are set at .myforum.com
If I'm using www.myforum.com and my mobile domain is www.myforum.mobi do I need to change my cookie to .myforum. ???
Thanks!
gezuvor
05-11-2009, 03:47 AM
Great mod!!
I don't think has been asked, so I'll toss it out. My Forum Name value is set to 'VWnavi.com', which is my main URL. I have a second domain that is 'VWnavi.mobi' and want to modify the Forum Name to use the .mobi TLD instead of .com...
dartho
05-11-2009, 07:56 AM
there shouldn;t be any issue with this - make sure you add the .mobi domain to the post whitelist in vbulletin options...
BlueChipEarth
05-27-2009, 03:22 PM
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..
Does that mean that if I have the mobile device detection mod installed, AND THEN I go to "mod.lawnsite.com" for example (for my moderator client), it will still override the detection and show the PC layout?
I just need moderators to see the original style (and hopefully switch back and forth between them) from their mobile phones.
rrudeboy
05-27-2009, 07:49 PM
so, if i want m.domain.com i have to get (buy) another domain ? is that the scope ?
dartho
05-28-2009, 12:29 AM
@BCE - Not necessarily, the mobile detectiom add-on may still overide by default, however, you could change the plugin execution order of the this add-on to execute after the mobile detect plugin and thus override it.
@rudeboy - No, you would use your existing domain (domain.com), and create a sub-domain of m.domain.com
rrudeboy
05-28-2009, 11:21 AM
@rudeboy - No, you would use your existing domain (domain.com), and create a sub-domain of m.domain.com
that's what i thought.. however, sadly my host does not seem to allow a sub-domain name of 1 letter :]
rrudeboy
05-28-2009, 04:18 PM
still not working.... so i can go to the mobile site on my laptop (by using mobi.domain.net...) but when i try it on my phone/BlackBerry, it does not work. :mad:
rrudeboy
05-28-2009, 08:00 PM
nobody ?!
is this a good format to put the url: mobi.everythingberry.net
and the style is 5, so i just put a 5...
obviously both Enable DDDS? Enabled? to YES. :confused:
dartho
05-28-2009, 10:44 PM
mobi.everythingberry.net takes me to a 404 page
rrudeboy
05-29-2009, 01:11 AM
mobi.everythingberry.net takes me to a 404 page
it takes me (try again plz) to my regular full blown site.. been messing with it all day :]
dartho
05-29-2009, 01:27 AM
http://mobi.everythingberry.net now just redirects to http://everythingberry.net/forum/ - this mod is not be able to do such things - you need to check your server settings
rrudeboy
05-29-2009, 01:34 AM
http://mobi.everythingberry.net now just redirects to http://everythingberry.net/forum/ - this mod is not be able to do such things - you need to check your server settings
i'm not following... it's suppose to redirect to my full blown site and then set the style id in your plugin/mod no ?
and with server, you mean my provider ? (i can give you access and you can check it ?)
dartho
05-29-2009, 01:41 AM
no, it's not meant to redirect anywhere. You would need to have both domains pointing to teh same webspace - if you redirect to your primary domain name, then you are no longer using a different domain name and as such a different style is not applied.
You should probably also change the link to your forums in your landing page (http://everythingberry.net/index.html) be a relative one.
rrudeboy
05-29-2009, 01:59 AM
no, it's not meant to redirect anywhere. You would need to have both domains pointing to teh same webspace - if you redirect to your primary domain name, then you are no longer using a different domain name and as such a different style is not applied.
your saying not re-direct, i get that... but i looked all over & even spoke with tech support and i am so far unable to find how to point both to the same space :]
You should probably also change the link to your forums in your landing page (http://everythingberry.net/index.html) be a relative one.
uhm... not understanding. :confused:
rrudeboy
05-29-2009, 11:22 AM
again was on the phone with support (my hosting provider) and he had me make a A record which points to my full sites web space, when going to mobi.everythingberry.net it still goes to the full blown site..
* rrudeboy is getting hopeless :erm:
45wheelgun
06-12-2009, 10:50 AM
Have this all setup and working...sort of.
I have a second domain m.domainname.com that points to the same web space along with the original domainname.com.
When I go to m.domainname.com I see the defaut style. I must log in first, and then I see the mobile style.
How do I fix it so that I only see the mobile style when going to m.domainname.com?
rrudeboy
06-12-2009, 11:05 AM
i use a mod for that: https://vborg.vbsupport.ru/showthread.php?t=174381 (Different Domain, Different Style)
45wheelgun
06-12-2009, 11:55 AM
That is the mod I was referring to. I think we are in that thread now...:)
dartho
06-12-2009, 12:00 PM
I am guessing that the account you log on with is an admin account? If so, it sounds like you don;t have the mobile style set as user selectable - an admin is able to view styles which users can not.
45wheelgun
06-12-2009, 12:28 PM
I am guessing that the account you log on with is an admin account? If so, it sounds like you don;t have the mobile style set as user selectable - an admin is able to view styles which users can not.
Bingo! All better now. Thanks for the assistance!:up:
Phrost
07-24-2009, 11:09 PM
Is there any way to use this to deliver a separate set of subforums only to the secondary domain?
dartho
07-25-2009, 01:18 AM
Possibly in conjunction with conditional statements in your styles templates
merk_aus
07-26-2009, 10:06 AM
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.
MissKalunji
07-27-2009, 06:13 PM
does this still work with 3.8?
dartho
07-27-2009, 09:38 PM
Sure does.
MissKalunji
07-28-2009, 03:00 AM
thank you :)
wheezyb
07-29-2009, 03:22 PM
do i install this as a style?
sorry for the noob question I just didn't see any install instructions anywhere
rrudeboy
07-29-2009, 03:42 PM
do i install this as a style?
sorry for the noob question I just didn't see any install instructions anywhere
no, install it in Plugins & Products..
gr8whtd0pe
08-09-2009, 01:12 PM
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!
robhole
08-19-2009, 12:10 AM
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.
dartho
08-19-2009, 12:55 AM
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?
<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>
This is untested
floridaideal
09-18-2009, 02:54 PM
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
Well, technically I think its a DNS CNAME that you want, not a subdomain.
floridaideal
09-18-2009, 05:05 PM
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
dartho
09-18-2009, 09:23 PM
Do you use cPanel or Plesk to add subdomains?
forexforum
09-27-2009, 05:47 PM
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:
Does this mod supports specific forums for different domains under single vb installation?
Can provide the conditional codes to separate certain forum IDs to different domains? Eg. I want forum ID 1 and 2 to be shown on www.123.com but not on www.890.com; vice versa, on www.890.com, only forum ID 3 and 4 will be shown.
Hopefully can help?
Cheers.
forexforum
09-27-2009, 06:12 PM
1. Your forum is accessable from multiple domains but the content is the same for each link. This is OK and does not require multiple licenses. My site is an example of a multi-domain setup that is allowed:
http://www.mscclan.com/forum/
http://www.macsubculture.com/forum/
http://www.mac-gamer.com/forum/
Notice how each domain points to exactly the same content.
2. Your forum is accessable from multiple domains but each domain shows a different forum style. This is OK and does not require multiple licenses.
3. Your forum is accessable from multiple domains and your forums are configured to show/hide certain forums based on the domain. This is not OK and requires an active vBulletin license for each domain. In this situation the forums appear to have separate content thereby making them separate forums in the eyes of the license agreement. Your forum content needs to be the same for each domain in order to qualify as a single forum.
Hi dartho,
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.
dartho
09-28-2009, 09:22 AM
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
Amenadiel
10-02-2009, 08:08 PM
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.
dartho
10-03-2009, 12:04 PM
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
Amenadiel
10-05-2009, 10:50 AM
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:
if ($vbulletin->userinfo['userid']==0) {
it'll only apply to visitors.
dartho
10-05-2009, 11:51 AM
Good job - and thanks for posting back here...
jahshaka
10-17-2009, 09:34 PM
hi,
love the hack its awesome!
i use the zoints seo plugin however and it breaks the use of the new domain in the fourm links.
is there anyway to support zoints seo? if you could point me in the right direction i could help out... ie how/where do you rewrite the links to follow the new domain?
i would think that to support zoints wold be easy, since its just the web root that needs to be addressed...
thanks!
jahshaka
10-17-2009, 10:44 PM
well, dont have a real fix but managed to get this working with zoints seo... basically you can easily disable zoints for the redirected domains by editing:
The Different Domain, Different Style -> Force URL to Style plugin as follows:
if ($vbulletin->options['ddds37_enable'] == 1)
{
$styleurl=$vbulletin->options['ddds37_domain'];
if(preg_match('/'.$styleurl.'/i', $_SERVER['HTTP_HOST'], $match))
{
$vbulletin->options['zointsseo_on'] = 0;
$styleid=$vbulletin->options['ddds37_style'];
}
}
basically just added the following
$vbulletin->options['zointsseo_on'] = 0;
this disables zoints when using the new template...
patch not a fix :)
Trana
10-20-2009, 02:11 AM
Is there a way to have multiple domains use one style and one specific domain use another?
dartho
10-20-2009, 08:23 AM
configure vb to use the one style which you want the 'multiple domains' to use, then install this to change the style of the other 'specific domain' to use. You can configure vb to not allow users to change styles - but you still have to have the styles checked as user selectable to that this add-on can use it.
rrudeboy
10-22-2009, 06:59 PM
i moved my forum, everything BUT this plugin is working... DDDS seems to ignore the domain name, is there something i might have overlooked ? something i can do to test ?
tks....
dartho
10-23-2009, 01:19 AM
when you say moved your forum, you mean from one host to another? Did you configure your domains/subdomains in the same manner (ie. pointing to teh same webspace as your primary domain)?
rrudeboy
10-23-2009, 02:28 AM
i moved the forums from one domain to another, remaining on the same host..
dartho
10-23-2009, 05:44 AM
and the secoind part of teh question - I need to know how you are using iut to know how to help.
If you have a new domain name, you'll need to recopnfigure DDDS. Are you using subdomains to trigger different styles? If so, have you created and parked those subdoains correctly (on teh same web space/root as your primary domain)?
rrudeboy
10-23-2009, 11:29 AM
and the secoind part of teh question - I need to know how you are using iut to know how to help.
If you have a new domain name, you'll need to recopnfigure DDDS. Are you using subdomains to trigger different styles? If so, have you created and parked those subdoains correctly (on teh same web space/root as your primary domain)?
yes, i did reconfigure DDDS, all i changed was mobi.olddomain.net to mobi.newdomain.net..
i do not use sub-domains for the mobile site. all i had/want DDDS to do is when it detects mobi.mydomain.net use style id 5..
tks.
dartho
10-23-2009, 11:39 AM
it works for me :)
http://www.totalsmartphone.net/forum/ gives me a PC skin and http://mobi.totalsmartphone.net/forum/ gives me the mobile skin
rrudeboy
10-23-2009, 12:10 PM
it works for me :)
http://www.totalsmartphone.net/forum/ gives me a PC skin and http://mobi.totalsmartphone.net/forum/ gives me the mobile skin
you trying on a pc ? because that works for me as well.... it's my mobile users that have the issue.
Byggahus
10-26-2009, 09:27 AM
dartho,
I would like visitors that enters http://mobil.byggahus.se to get forced to (redirected to)
http://www.byggahus.se/forum?styleid=17 (the forum with the Mobile style)
BUT visitors that enters http://byggahus.se, http://byggahus.se/forum, http://www.byggahus.se or http://www.byggahus.se/forum to get the default style.
What do I need to do in order to achieve this? I have asked the web hotel to create the sub domain mobil.byggahus.se and are using vBSEO and redirects in .htaccess.
Byggahus
10-26-2009, 10:13 AM
Can I suggest putting this:
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
In headerinclude for a different domain that links to the same content. It will tell spiders not to index it. You won't get a penalty for duplicate content.
I have now added the suggested below the "link rel" row. I hope I did the correct thing!? headerinclude for the Mobile style now looks like this:
<link rel="stylesheet" href="wireless.css" type="text/css" />
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
dartho
10-26-2009, 08:56 PM
Register the mobil subdomain and have it point to or be parked on the same webspace as your main domain, do not use redirects. There is no need to modify .htaccess withthis add-on.
Install the single domain version of this product (product-ddds37.xml (https://vborg.vbsupport.ru/attachment.php?attachmentid=80937&d=1211180391))
Head to AdminCP->vBulletin Options->vBulletin Options->Different Domain, Different Style
Enable DDDS : Yes
Domain Name: mobil
Style for this domain: <your mobile style>
Save
mallick
11-07-2009, 03:15 AM
issue resolved..
thanks
biggeorge
12-28-2009, 04:01 PM
I'm having a problem with this and hopefully someone can guide me...
I've setup mobile.extremebusa.com in cpanel
I've enable DDDS in VB Options, included the sub domain mobile.extremebusa.com, and included the style https://vborg.vbsupport.ru/showthread.php?t=229241
When I go to mobile.extremebusa.com I get a directory listing!
Any help will be appreciated.
dartho
12-28-2009, 08:38 PM
Is your document root pointing to teh same document root as your primary website - probably public_html/ ?
fredang85
12-29-2009, 03:33 AM
i get this error, no matter wad template i use!
see wap.motorolafans.com
Warning: array_intersect() [function.array-intersect]: Argument #2 is not an array in [path]/global.php(238) : eval()'d code on line 33
sNator
01-25-2010, 01:19 PM
How can I get this to work with VB 4?
I think this is the prefered way of directing users to a mobile style instead of device detection.
Works excellent om my 3.8 site!
If anyone is interested, this hack does NOT work with vB4.
dartho
01-27-2010, 10:19 AM
no? I was actually under the impression that it did. I'll look into it ;)
Hmmm. It installed correctly, but I couldn't get the redirect to work. But it did work for me on vB3... Could it have something to do with the redirect from index.php to forum.php?
Zaiaku
01-27-2010, 10:58 PM
The mod similar to this doesn't work work me on vb4 I was hoping that this on would :(
no? I was actually under the impression that it did. I'll look into it ;)
Any chance you've had a moment or two to look at this?
dartho
02-02-2010, 08:35 PM
edit the headinclude template and change the line
<base href="{vb:raw vboptions.bburl}/" />
to
<vb:comment>
<!-- Removed to allow DDDS Mod to work -->
<base href="{vb:raw vboptions.bburl}/" />
</vb:comment>
Also make sure you add any extra domains to your post whitelist
You rock. I assume this needs to be edited in the mobile skin?
TESTIN!!!
edit: I edited it just in the mobile skin, then in all skins. That didn't seem to work. Still redirects to main domain name.
reedit: And Ive added the domain to the whitelist...
Oh, and I only have the forum piece enabled, in case that redirect from index.php to forum.php is somehow interfering with it.
dartho
02-02-2010, 09:10 PM
it's working a treat on my test site - that template edit was to make URL's relative so that it didn;t flick back to the main domain.
Edit: Is the style user selectable - mine was, I unchecked it and then this addon did not kick in - vBulletin may have changed some internals so that overriding non selectable styles may not be possible now
Yes, it is a selectable style.
AHHHHHH. I have to use the full path to forum.php, then it works. SWEEET!
sNator
02-03-2010, 11:17 AM
Works if I go direct to /forum but when I click on a thread I get a wierd url
/forum//forumdisplay.php/showthread.php. I can solve this by turning the SEO settings to standard.
If I go to root / I get back to the default style.
I use the CMS system.
dartho
02-04-2010, 02:53 AM
try adding the <base href="{vb:raw vboptions.bburl}/" /> line back in, but manually edit it to be hard coded to refelect what the [sub]domain actually is. If this makes thikngs start working, I may be able to modify teh plugin to do this.
Me, or snator? Mine works when I direct them to forum.php, rather than index.php
dartho
02-04-2010, 10:27 PM
was for sNator, if it's working for you, no need to change!
Zaiaku
02-05-2010, 11:09 PM
Before I start editing stuff. wha exactly doesn't make this work on vb4 for some of you?
I just installed it on vb4 and everything working just fine on it.
dartho
02-06-2010, 02:23 AM
I think it depends if you have your forums in root or not and also if you have CMS installed. The issue I had was with the base tag messing up my links...
Zaiaku
02-07-2010, 11:15 PM
I only tried it on one of my sites and the forum is in the root. I made my own CMS and not using the vb4 default one since I don't like it. All the links work just fine. I so far have no seen any bugs or problems yet.
This has been a life saver for me.
try adding the <base href="{vb:raw vboptions.bburl}/" /> line back in, but manually edit it to be hard coded to refelect what the [sub]domain actually is. If this makes thikngs start working, I may be able to modify teh plugin to do this.
I modified the plugin a little more to get this to (mostly) work in vB4. Added the following inside the if block when the domain matches.
$vbulletin->options['bburl'] = "http://" . $vbulletin->options['ddds37_domain'];
So far the only issue I have run into is with forums that are links, they still seem to be using the "default" forum URL instead of the mobile one, i.e. they try to go to www.example.com instead of m.example.com despite being relative links :mad:
woodysfj40
04-09-2010, 12:09 PM
My installation seems to be partially working....vbSEO installed.
http://mforum.ih8mud.com displays correctly.
http://mforum.ih8mud.com/40-55-series-tech/ displays correctly.
BUT any time I click a thread, it reverts back to forum.ih8mud.com
thoughts?
Thanks for continuing to support this great mod!
dartho
04-10-2010, 10:55 AM
My installation seems to be partially working....vbSEO installed.
http://mforum.ih8mud.com displays correctly.
http://mforum.ih8mud.com/40-55-series-tech/ displays correctly.
BUT any time I click a thread, it reverts back to forum.ih8mud.com
thoughts?
I think vbseo sets a 'base' meta tag which needs to be unset, or a plugin written which sets it as required.
hint - read all the posts on the previous page!
Thanks for continuing to support this great mod!
It's not supported :)
woodysfj40
04-10-2010, 12:16 PM
if(
VBSEO_BASEDEPTH &&
defined('VBSEO_PREPROCESSED')
&& ($_SERVER['HTTP_HOST'] != 'm.mydomain.com')
)
got it... thanks :)
nestortoledo
09-18-2010, 07:54 AM
OK, I dont use this plugin to use a mobile version of the template.
i use this plugin to have something like 2 diferent microforums, in same database / installation.
The main problem with this plugin, is that override the forum preference that allow you to have diferent style for diferent categories.
For example:
"Style A" is on subdomain "a.clublgmobile.com" with categories/forums "1,2,3,4,5"
"Style B" is on subdomain "b.clublgmobile.com" with categories/forums "6,7,8,9,10"
if i enther in main forum home, "a.clublgmobile.com", all its working ok.
But what happen if a user put a address like_:
"http://a.clublgmobile.com/categoryforum/6"
The forum will open with "b" category in a style.
This plugin disable/override the option in forum preference, that allow me to have diferent style in diferent categories / forums.
I know that the main proposal of this plugin is use mobile version style, and not what im doing. but posible someone can helpme.
Thans and regards
dartho
09-18-2010, 08:24 AM
What you suggest is the main problem of this plugin is in fact exactly what this plugin is designed to do, override a style based on [sub]domain name used to visit the page.
I might be able to offer a change to this script to do what you want (ie. do what it currently does UNLESS a custom style is defined for a forum) - *might*
Leave it with me ...
dartho
09-18-2010, 09:00 AM
I just had a quick look, if you edit the "Force URL to Style" plugin and replace
if ($vbulletin->options['ddds_36_enabled'] == 1)
with
if (($vbulletin->options['ddds_36_enabled'] == 1) && (!$foruminfo['styleid']))
it should not override a style explicitly defined in forum properties. This was tested so minimally that I may as well have not tested at all, so no promises. Let us know if it work.s
nestortoledo
09-18-2010, 10:45 AM
Before nothing thanks for your help.
Then.
When modify the lines provided by you, it give me those errors. and the plugin stop working
Parse error: syntax error, unexpected T_BOOLEAN_AND in /usr/home/clublgmobile/www/foros/includes/class_bootstrap.php(890) : eval()'d code on line 8
Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_bootstrap.php(890) : eval()'d code:8) in [path]/includes/functions.php on line 4939
dartho
09-18-2010, 11:24 AM
Did you change the correct line? It should have been only the first line of teh plugin that got changed. I have this change working on my own live site as we speak.
Which version are you using, 5 domain version or single?
nestortoledo
09-18-2010, 11:37 AM
Im using single one domain.
And yes i modified only first line.
Exactly ive change this line:
if ($vbulletin->options['ddds_37_enabled'] == 1)
To this line:
if (($vbulletin->options['ddds_37_enabled'] == 1) && (!$foruminfo['styleid']))
Forgot to mention that im using it in Vbulletin 4. Suite with CMS Disabled.
nestortoledo
09-20-2010, 08:55 AM
Tried with multiple domain version and same problem.
for5up
05-15-2011, 06:19 AM
I modified the plugin a little more to get this to (mostly) work in vB4. Added the following inside the if block when the domain matches.
$vbulletin->options['bburl'] = "http://" . $vbulletin->options['ddds37_domain'];
So far the only issue I have run into is with forums that are links, they still seem to be using the "default" forum URL instead of the mobile one, i.e. they try to go to www.example.com instead of m.example.com despite being relative links :mad:
hi sung
i used your modification, and it runs perfectly in my forum.
all link has changed into m.myforum.com (thread,forum,post, etc)
thanks for the change
*i use 4.1.3
So far the only issue I have run into is with forums that are links, they still seem to be using the "default" forum URL instead of the mobile one, i.e. they try to go to www.example.com instead of m.example.com despite being relative links :mad:
I've managed to fix this issue (for me at least) by creating a new plugin to the header_redirect hook.
if ($vbulletin->options['ddds37_enable'] == 1)
$ddds37_default = "www.example.com/forum";
{
if(strstr($_SERVER['HTTP_HOST'], $vbulletin->options['ddds37_domain']) && strstr($url, $ddds37_default))
{
$url = str_replace($ddds37_default, $vbulletin->options['ddds37_domain'], $url);
}
}
NOTE: This assumes you're trying to redirect your "normal" forums at URI www.example.com/forum to whatever you have set in the DDDS options. Change the $ddds37_default variable accordingly.
dartho
05-16-2011, 10:07 PM
I think you can removbe the <BASE> tag from the header which is causing the default URL to be used in relative links
I think you can removbe the <BASE> tag from the header which is causing the default URL to be used in relative links
The <base> tag is set correctly with my mobile domain and redirects (from links or searches) don't work.
Even with the <base> tag removed, you'd still need the above plugin for redirects to work :(
PAKIDIL
09-12-2011, 11:23 PM
i am not allow to add park domain . can it work with subdomain addition ?
dartho
09-13-2011, 01:07 AM
yes it can.
PAKIDIL
09-13-2011, 06:32 AM
can you please guide me how can i do it .
- I upload the file
- Change the file name to wirless.css
- Upload the style
- add the sub domain
Confusing part : when adding it its come with public_html/mobile as i am trying to mobile.mysite.com
or should i go with public_html only
THANKS waiting for reply
dartho
09-13-2011, 08:56 AM
This has nothing to do with any styles.
Before you can use this, you must have a domain name or subdomain configured pointing at the same web space as your primary domain. Usually a CNAME record for teh secondary [sub]domain pointing at your primary domain will do the trick - check with your provider if you don;t know how to do this.
Additionally you will need a secondary style installed.
Instructions:
Save XML file in first post to your computer
Log into AdminCP on your site
AdminCP -> In Plugins & Products -> Manage Products click the [Add/Import Product] link at the bottom of the page
Click the Browse button and locate the XML file you saved to your computer.
Click the "Yes" radio button to allow overwrite
Click the Import button to import the product.
Now go to AdminCP->vBulletin Options->vBulletin Options
Locate the "Different Domain, Different Style" section.
Select 'Yes' to enable DDDS
Enter in the [sub]domainname you wish to specify a style for. eg. mobile.vbulletin.com
Select the style you wish to use for this domain name.
Click the "Save"button.
Now go to AdminCP->vBulletin Options-> General Settings and add your [sub]domain name to the Post Referrer Whitelist
Assuming all is configured correctly (style, [sub]domain and this add-on, you should be able to browse to your [sub]domain and get teh configured style.
PAKIDIL
09-13-2011, 08:50 PM
This has nothing to do with any styles.
Before you can use this, you must have a domain name or subdomain configured pointing at the same web space as your primary domain. Usually a CNAME record for teh secondary [sub]domain pointing at your primary domain will do the trick - check with your provider if you don;t know how to do this.
Sorry about my this question . i have a domain name www.myforum.com and i want this for the mobile style : mobile.myforum.com
so in this case what will i do, Kindly please help in this thanks
dartho
09-13-2011, 10:15 PM
you do what I said in previous post!
infnity8x3
09-28-2011, 03:15 AM
When I log in with the new subdomain I get this error msg
Invalid Redirect URL
But it in fact does log me in. Any reason why i would get this?
Ok i got it boiled down to my forum url setting in the admincp. If i change that to the new mobile subdomain it logs in fine. Only problem is that is not where my forum is located and changing that breaks alot of codes especially the bburl tag.
dartho
09-28-2011, 04:20 AM
have you gone through the post about 3 above (Post 217) ?
infnity8x3
09-28-2011, 04:35 AM
Yes.
I have "mobile.example.com" and "example.com"
In vbulletin options, my forum url is "http://example.com"
If i change it to "http://mobile.example.com" then it works. And i login fine.
But that is not my true forum's Url so i can't keep it set to the mobile site.
Update just so you know. I have vbadvanced installed and set up so. http://example.com is my home page / portal and http://example.com/forum are the actual forums. I have my sub domain set up so it points directly to the /forum directory that was the mobile subdomain bypasses the vbadvanced page altogether
I may be 100% screwed
https://www.vbulletin.com/forum/showthread.php/383967-Invalid-redirect-url-appearing-since-security-patch/page3
dartho
09-28-2011, 05:33 AM
I think that's your problem. Your webroot for any subdomain has to be same as for primary domain. Ideally you'd have a CNAME DNS record which points mobile.example.com at example.com In cPanel parking a domain on teh same root as your primary domain is how to do it.
autoescala
10-28-2011, 05:51 PM
hi sung
i used your modification, and it runs perfectly in my forum.
all link has changed into m.myforum.com (thread,forum,post, etc)
thanks for the change
*i use 4.1.3
Please, can you post your full code, I dont understand where I have to add exactly.... I try 3 combinations and no runs on 4.1.7.
Please post here your plugin php code
autoescala
02-09-2012, 10:02 AM
Please, can you post your full code, I dont understand where I have to add exactly.... I try 3 combinations and no runs on 4.1.7.
Please post here your plugin php code
Hi to all,
After many work I modify the addon with the sung options and It works for me on 4.1.7 very well..
m.example.net -> mobile style
mobile.example.net -> mobile style
example.net -> normal style
But the problem is when the forum emails some alert to the users from a thread they always use mobile.example.net/forum/etc instead of example.net/forum/etc !
how can I solve this ? any ideas ?
Best regards
autoescala
03-09-2012, 09:42 AM
Hi to all,
Vote here in JIRA:
http://tracker.vbulletin.com/browse/VBIV-14142
https://www.vbulletin.com/forum/showthread.php/394757-Mobile-style-in-sub-domain-
(example-http-m-vbulletin-com)
For an official ability to set the mobile style in sub-domain.
Best Regards
autoescala
06-28-2012, 01:47 PM
bump
Relientk
08-22-2012, 01:19 AM
omgoodness! I have been working on this for weeks trying to find an answer as to how I could achieve this!!! I'm sooooo happy! Thank you for offering this! I'm going to work on installing it now. If all goes well I will be donating!!! Thank you so much this is awesome!
vn88com
03-26-2014, 05:22 AM
I have setup style for pc: domain.com, and style for mobi: m.domain.com
When I use phone device go to domain.com, it not redirect to m.domain.com, but it show style mobi.
How to redirect m.domain.com when go by phone? and user can choose link domain.com to use pc style?
Im using mod Detect Mobile Device and Different Domain, Different Style
Thanks
dartho
03-26-2014, 11:59 PM
mobile detect sets style based on device used to visit page
different domain assigns style based on URL visited (domain name)
sorry - they do not know about each other or work together
My suggestion would be disable detection and inform users of mobile site address. What version of VB do you use? This https://vborg.vbsupport.ru/showthread.php?t=270978 might work if your version of VB has notices
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.