PDA

View Full Version : Miscellaneous Hacks - Facades Resurrection - Run multiple unique sites with one VB database (BETA) (3.7-4)


BirdOPrey5
09-24-2010, 10:00 PM
This mod is being released AS IS...

The original mod was moved to the Graveyard. I suggest you read up on it here:
https://vborg.vbsupport.ru/showthread.php?t=229858

I did not program this mod and can not provide any support.

The original coder was: ibautocommunity

He marked this as "resuable code" so I have re-uploaded it so someone might find this and further develop it.

If you can develop this please include credit to the original author- I didn't change anything but the version number and thread URL so I need no credit.

Please release updates on vBulletin.org for the benefit of the community.

Thank You.

PS. According to vBulletin you MUST have a separate license for each domain with unique content so this mod does not allow you to make multiple sites for free.

Use at your own risk. I do not even have this installed on my own site but it has been reported to work with 3.7.x, 3.8.x and 4.0.x versions... Make sure you make backups before testing on a live site.

This info was from the original post when this mod was released:

NOTES:
We didn't have any plans to ever release this product; but lots of people expressed interest in having this feature. We are releasing the product as is, it's very basic but has proven to work rather well on vB 3.8 and also happens to work on 4.0. We do not have plans to expand this product or continue development - we do encourage anyone interested to use the code to continue developing the product. For example, it does not currently provide any support for displaying different CMS based on the domain settings, but that could be a pretty cool feature! Sorry, but no support will be provided for this product; this is ideal for all the do-it-yourselfers on vB.org and may not be the best product for the beginners!

What this product does:
This product will allow you to use 1 vBulletin installation and admin control panel for what will look like "different" vBulletin forums and domains. For example, domain-x.com has it's own style + forum categories; domain-y.com also has it's own style + forum categories; but they use the same vBulletin installation and control panel. It also has options to customize vBAdvanced (if you have it) and limit the search results to the specific domain.

What this product does NOT do:
This product will not allow you to get around vBulletin licensing; you will need a separate license for each domain.

How does this work?
The product detects custom domains and sub-domains; once detected, it shows a predefined style and forumid range to the users. This makes it look like you have two or more different vBulletin sites.

INSTALL AND CONFIG:
* Please note that you will have to already have the hosts configured before adding them into the configuration in vBulletin. Talk to your web-hosting provider to make sure your new domains and sub-domains actually resolve and work.
Install XML in product manager
Go to vB Options or vB Settings and find IB Facades options
Read examples and basic instructions in the option screen

LICENSE AND LEGAL INFO
Product License & Liability Disclaimer
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Copyright (c) 2009, InternetBrands, llc.
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:


Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

Neither the name of "InternetBrands, llc" nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

Licensed vBulletin customers are free to share, copy, distribute and transmit product code.

Licensed vBulletin customers are free to remix and adapt product code.

Under the following conditions, the name of the author may not be used to endorse or promote products derived from this software without specific prior written permission.


As you can see this mod was originally released by Internet Brands.

BirdOPrey5
09-25-2010, 08:24 PM
Reserved

Manoel J?nior
09-25-2010, 09:28 PM
Demo please!

BirdOPrey5
09-25-2010, 10:49 PM
Demo please!

I can't demo because as mentioned I don't have this installed on a publicly viewable install. There were a couple of demos mentioned in the original thread which I linked too, but I don't know if they are still using it or not.

soundbarrierpro
09-25-2010, 11:06 PM
Would this be a good idea? If you've got several "unique" sites which all rely on one DB, and that db takes a dump, you don't lose one site. You lose several. That is of course unless it's salvageable.

Just playing devils advocate in one of those, "worse case scenarios".

BirdOPrey5
09-25-2010, 11:13 PM
Would this be a good idea? If you've got several "unique" sites which all rely on one DB, and that db takes a dump, you don't lose one site. You lose several. That is of course unless it's salvageable.

Just playing devils advocate in one of those, "worse case scenarios".

If you're properly backing up your database you should NEVER lose anything but up to the last backup which should be less than 24 hours of data...

The benefits of a single membership database, single install from which to administer and install mods and such would outweigh the chance of a major disaster IMO...several sites out there work like this now but they don't use this particular mod (or if they do they don't admit it.)

