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
  #72  
Old 02-27-2008, 05:11 PM
Undertaker #59 Undertaker #59 is offline
 
Join Date: May 2005
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello.

Is it possible to use this mod for this? My main site is site1.com. I have two add-on domains, site2.com and site3.com. The VB forums are on site2.com. I would like to use your mod as intended with site3.com. If I set site3.com to a parked domain, it loads site1.com. (as that is the main account). Is there anyway I can set things so that it loads site2.com instead?

Thanks.
Reply With Quote
  #73  
Old 02-27-2008, 08:04 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Undertaker #59 View Post
Hello.

Is it possible to use this mod for this? My main site is site1.com. I have two add-on domains, site2.com and site3.com. The VB forums are on site2.com. I would like to use your mod as intended with site3.com. If I set site3.com to a parked domain, it loads site1.com. (as that is the main account). Is there anyway I can set things so that it loads site2.com instead?

Thanks.
You can do this, just make site3.com's document root to be the same as Site2.com
Reply With Quote
  #74  
Old 02-28-2008, 12:56 PM
Undertaker #59 Undertaker #59 is offline
 
Join Date: May 2005
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you, I got it figured out. Had to put it back as an add-on domain and then specify the home directory to be site2.com/forums.
Reply With Quote
  #75  
Old 02-29-2008, 05:23 PM
mariocaz mariocaz is offline
 
Join Date: Feb 2008
Location: Mexico, D.F.
Posts: 424
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok my friend I parked my additional domains (foro-marino.com and acuariosdearrecife.com) in my Cpanel.

But the mod is not working yet, I rechecked the settings in the CP of this Mod and everything is fine.

And again the error appears in the top of the site if the mod is enabled.

Code:
Warning: preg_match() [function.preg-match]: Unknown modifier '/' in /global.php(237) : eval()'d code on line 10

Warning: preg_match() [function.preg-match]: Unknown modifier '/' in /global.php(237) : eval()'d code on line 19
you can see it if you go to www.foro-marino.com or www.acuariosdearrecife.com (Now the mod is disabled to avoid these errors)

And the other options to put domains are disabled and also don?t have URL sites there.

Any suggestion ?? or maybe I am doing something wrong ?

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

@Mariocaz - That all sounds correct... would you mind setting me up an admin account so I can have a look. I'll need admin perms to administer settings and plugins.

I have registered on your site with the same username as here, you can send me a PM there with details, although my account needs approval first I think.
Reply With Quote
  #77  
Old 03-01-2008, 06:56 PM
mariocaz mariocaz is offline
 
Join Date: Feb 2008
Location: Mexico, D.F.
Posts: 424
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok let me find you in my forum and send you the PM with all the details, thank you dartho.

You need to check the verification mail after your registration
Reply With Quote
  #78  
Old 03-01-2008, 10:30 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mario,
I can not send you a PM back here as you have the option disabled.


I also need Administrator access for "Can Administer Settings", "Can Administer Styles" and "Can Administer Plugins" before I can look at anything. You can enable these options from "Usergroups", "Administrator Permissions"

Also, my account is still inactive for the forums - I think you need to approve it first. The email I got after registering said

Quote:
Gracias por registrarte en All-Reefs. Nos da gusto que hayas elegido formar parte de nuestra comunidad acuariofilica y esperamos que disfrutes de ella.
Thanks
Reply With Quote
  #79  
Old 03-02-2008, 05:06 AM
mariocaz mariocaz is offline
 
Join Date: Feb 2008
Location: Mexico, D.F.
Posts: 424
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perfect my friend you have all that options enabled and also I can receive PM from you ok.

And your account was automatic activate when you registered.

Thank you again!
Reply With Quote
  #80  
Old 03-02-2008, 09:03 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All fixed. The errors you were getting were caused by including "http://" with the domain name.

There is also no need to include "www"

For example, "myforum.com" will match "myforum.com" "www.myforum.com" and "wap.myforum.org" - the leading http:// is just a protocol declaration and not a part pf the domain name.
Reply With Quote
  #81  
Old 03-02-2008, 04:49 PM
mariocaz mariocaz is offline
 
Join Date: Feb 2008
Location: Mexico, D.F.
Posts: 424
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes now is working awesome, thank you a lot for all your nice help!!

Mario
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 02:21 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.05062 seconds
  • Memory Usage 2,308KB
  • 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_code
  • (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