Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

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

Category: Forum Display Enhancements - Version: 3.6.8 Rating:
Released: 07-05-2007 Last Update: 08-24-2007 Installs: 86
Supported Uses Plugins
 

This is a simple add-on which will force a specific styleid based on the host url the user visited.

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.

Other uses may be having wap.domainname.com point to a different style than www.domainname.com.

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 History
1.0.0: product_ddds_36.xml - Initial release, Supports a single additional domain
1.0.1: product-5_ddds_36.xml - Supports up to 5 additional domains
1.0.2: product-5_ddds_36.xml - fixed typo in code - update required!
1.0.4: product-5_ddds_36.xml - fixed bug, added comment code [B]update required!
1.0.5: product-5_ddds_36.xml - removed comment code - caused issues on some systems

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

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

Here's an example of it in use (this is the single additional domain version - product_ddds_36.xml)
DDDS is installed and configured to assign a different style to the domain "m.twf.com.au"

http://twf.com.au - is my regular site/style
http://m.twf.com.au - is the same site, but using a different style designed for mobile devices (THIS one)
Reply With Quote
  #53  
Old 11-24-2007, 01:20 PM
xavierx xavierx is offline
 
Join Date: Nov 2007
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In my case dont work
Look de captures
What's wrong? helpme please!
Reply With Quote
  #54  
Old 11-24-2007, 07:29 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is the Mobile style actually styleid 2? (In that screen shot "2" is the display order) Click on the "Go" button next to the style name and then look at the top for the screen for the styleid
Attachment 72627
Reply With Quote
  #55  
Old 11-24-2007, 10:19 PM
xavierx xavierx is offline
 
Join Date: Nov 2007
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks.
StyleID problem fixed but..... dont work.
What is the best way for make the redirection between subdomain (in this case m) and main url...

Example: m.url.com ---> www.url.com ?
Reply With Quote
  #56  
Old 11-24-2007, 10:26 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK - I see your problem.

A redirection will not work as this sends the http://m.url.com subdomain to http://www.url.com what you need to do is add the http://m.url.com subdomain and "park" it on top of your http://www.url.com domain

I'm not sure what controlpanel you are using for managing your domain, but the "Documento Principal" in your screen shot should be "/public_html/" with no redirection.

Hope this helps!
Reply With Quote
  #57  
Old 11-25-2007, 07:28 AM
xavierx xavierx is offline
 
Join Date: Nov 2007
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dartho View Post
OK - I see your problem.

A redirection will not work as this sends the http://m.url.com subdomain to http://www.url.com what you need to do is add the http://m.url.com subdomain and "park" it on top of your http://www.url.com domain

I'm not sure what controlpanel you are using for managing your domain, but the "Documento Principal" in your screen shot should be "/public_html/" with no redirection.

Hope this helps!
Thanks!!! The problem was fixed
Reply With Quote
  #58  
Old 11-25-2007, 07:50 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[Mr Burns Voice]Excellent![/Mr Burns Voice]
Reply With Quote
  #59  
Old 11-25-2007, 08:19 AM
romanticyao's Avatar
romanticyao romanticyao is offline
 
Join Date: Oct 2002
Location: Canada
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is very useful
Reply With Quote
  #60  
Old 01-02-2008, 11:28 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There have been some questions previously about the Vbulletin license agreement and how this add-on may be use to break it. I've just found a post on Vbulletin.com HERE

Quote:
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.
In essence, it would appear that no matter how you use this add-on, it will not break the license agreement.
Reply With Quote
  #61  
Old 01-23-2008, 05:09 PM
HiSoC8Y HiSoC8Y is offline
 
Join Date: Mar 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

do i need to create a subdomain in cpanel, and redirect the subdomain to my original forum url?

wap.myforum.com is the url im trying to use, so i created the subdomain wap.myforum.com

and my original forum is www.myforum.com

??
Reply With Quote
Reply


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 07:31 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.05258 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
  • (2)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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • 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