In its current state this mod might not be ready for prime time but it's a really good start.

goblues
09-26-2010, 08:28 PM
Does anyone know why this was moved to the graveyard in the first place? Security issues, support issues, etc?

Eduardo Leon
09-26-2010, 09:09 PM
well as i see this's in BETA stage . and have some troubles .

in my opinion is done and i try to run this in one server - "private"

BirdOPrey5
09-26-2010, 09:23 PM
Does anyone know why this was moved to the graveyard in the first place? Security issues, support issues, etc?

We had a discussion about this on vbulletin.com, I was told by other users it was probably at the request of the author- there wasn't any known security exploit or major error- it seems like Internet Brands simply decided for whatever reasons they no longer wanted to further develop this mod. Because it is so unique I (and others) felt it would be of service to the community to re-release it in hopes it might spur further development.

we_are_borg
09-28-2010, 04:00 AM
Would this be a good idea? If you've got several "unique" sites which all rely on one DB, and that db takes a dump, you don't lose one site. You lose several. That is of course unless it's salvageable.

Just playing devils advocate in one of those, "worse case scenarios".

A few words backup, backup then setup an test enviroment where you can test it out never do this live.

BirdOPrey5
09-28-2010, 05:18 AM
The original author reported on vb,com today that he is working on a new version of this mod for vb 4.0.x. No estimate given on the release though.

benstillman
10-05-2010, 12:04 AM
I would rock the hell out of this.

Brandon Sheley
10-08-2010, 04:36 PM
thanks for posting this again
* Brandon Sheley grabs a copy before it's gone :)

sticky
10-10-2010, 08:20 AM
The demand is insane for this.

Thanks for posting it, this is exactly what is needed to spur further development. Isn't there anyone talented enough in the community to develop this?

This is my dream mod, I won't give up hope. VB 3 sites have run this successfully somehow.

Alfa1
10-10-2010, 12:22 PM
I would love to read some experiences with installing and running this hack.

Frank T
10-11-2010, 08:21 PM
This is a very interesting approach. Thanks Sticky for pointing it out.

It's definitely different than the other approaches I've reviewed. I think this approach has many advantages -- as it doesn't require you to bifercate your database and hack all of your PHP files. It also has some disadvantages -- as it shares all of your same plug-ins. I'm not sure that's a good thing.

I'm looking at the code, and I'm not sure this will work with friendly URL's or vbSEO. Maybe I'll run some experiments on this tonight.

Shenanigans
11-04-2010, 07:20 PM
Updates? I am very interested, however unable to test. I will wait patiently on the tests others are running. =)

sub_ubi
11-08-2010, 05:33 PM
Very Interested

merk_aus
11-14-2010, 07:56 AM
For a demo I have this on my site: http://www.webmasters-resort.com you will see a drop down at the top of the page where you can browse through and click on other sites which are all "linked" to the one database.

This modification was originally used to get things started however a number of updates and changes to the codes have been used in order to work out some small issues but they have now been resolved and working fine.

As you can see (if you go to the demo I posted above) the forums relating to the boards are all unique per domain name, however things like introductions, and general discussions are shared among all websites.

The important thing for this is to ensure that you have a license for each board you wish to run otherwise you will be going against the terms and conditions and your "network" will be illegal.

Alfa1
11-14-2010, 09:22 PM
This modification was originally used to get things started however a number of updates and changes to the codes have been used in order to work out some small issues but they have now been resolved and working fine.
Could you please share your version that includes the updates and code changes?
I am much in need of this and it looks like its running well on your forums.
What limitations does your version currently have?

merk_aus
11-17-2010, 01:20 AM
My version was having a search issue eg: when you go to members profile and click Find Posts started by [user] etc however we are in the middle of fixing up the code and hope to have it done tonight and then we will be testing it on the site.

Check out http://www.webmasters-resort.com to begin with, two of our boards (Sportainment and Sports Force) are offline while we change some things but it will show you how these things are working etc.

TNCclubman
11-17-2010, 01:33 AM
is this mod so you can share users across multiple vbulletin sites?

BirdOPrey5
11-17-2010, 02:04 AM
Yes... 1 user database over multiple forums- but you need to buy a separate license for each forum you run- even though it's only 1 install.

BirdOPrey5
11-26-2010, 02:57 PM
VB4 users check out this mod: https://vborg.vbsupport.ru/showthread.php?t=254197

Alfa1
11-30-2010, 09:54 PM
I'm getting this error after installation:
Warning: Invalid argument supplied for foreach() in [path]/modules/recentthreads.php(315) : eval()'d code on line 20
My settings are:
[my-forum.com]|bburl=my-forum.com/forum|homeurl=my-forum.com|catids=13,56,335,3,9,46,14|styleid=1|


Does anyone have a clue?

I have over 400 forums. Do I need to enter all forumids in the catid array or only the main category forumids?

TheLastSuperman
12-01-2010, 05:09 PM
We had a discussion about this on vbulletin.com, I was told by other users it was probably at the request of the author- there wasn't any known security exploit or major error- it seems like Internet Brands simply decided for whatever reasons they no longer wanted to further develop this mod. Because it is so unique I (and others) felt it would be of service to the community to re-release it in hopes it might spur further development.

Yes and no, he did state it was to improve it and they did just that for 4.x here: https://vborg.vbsupport.ru/showthread.php?t=254197

Many of us had a copy from the first release that does not mean since it said re-usable code that I or anyone else would simply upload it (besides you apparently) without making changes and adding in features due to the reason it was removed and how it was specifically stated it would be revised and re-released for 4.x. On top of that, imo you don't have the ability to properly support or add new features for 3.x - If I'm wrong please correct me.

Edit: I was wrong about Joe I must admit, he is offering support for this to the best of his ability imo and also helping out moreso in the Cerebrus thread too so my sincere apologies for jumping the gun Joe!

BirdOPrey5
12-01-2010, 06:22 PM
Yes and no, he did state it was to improve it and they did just that for 4.x here: https://vborg.vbsupport.ru/showthread.php?t=254197

Many of us had a copy from the first release that does not mean since it said re-usable code that I or anyone else would simply upload it (besides you apparently) without making changes and adding in features due to the reason it was removed and how it was specifically stated it would be revised and re-released for 4.x. On top of that, imo you don't have the ability to properly support or add new features for 3.x - If I'm wrong please correct me.

1- Reusable code means yes I can reupload since the original mod is down...
2- I confirmed the above with vb.org staff beforehand
3- I did make minor changes
4- Many mods here are marked unsupported... even more are marked supported but aren't...
5- I could add some features if I thought it would be of value, within reason.

:) Why would you want to deny this mod to all the people interested?

TheLastSuperman
12-01-2010, 07:05 PM
1- Reusable code means yes I can reupload since the original mod is down...
2- I confirmed the above with vb.org staff beforehand
3- I did make minor changes
4- Many mods here are marked unsupported... even more are marked supported but aren't...
5- I could add some features if I thought it would be of value, within reason.

:) Why would you want to deny this mod to all the people interested?

That's not how I intended my words to be interpreted...

I looked through this code... is there any reason it wouldn't work on 3.8? It installed fine but I don't have other domains to test this yet.

Thanks, that's what I'm thinking too... If I can ever test it on 3.8 I'll let you know.

FYI while it does install on 3.8 it causes a fatal error on the login/logout screen due to some 4.0 php code (VB Class?) so it will need SOME edit to work on 3.8.x.

^ I mean based on your comments and current modification releases I simply don't see how your qualified to post this, agreed that your offering no support same as the 4.x version however your in her doing so with simple things so that tells me you don't grasp what's going on in the entire modification your only answering what suites you and then will fall back on "Not supported" or offer an excuse if someone posts a pertinent question imo. I hate to say it but I suspect your a script kiddie - hey I could be wrong as many have assumed that by my low class mod releases until they have a custom product coded and installed on their site so again maybe I'm wrong however when you state a ? mark after vB Class above and you mention in another post how you make it a point to state your a "Coder/Designer" on vb.org with the quality of your releases it makes me wonder, honestly it does in a professional sense and why I worded it "softly" to begin with, sorry to drag it out in the open further but I do not want to deny anyone I simply believe everyone deserves better.

