vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Forum Display Enhancements - Different Domain, Different Style (https://vborg.vbsupport.ru/showthread.php?t=174381)

dartho 03-27-2008 10:00 PM

Different Domain, Different Style
 
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 :)


All times are GMT. The time now is 07:38 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01233 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete