![]() |
|
Mod Options |
![]() |
|||||||||||
Different Domain, Different Style
![]() Developer Last Online: Mar 2022 ![]() ![]() ![]() This modification is in the archives.
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. Download Now Only licensed members can download files, Click Here for more information. Show Your Support
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
Forum Display Enhancements DDDS - Different Domain Different Style | dartho | vBulletin 3.6 Add-ons | 116 | 25 Nov 2009 08:20 |
#211
|
||||
|
||||
Originally Posted by sung
I've managed to fix this issue (for me at least) by creating a new plugin to the header_redirect hook.![]()
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. No members have liked this post.
|
#212
|
|||
|
|||
I think you can removbe the <BASE> tag from the header which is causing the default URL to be used in relative links
No members have liked this post.
|
#213
|
|||
|
|||
Originally Posted by dartho
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 ![]() No members have liked this post.
|
#214
|
|||
|
|||
i am not allow to add park domain . can it work with subdomain addition ?
No members have liked this post.
|
#215
|
|||
|
|||
yes it can.
No members have liked this post.
|
#216
|
|||
|
|||
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 No members have liked this post.
|
#217
|
|||
|
|||
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:
No members have liked this post.
|
#218
|
|||
|
|||
Originally Posted by dartho
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 No members have liked this post.
|
#219
|
|||
|
|||
you do what I said in previous post!
No members have liked this post.
|
#220
|
|||
|
|||
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. No members have liked this post.
Last edited by infnity8x3; 28 Sep 2011 at 05:05. |
#221
|
|||
|
|||
have you gone through the post about 3 above (Post 217) ?
No members have liked this post.
|
#222
|
|||
|
|||
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/show...ty-patch/page3 No members have liked this post.
Last edited by infnity8x3; 28 Sep 2011 at 06:57. |
#223
|
|||
|
|||
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.
No members have liked this post.
|
#224
|
|||
|
|||
Originally Posted by for5up
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 No members have liked this post.
|
#225
|
|||
|
|||
Originally Posted by autoescala
![]()
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 No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 07:32.