As I said, if I'm wrong feel free to correct me, I've been guilty of foot --> in mouth before we're all human.

BirdOPrey5
12-01-2010, 08:52 PM
I'm not qualified to post this? Really? Maybe you could point me to the test I need to take before I have your blessing to post things?

Seriously... What does it say in my initial post... let me paste it here:


I did not program this mod and can not provide any support.

...

He marked this as "resuable code" so I have re-uploaded it so someone might find this and further develop it.

If you can develop this please include credit to the original author- I didn't change anything but the version number and thread URL so I need no credit.


Nothing would make me happier than a better coder than I take over this mod and post it here for the community to enjoy. Besides the "re-usable code" I give explicit permission- nay, explicit encouragement for someone to further develop this mod.

I didn't post this for any other reason then to energize interest in development of this mod. Who knows who might come across this and get that coder's "itch" to take it and run with it.

I just don't get your anger over why this was posted- are you mad you didn't think to post it so now you're not getting credit for the 7 "marked as installed" credits? Because if you want to post it and offer your expert support in your own thread, please do, I will even post a link to it in the top post here directing people to your thread.

I've never heard the term "Script Kiddie" but I can deduce it's a derogatory name more advanced programmers give to those not so advanced... so I guess I am...

hey I could be wrong as many have assumed that by my low class mod releases until they have a custom product coded and installed on their site so again maybe I'm wrong however when you state a ? mark after vB Class above and you mention in another post how you make it a point to state your a "Coder/Designer" on vb.org with the quality of your releases it makes me wonder, honestly it does in a professional sense and why I worded it "softly" to begin with, sorry to drag it out in the open further but I do not want to deny anyone I simply believe everyone deserves better.

I don't know where I stack up in the scheme of things in terms of my vbulletin coding abilities- I'm a self admitted jack of all trades and master of none. Does this put me in the top 50% of coders here or the top 90%, I don't know, I don't usually get into d!ck measuring contests, frankly I know I'll lose. All I know is every week I help many people on this forum, I get lots of thank yous in posts and PMs and I know me being here has helped a large number of people use and enjoy their forums better than had I not been here- and that's all the thanks I need- although the occasional donation is appreciated.

I really have no idea about the VB Class error in question because it's a result of vBulletin 4.x code and I currently have _zero_ desire to learn or support vB4 besides the occasional porting of my own mods.

The reference to being a "Coder/Designer on vb.org" was a joke in another thread. I really don't know who decides who is a Member, Contributor, Coder, Designer, or Coder/Designer... I released a couple of BB Codes and gave some basic PHP help, then I made some graphics to help someone else and I login one day to see I've now been deemed a Coder/Designer... I found it funny at the time... Since then though I have released real mods, template edits, and the like so I guess I grew into it.

What is wrong with the quality of my releases? How have they failed to meet your superior standards?

I'm not a professional coder, I don't claim to be- I don't read journal articles on the pros and cons of new search algorithms. When I make a mod I have Google working overtime searching this site and php.net and anywhere else I can find answers. I'm sorry if you think that doesn't qualify me to release products on this site, but the ~480 installs I do have marked on legitimate mods I'm sure would disagree with you.

I guess you can't please everyone...

Alfa1
12-01-2010, 08:57 PM
If BirdOPrey wouldn't have posted it here, it would not be around. He checked with the staff and with the author. Where is the problem?

Would it be better if a developer with higher qualifications takes this over and support it? Sure.
Are you nominating yourself Superman?

TheLastSuperman
12-01-2010, 10:17 PM
I'm not qualified to post this? Really? Maybe you could point me to the test I need to take before I have your blessing to post things?

Seriously... What does it say in my initial post... let me paste it here:



Nothing would make me happier than a better coder than I take over this mod and post it here for the community to enjoy. Besides the "re-usable code" I give explicit permission- nay, explicit encouragement for someone to further develop this mod.

I didn't post this for any other reason then to energize interest in development of this mod. Who knows who might come across this and get that coder's "itch" to take it and run with it.

I just don't get your anger over why this was posted- are you mad you didn't think to post it so now you're not getting credit for the 7 "marked as installed" credits? Because if you want to post it and offer your expert support in your own thread, please do, I will even post a link to it in the top post here directing people to your thread.

