Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
Different Domain, Different Style Details »»
Different Domain, Different Style
Version: 1.0.1, by dartho dartho is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

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.
2 благодарности(ей) от:
CrashPush, Relientk

Comments
  #82  
Old 11-19-2008, 08:16 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There shouldn't be an issue. You'll need to add your sub domain to the Post Referrer Whitelist in vBulletin Options
Reply With Quote
  #83  
Old 11-25-2008, 06:08 PM
sectomy sectomy is offline
 
Join Date: Oct 2008
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #84  
Old 11-28-2008, 11:27 PM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #85  
Old 12-01-2008, 10:47 PM
grecostimpy grecostimpy is offline
 
Join Date: Mar 2005
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DiesellMinded View Post
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....4&postcount=51
Reply With Quote
  #86  
Old 12-02-2008, 07:26 AM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why not just redirect your Domains to your Style ids Server Side

www.dieselbombers.com
www.dieselbombers.mobi
Reply With Quote
  #87  
Old 12-02-2008, 07:58 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #88  
Old 12-04-2008, 09:27 AM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #89  
Old 12-14-2008, 10:04 PM
nymyth nymyth is offline
 
Join Date: Jun 2002
Location: New York
Posts: 367
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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....
Reply With Quote
  #90  
Old 12-16-2008, 01:13 PM
ls7 ls7 is offline
 
Join Date: Dec 2008
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)?
Reply With Quote
  #91  
Old 12-17-2008, 12:35 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:38 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04767 seconds
  • Memory Usage 2,306KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete