vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - DDDS - Different Domain Different Style (https://vborg.vbsupport.ru/showthread.php?t=151514)

dartho 07-05-2007 10:00 PM

DDDS - Different Domain Different Style
 
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

dartho 07-06-2007 01:08 PM

I was going to reserve this first post as it seems to be what everyone else does, but I didn't see the point...

iogames 07-06-2007 02:03 PM

Well this is perfect for my site, but don't you have a PM or IM cause I want t ask you some details...

Luky 07-06-2007 02:12 PM

Will this work for subdomains, eg. blue.mysite.com will give me a blue style and red.mystyle.com will give me a red style?

Alfa1 07-06-2007 02:21 PM

Very nice!!

ngocha85 07-06-2007 03:02 PM

Thanks. This is perfect for my site

dartho 07-06-2007 09:06 PM

@iogames - you can send me a PM via https://vborg.vbsupport.ru/private.p...newpm&u=110638
@Luky - yes, it will work like that

dartho 07-06-2007 10:33 PM

Just uploaded an additional new version which has support for 5 domains

projectego 07-07-2007 07:13 AM

/me clicks install

Hornstar 07-07-2007 08:16 AM

So if a domain is forwarded to another domain this will work for that domain as well? If so, that is pretty cool ^^

nice work either way.

Luky 07-07-2007 08:46 AM

* installs

dartho 07-07-2007 10:30 PM

Anyone who has installed the 5 domain version should upgrade (product-5_ddds_36.xml)!

Just re-install and choose YES to overwrite. There were some missing brackets in the code (bad copying/pasting on my behalf) which could cause issues.

Qwest 07-07-2007 11:23 PM

This is perfect if you have a network of forums that feed off the same DB. You can have multiple domains/forums.

Question though. isn't hat against VB license agreement?

da420 07-07-2007 11:42 PM

Quote:

Originally Posted by Qwest (Post 1285459)
This is perfect if you have a network of forums that feed off the same DB. You can have multiple domains/forums.

Question though. isn't hat against VB license agreement?

If you only have one license - Yes, it would be against their licensing agreement. If you have enough licenses to match each site on your 'network' - No, it is not against the license agreement.

dartho 07-08-2007 12:18 AM

having multiple domains parked on a single vb license is against the agreement, but I don't think the same applies to sub-domains.

If you do have multiple domains which you wish to park on the same forum - I suggest you use a 301 redirect (via .htaccess) - this way you won;t be in violation of license agreements. You could redirect to parked sub-domains and assign a different style using this hack.

Floris 07-08-2007 04:06 PM

You can point sub domains and domains to a real site.

But you will require a license for each domain that appears as a separate forum - including sub domains.

If you detect with a plugin if a user is coming from WAP via a domain you can load the main site with a certain style. This is the same forum, and therefor is fine.

If you detect with a plugin where a user is coming from and give it a separate navbar/header/footer/content and therefor it appears as a separate instance aside from the real forum it is considered another instance and does require a license.

If anybody has any doubts they can simply start a support ticket on vBcom and ask staff to look into their situation to make sure no license agreement is broken.

This post is just a 'for your information'. Not dishing the plugin :) I like the plugin, good work.

GrendelKhan{TSU 07-08-2007 05:19 PM

AWESOME!!
soooo gunna need this. :)

Quote:

Originally Posted by Floris (Post 1285915)
You can point sub domains and domains to a real site.

But you will require a license for each domain that appears as a separate forum - including sub domains.

If you detect with a plugin if a user is coming from WAP via a domain you can load the main site with a certain style. This is the same forum, and therefor is fine.

If you detect with a plugin where a user is coming from and give it a separate navbar/header/footer/content and therefor it appears as a separate instance aside from the real forum it is considered another instance and does require a license.

If anybody has any doubts they can simply start a support ticket on vBcom and ask staff to look into their situation to make sure no license agreement is broken.

This post is just a 'for your information'. Not dishing the plugin :) I like the plugin, good work.

so basically..if all the content (forums) is same, we're good? otherwise, wouldn't they just be considered different skins?

ie: I'm thinking of swithing my site's domain, but 301 forwarding my "old" domain to it...but with a different skin (perhaps for a SUBforum or even subdomain). so everything is the same content wise except the skin and perhaps what the landing page is (ie... maybe go directly to a sub-forum).

is that ok under one license?

dartho 07-08-2007 09:50 PM

Thanks for the feedback Floris, but I think you may be reading too much into the license agreement..

Code:

vBulletin license grants you the right to run one
instance (a single installation) of the Software on one
web server and one web site for each license purchased.
Each license may  power one instance of the Software
 on one domain. For each installed instance of the
 Software, a separate license is required. Modifications
 to the Software or database to circumvent the
one-license-one-board rule are prohibited.

Based on the wording of the license agreement, sub-domains are fine - no matter what you do with the style. There's no mention of "appearing as a seperate instance". The basics appear to be: One License, One Instance/Installation, One Domain. A domain includes sub-domains, thats one of the many things that makes a domain a domain.

With a vanilla vBulletin install, you can already assign different theme's to different forums within your board. vbSEO maps forum names to subdirectory names - I'm suprised subdomains have not yet become part of vbSEO also, subdomains are quite an effective way of optomising your 'crawlability'

I'm going to check with vBulletin and point them to this thread to clarify.

dartho 07-08-2007 11:19 PM

Confirmed with vBulletin.com - it is OK to point sub-domains at your main forum also

iogames 07-10-2007 12:56 AM

Quote:

Originally Posted by dartho (Post 1286240)
Confirmed with vBulletin.com - it is OK to point sub-domains at your main forum also

Ok...

iogames 08-06-2007 02:10 AM

Getting better? ;)

vspro 08-06-2007 08:55 AM

can it may Different language ??

dartho 08-06-2007 09:17 AM

Yes, the AdminCP interface is all phrased.

There are no end user screens, so if the admin can read english it will be OK for all Languages. You are welcome to translate and I can post the different language version in this thread also.

Ryuk 08-06-2007 11:54 AM

perfect, thanks dartho!
*clicks install*

vspro 08-16-2007 11:35 AM

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

dartho 08-16-2007 11:54 AM

I think that will happen with the mod enabled, but no URL specified...

vspro 08-16-2007 03:51 PM

may i different domain point to small forum
ex :
sub.domain.com point to domain.com/forumdisplay.php?f=100
and it show as : sub.domain.com/index.php

dartho 08-16-2007 09:06 PM

no, this can only change the style based on the domain visited.

What you suggest may be possible (and is a great idea) - but I think it would get too complex for someone like when when it comes to displaying threads/posts with in a forum

CraiovaOnLine 08-22-2007 06:03 PM

can u do something like: different domains, diffrent logo ?
pleasee:)

dartho 08-22-2007 09:26 PM

Yes - just create a new style (as a child of your existing one) and give it a different logo..

CraiovaOnLine 08-23-2007 08:29 PM

Quote:

Originally Posted by dartho (Post 1323504)
Yes - just create a new style (as a child of your existing one) and give it a different logo..

Ok. I tried. Only if there is a problem.
The forum changes.
Take a look at the right side. It is bigger.
And this just for the ddds1, 2, 3 .. or 6!
The original style looks fine!

I'm using vb 3.6.5.
I know that the mod. is for 3.6.8 but..can you help me please?
Thanks!

//later
I just saw when trying to acces a forum this error:
Unable to add cookies, header already sent.
File: /home/craiova/public_html/global.php(241) : eval()'d code
Line: 12

dartho 08-24-2007 03:59 AM

@CraiovaOnline - The alignment issue would be to do with how you modified the style rather than DDDS.

As for the error - make sure that all non used redirects are disabled, and that the enabled one has a URL.

I've sent you a PM.

dartho 08-24-2007 11:00 PM

@CraiovaOnline - you were right! HTML comments in appear to have been interfering with the display, unsure why, but I have removed the commenst and released a new version. Tjis only affected the 5 domain version, tested and should be good now!

Thanks for the help/input Craiova

iogames 08-24-2007 11:03 PM

still improving! ;)

ForYou 09-12-2007 04:13 AM

Hello ,

I was install this hack and it is very very good hack , but this is just work when members login to my forum , mean when they login by the user name and password , but if still guest they will see the defaullt style ,

is there away to let unregisterd users see what i need Style ID ,

Regards

dartho 09-12-2007 05:28 AM

it should make no difference whether they are registered or not. May I have your site URL (both domains) to check? Thanks

Rebecca217 09-12-2007 11:30 AM

Beautiful! Thank you! :)

Rebecca

Kohhal 09-26-2007 12:40 PM

Great hack, have a question.

I want my domain mysite.mobi to go to my new style on the forum page rather than my homepage ie. mysite.com/forum rather than mysite.com : how can I do this easiest? Can it be in the DNS maybe, a redirect or someplace else?

dartho 09-26-2007 01:14 PM

In your mysite.mobi style you could modify the template of your home page to redirect to your forum page...

also modifiy the navbar/links so that links to home go to your forum page rather than your home page.

I'm assuming you have a mobile skin/style for teh .mobi and a standard skin/style for your .com ?

steveninstl 09-26-2007 02:36 PM

question...

If you are using a .mobi domain..Are your users that use the .mobi domain browsing via mobile device?


All times are GMT. The time now is 04:27 PM.

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.01295 seconds
  • Memory Usage 1,819KB
  • 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)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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