I've never heard the term "Script Kiddie" but I can deduce it's a derogatory name more advanced programmers give to those not so advanced... so I guess I am...



I don't know where I stack up in the scheme of things in terms of my vbulletin coding abilities- I'm a self admitted jack of all trades and master of none. Does this put me in the top 50% of coders here or the top 90%, I don't know, I don't usually get into d!ck measuring contests, frankly I know I'll lose. All I know is every week I help many people on this forum, I get lots of thank yous in posts and PMs and I know me being here has helped a large number of people use and enjoy their forums better than had I not been here- and that's all the thanks I need- although the occasional donation is appreciated.

I really have no idea about the VB Class error in question because it's a result of vBulletin 4.x code and I currently have _zero_ desire to learn or support vB4 besides the occasional porting of my own mods.

The reference to being a "Coder/Designer on vb.org" was a joke in another thread. I really don't know who decides who is a Member, Contributor, Coder, Designer, or Coder/Designer... I released a couple of BB Codes and gave some basic PHP help, then I made some graphics to help someone else and I login one day to see I've now been deemed a Coder/Designer... I found it funny at the time... Since then though I have released real mods, template edits, and the like so I guess I grew into it.

What is wrong with the quality of my releases? How have they failed to meet your superior standards?

I'm not a professional coder, I don't claim to be- I don't read journal articles on the pros and cons of new search algorithms. When I make a mod I have Google working overtime searching this site and php.net and anywhere else I can find answers. I'm sorry if you think that doesn't qualify me to release products on this site, but the ~480 installs I do have marked on legitimate mods I'm sure would disagree with you.

I guess you can't please everyone...

Well that's a known fact (pleasing everyone lol) and realize by my statement below to Alfa in terms of how I meant things following your read here. In short they are just a bunch of template edits, if your not interested in learning vB4 then why browse the 4 mod releases and take code you admitted just now to knowing and caring little about and try to convert for 3.x with a unsupported flag waving around above your head then offer support?

If BirdOPrey wouldn't have posted it here, it would not be around. He checked with the staff and with the author. Where is the problem?

Would it be better if a developer with higher qualifications takes this over and support it? Sure.
Are you nominating yourself Superman?

Alfa,

Not saying some of the things he is implying and simply pointing out the obvious on a few key subjects many people here overlook daily... why install something re-released by someone with less experience than the original developer? It's silly to do things like that, it's too often I run across contradictory statements by others that make me question their capabilities, motives, and other... It's bad enough we have had others blatantly release mods without permission, now we have those with less ability with the original author re-releasing, all I'm saying is that should not be allowed and it's asking for trouble. Is it a rule? No, should it be? IMO yes, will that change? Perhaps or perhaps not that is not my call however as I have seen with many here before me including staff it's also perfectly fine to speak your mind within reason so I'm not going to come back here and post again and derail the thread in the least but I will always maintain my position of not touching a free modification released in this manner and I urge others to do the same, be careful what you install from who and do your homework before installing a modification.

I'm certainly not nominating myself as I have a business to run and three children to make laugh on a daily basis - my support is on my own time and terms, not at the discretion of others who assume that by speaking my mind I'm some sort of righteous guru in the least and that by such assumptions they also assume I should defend myself, well I have but to what point? It's so simple, I before becoming "In the know" simply knew it was not my place to release something I was not 100% familiar with supported or not, I've always been fortunate to realize my current skill level and only offer what I know, others simply p*ss in the wind and hope to stay dry while counting money or installs, if it had anything to do with 480+ installs proving anything contradictory to my statement as noted above then we could continue with this but sadly I must now exit this conversation before it becomes a thread blown completely out of proportion with two who don't understand why I say these things ;).

Edit: I realize a lot of things. I see the post below but it still falls back to imo, I can speak my mind and still don't agree with it being released this way whether Anders was happy or not, you decided to poke and prod, I initially only poked. I understand you don't get me at all, that's been evident from your ramblings about a measurement contest above and 480+ installs. - Just to be clear, I want others to have what they "want" and no doubt there will be many who use this, comment in the thread just like Alfa but that was never my point, it's how you released it, permission or not that simply does not sit well with me.

