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
  #152  
Old 09-18-2009, 02:54 PM
floridaideal floridaideal is offline
 
Join Date: Aug 2002
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #153  
Old 09-18-2009, 04:19 PM
fly fly is offline
 
Join Date: Oct 2003
Posts: 1,215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, technically I think its a DNS CNAME that you want, not a subdomain.
Reply With Quote
  #154  
Old 09-18-2009, 05:05 PM
floridaideal floridaideal is offline
 
Join Date: Aug 2002
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #155  
Old 09-18-2009, 09:23 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you use cPanel or Plesk to add subdomains?
Reply With Quote
  #156  
Old 09-27-2009, 05:47 PM
forexforum forexforum is offline
 
Join Date: Sep 2008
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
  1. Does this mod supports specific forums for different domains under single vb installation?
  2. 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.
Reply With Quote
  #157  
Old 09-27-2009, 06:12 PM
forexforum forexforum is offline
 
Join Date: Sep 2008
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dartho View Post
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.
Reply With Quote
  #158  
Old 09-28-2009, 09:22 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #159  
Old 10-02-2009, 08:08 PM
Amenadiel's Avatar
Amenadiel Amenadiel is offline
 
Join Date: Sep 2006
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #160  
Old 10-03-2009, 12:04 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #161  
Old 10-05-2009, 10:50 AM
Amenadiel's Avatar
Amenadiel Amenadiel is offline
 
Join Date: Sep 2006
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:

PHP Code:
if ($vbulletin->userinfo['userid']==0) { 
it'll only apply to visitors.
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 10:16 AM.


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.04966 seconds
  • Memory Usage 2,307KB
  • 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_php
  • (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