BirdOPrey5
12-01-2010, 10:59 PM
Well that's a known fact (pleasing everyone lol) and realize by my statement below to Alfa in terms of how I meant things following your read here. In short they are just a bunch of template edits, if your not interested in learning vB4 then why browse the 4 mod releases and take code you admitted just now to knowing and caring little about and try to convert for 3.x with a unsupported flag waving around above your head then offer support?


"Jjust" template edits? You realize it's more efficient to make a template edit than a mod, right? You understand that directly editing a template brings better performance than making a PHP plugin which in turn injects HTML or evaluates yet another template, right? So all things equal a template edit to do X is better than a mod to do X... yeah it might not be easier for the admin but it's better for performance... so maybe you will rethink the expression "just a template edit." Also I did recently release my first "real" mod (AKA product installable mod) and will be releasing another one shortly.

I didn't take the VB4 code for this mod, this was a 3.8 mod and the 4.0 mod improves upon it and in doing so it loses 3.x compatibility. I was just curious if the mod would work on 3.8... I don't ever even browse the 4.0 forums usually, but I saw it specifically linked from a thread I was active in on vb.com so it caught my interest. I'm very interested in seeing this mod further developed... if it means someone develops it on 4.x then so be it- maybe someone will come along and downgrade it to 3,x later on. I'm just covering all my bases.

Support flag waving? So you're mad I'm offering support even though it's unsupported? I don't get you at all... I haven't even offered any real support- I just answer questions I think I may know the answer to, no matter who the thread is by or what the mod is marked.

The bottom line is if I didn't release this mod no one would have and a lot of people who otherwise would have had access to it would have missed out. ALSO the original author of this mod was HAPPY to see it re-released. To be quite frank there are forces involved here you don't understand, but you shouldn't need to understand them- you should see this and be happy.

Instead you make the "good" the enemy of the "perfect."

BirdOPrey5
12-01-2010, 11:11 PM
Listen I don't want to argue... I use my own forum for arguing.. I see you said you want out of this conversation... fine.. let's just agree to disagree on this... You don't think I should have released this mod, I do, and I did, so it's done. Lets go on our merry ways...

TheLastSuperman
12-01-2010, 11:38 PM
Listen I don't want to argue... I use my own forum for arguing.. I see you said you want out of this conversation... fine.. let's just agree to disagree on this... You don't think I should have released this mod, I do, and I did, so it's done. Lets go on our merry ways...

Agreed, not my style to derail a thread and no sense saying we won't cross paths in the future on a subject we both agree on :D, we simply don't see eye to eye on this subject as you said ;). Enjoy the rest of your night, I'm off to give the kids a bath myself Mr. Bubble anyone?

Anatole
03-05-2011, 07:27 AM
Any news regarding the further development?

BirdOPrey5
03-05-2011, 11:36 AM
Any news regarding the further development?

It's unlikely there will be any further development of this mod, especially for 3.8. The 4.x version is here. (https://vborg.vbsupport.ru/showthread.php?t=254197)

Amenadiel
03-06-2011, 12:49 PM
I'm using my own version of Facades in 4 forums. I haven't seen this mod's code, instead I use just three plugins.

One for global_start (overruling config.php data depending on the host I'm being visite from)
One for style fetch (forcing a style depending on the host, redirecting if someone tries to visit a thread or forum that belongs to another host)
One for cache_preordered_forums (hiding subforums not belonging to current domain).

You can see the result at

http://www.chw.net/foro/
http://www.mobilecloseup.com/foro/
http://www.niubie.com/foro/
http://www.fayerwayer.com/foro/


That's for the basic stuff. I've had to perform little tweaks to add some extra functionality, like forcing the same avatar and signature on every domain (NFS mounting of those folders), disabling vbseo for domains other than the main (I just couldn't make it work and I'm not installing a nulled to try otherwise) and tinkering with the sitemap plugin to exclude different subforums depending of the host from which it's being ran.

EddyMaxx
03-06-2011, 01:09 PM
Thanks for posting this Joe. You're the man!!!

BirdOPrey5
03-06-2011, 03:27 PM
I'm using my own version of Facades in 4 forums. I haven't seen this mod's code, instead I use just three plugins.

One for global_start (overruling config.php data depending on the host I'm being visite from)
One for style fetch (forcing a style depending on the host, redirecting if someone tries to visit a thread or forum that belongs to another host)
One for cache_preordered_forums (hiding subforums not belonging to current domain).

You can see the result at
....

If I read what you're saying, you mention different hosts... does this mean each domain has it's own database? If so that's very different then what this mod does. There is a lot of demand for stuff like this, you should consider releasing your code either way- you'd be a hero to many. :D

Thanks for posting this Joe. You're the man!!!

No prob but once again I didn't make nor do I support this mod. All praise goes to the original developer.

Amenadiel
03-07-2011, 07:50 PM
If I read what you're saying, you mention different hosts... does this mean each domain has it's own database? If so that's very different then what this mod does. There is a lot of demand for stuff like this, you should consider releasing your code either way- you'd be a hero to many. :D

Just one DB, the config.php file is the same, but I overwrite some settings in a global_start plugin (bb title, main site adress) and yes, I have 4 licences (as if 3.8 licences were worth something these days). Also, the 4 of them update from the same svn repo. This is just in order to keep every mod syncd.

The problem with releasing this as a product is I lack experience to do that. Most of the code is in the plugins and some conditionals on the templates. In those plugins my 4 hosts are hard coded.

The style for each host and the redirection if you're in the wrong domain (plugin in style_fetch hook)


$domain=$_SERVER['HTTP_HOST'];
$uri=$_SERVER['REQUEST_URI'];
$arrayfw=array(114, 5,10,224,52,51,115);
$arraychw=array(13,3,4,152,8,9,11,36,20,7,15,199,2 21);
$arraynb=array(6,120,381,81,237);
$arraymcu=array(273, 270,272,274,275,295, 321,317);

if (in_array($forumid, $arrayfw) || in_array($foruminfo['parentid'], $arrayfw)) {
if ($domain!='www.fayerwayer.com') header("Location: http://www.chw.net$uri",TRUE,301);
} else if (in_array($forumid, $arraynb) || in_array($foruminfo['parentid'],$arraynb)) {
if ($domain!='www.niubie.com') header("Location: http://www.niubie.com$uri",TRUE,301);
} else if ( in_array($forumid, $arraychw) || in_array($foruminfo['parentid'],$arraychw)) {
if ($domain!='www.chw.net') header("Location: http://www.chw.net$uri",TRUE,301);
} else if ( in_array($forumid, $arraymcu) || in_array($foruminfo['parentid'],$arraymcu)) ) {
if ($domain!='www.mobilecloseup.com') header("Location: http://www.mobilecloseup.com$uri",TRUE,301);
}


switch ($_SERVER['HTTP_HOST']) {
case 'www.fayerwayer.com':
$styleid=87;
break;
case 'www.niubie.com':
$styleid=89;
break;
case 'www.chw.net':
$styleid=81;
break;
case 'www.mobilecloseup.com':
$styleid=88;
break;
}

Which forum is shown in each host: a plugin in the cache_ordered_forums hook:

if (THIS_SCRIPT=='index') {

switch ($_SERVER['HTTP_HOST']) {
case 'www.fayerwayer.com':
$excludeforumid=array(6,10,13,3,4,152,8,9,11,36,20 ,7,15,199,221,263,259,248,242,273, 270,272,274,275,295, 321);
break;

case 'www.niubie.com':
$excludeforumid=array(5,114,10,13,3,4,152,8,9,11,3 6,20,7,15,199,221,224,273, 270,272,274,275,295, 321);
break;

case 'www.chw.net':
$excludeforumid=array(263,248,242,273, 274,275, 321);
break;

case 'www.mobilecloseup.com':
$excludeforumid=array(5,6,114,10,13,3,4,152,8,9,11 ,36,20,7,15,199,221,224,263,259,248,242);
break;
}
foreach ($excludeforumid AS $forumid)
{
$vbulletin->forumcache["$forumid"]['displayorder'] = 0;
}

}


and a change in config to display the right title and url (global_start hook)

switch ($_SERVER['HTTP_HOST']) {
case 'www.fayerwayer.com':
$vbulletin->options['homeurl']='http://www.fayerwayer.com/';
$vbulletin->options['hometitle']='FayerWayer';
$vbulletin->options['bburl']='http://www.fayerwayer.com/foro';
$vbulletin->options['bbtitle']='FW Foros';
break;
case 'www.niubie.com':
$vbulletin->options['homeurl']='http://www.niubie.com/';
$vbulletin->options['hometitle']='Niubie';
$vbulletin->options['bburl']='http://www.niubie.com/foro';
$vbulletin->options['bbtitle']='Niubie Foros';
break;
case 'www.mobilecloseup.com':
$vbulletin->options['homeurl']='http://www.wayerless.com/';
$vbulletin->options['hometitle']='Wayerless';
$vbulletin->options['bburl']='http://www.mobilecloseup.com/foro';
$vbulletin->options['bbtitle']='MobileCloseUp Foros';
break;

}
(I don't need to change anything for chw.net since it uses the default config.php values)
And that's pretty much everything.

BirdOPrey5
03-08-2011, 10:39 AM
very cool :up:

basketmen
08-16-2011, 09:43 AM
hi guys, i see some people using vbseo with this mod and not working

i already ask about this in vbseo forum http://www.vbseo.com/f77/multi-domain-license-48920/#post317129

can anyone tried and confirm this mod with multi license vbseo

BirdOPrey5
08-16-2011, 09:55 AM
It would appear this mod would need to be modified to add an option for a VBSEO licence for each domain- but since I don't have VBSEO I can't help with that.

basketmen
08-23-2011, 08:43 PM
I have basic question, not related to above vbseo :

to add the additional domains, you guys using cPanel >> Parked domains, right?

or do you use another way?

BirdOPrey5
08-23-2011, 10:07 PM
I used parked domains.

prandah
10-22-2011, 09:29 AM
i have downloaded
but the url link on forum
like showthread and forumdisplay till shown main ip
any advice ?

BirdOPrey5
10-22-2011, 10:04 AM
"main ip" ? Both (or all) sites need to be on the same server so their IP addresses would be the same.... you need to "park" additional domains on your main account.

However under normal use you shouldn't have to worry about- or see- the IP address.

prandah
10-22-2011, 10:15 AM
no i'm sorry i mean main domain :)

BirdOPrey5
10-22-2011, 05:25 PM
Are these sites accessible? (Can you post a links?)

prandah
10-22-2011, 07:28 PM
hello i have send pm you :D
i'm sorry i send my link via pm

prandah
10-22-2011, 07:47 PM
hello, its work
i change some seting on vbseo :D
thanks

BirdOPrey5
10-22-2011, 07:58 PM
good good :up:

Amenadiel
10-23-2011, 12:57 AM
Prandha: if you are running vbseo you might have the setting "Include Domain Name in URLs?" set to yes, in which case the main url will show up in internal links.

It's also possible that you're using a custom skin which explicitly puts the forum bburl before some links. I haven't seen such a skin, but it's theoretically possible.

prandah
10-23-2011, 07:38 AM
yes before Include Domain Name in URLs?" set to yes
but now i set it to No, so it's work :D

btw i didnt use facades now, i edit my webserver. so i can run multiple domain without this hack :D

Stakerscorner
11-24-2011, 03:01 AM
Listen I don't want to argue... I use my own forum for arguing.. I see you said you want out of this conversation... fine.. let's just agree to disagree on this... You don't think I should have released this mod, I do, and I did, so it's done. Lets go on our merry ways...

Thank you very much for re opening this mod

I have Vb3.8 and are very great full you dug it back up

:)

Stakerscorner
11-24-2011, 08:08 AM
How does this work?
The product detects custom domains and sub-domains; once detected, it shows a predefined style and forumid range to the users. This makes it look like you have two or more different vBulletin sites.

I would like to make 2 or more forums using sub domains

I have uploaded mod

but cannot seem to get a sub forum up

i would like to have different modules and boards on each sub domain , is this possible

any help would be great

Lou

Nirjonadda
10-19-2014, 02:27 PM
Please can you make it for vB 4.2.3 ?

Amenadiel
10-20-2014, 09:39 AM
I believe you can use Cerberus (https://vborg.vbsupport.ru/showthread.php?t=254197) in nearly the same way one would use Facades.