Multidomain SMF forum

Started by Pedja, May 15, 2007, 11:34:41 AM

Previous topic - Next topic

perplexed

that got rid of the error but I still can't get this to mirror on the other two domains

I give up :(

SleePy

Well it will only do it if the domain is correct.
Do not put a path to the forum in the domain list. The domain list contains just the domains and then the code checks to see if the domain is in that list. If not it defaults back to the original boardurl.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

perplexed

yeah that's what I did.  domain2.com and domain3.com - that didnt work so I even added in the original domain1.com, but that didnt work either.

Could be because I put it in the settings file, or where I put it in the settings file, or shouldnt that matter?

I left the rest as you have yours, including the 'community' extension just to see if it would work, but typing domain2.com/community just gave me a wordpress page with 'nothing found' on it.  Does it matter that I have wordpress running in the domain root?


SleePy

well the minoring was designed for smf only so it would only function on you smf forum.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

perplexed

Quote from: SleePy on April 10, 2008, 10:39:36 PM
well the minoring was designed for smf only so it would only function on you smf forum.

wait, so I'm supposed to have smf installed on the other two domains?  That's what I'm trying to avoid.

SleePy

Well if you want to think of it basically, yes.

The domains should point to the same location on your website or have a commonality.
Such as my site, the default link was actually set to be pointed to the community folder while the second link was using the web root and then it would go to the community folder.

You need to be calling a SMF file on the other site for it to be able to use smf or pull up correct links.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Eliana Tamerin

Has anyone tried doing this yet on 2.0? I'd be very interested in getting this working on a 2.0 forum.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

perplexed

#67
Quote from: SleePy on April 11, 2008, 12:52:24 PM
Well if you want to think of it basically, yes.

The domains should point to the same location on your website or have a commonality.
Such as my site, the default link was actually set to be pointed to the community folder while the second link was using the web root and then it would go to the community folder.

You need to be calling a SMF file on the other site for it to be able to use smf or pull up correct links.

ok well that was the vital step that was missing. 

On my original forum, I just get an internal server error


And on the secord forum however, I have it almost working in that a forum is displayed on domain2.com/forum on that second forum:

1. I can't login - internal server error    fixed that
2. all the images are missing eg new posts icons etc     fixed
3. there's a call to an undefined function for Tiny Portal in load.php (and 150 pages of errors in less than an hour heh! )

For 1. I don't know what's wrong with it

But I'm thinking that to solve 3 I will have to install everything I have on the orginal forum including all the mods?  If so then that's impossible as I need the space for other things.   :(


Some time later...

Ok I have it working as it should (as far as I can tell) but I will still have to test out a few things and make sure.  But basically there was quite a lot more involved than just changing a few files!  I have copied over all my files, mods, etc to the 2nd domain but that means for this test forum example -an extra 30mb of space used for each domain, and if I do it with the live forum it will be about 80mb for each one I want to do this to, so really they just share the database and everything else has to be duplicated. 

Does that sound right?

cjexotic

Gave in and tried this again but still no luck  >:(

Any idea what the problem is?

I follow this
Quotechange seetitngs.php to force SMF to use current domain for all links:


open Settings.php

find


Code: [Select]
$boardurl = '
the rest of the line would be the already set (primary) domain

comment that line (put // as the very first in the line) and add new line below:


Code: [Select]
$boardurl = 'http://' . $_SERVER['HTTP_HOST'];

Now reload forum on new domain (not primary) and check if all links point to it domain

That is fixed

and I get urls like domain1.comdomain2.com/forum/domain3.com
which goes to a page not found


Also tried the methode SLeePy posted and that worked but I couldn't figure out how to limit catagories shown on specific forums. Also could not make that methode work with .net address's , the .net put an error in the error log anytime a post was made oven if it wasn't from the .net address

SleePy

quiteperplexed,

Are they on different servers?
THe SMF files and such need to be on the same server with the domains pointing to the same location.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

perplexed

Quote from: SleePy on April 15, 2008, 12:22:23 AM
quiteperplexed,

Are they on different servers?
THe SMF files and such need to be on the same server with the domains pointing to the same location.


mine is working as I posted above thanks. :)
I havent fully tested everything but it looks ok.  I'm just not so happy about having to duplicate all the files as that is quite a chunk of my webspace.

feral

quiteperplexed, if you can point the domains to the same folder then you don't have to have multiple installs.

Play around with the settings for each domain and see if you can have them run off of the same root directory.

Of if it is running on an apache server you can create an alias to point the /community or where ever your forum is located to the same folder on the server for each site.

SleePy

Well SMF only needs a index.php and Settings.php in other folders for it to work.
As long as Setting.php points to the right files and The theme paths are ok, then it will work.
You would only want to change the boardurl though if You did that as changing the theme urls wouldn't be a good idea :P
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

perplexed

So how do I get the settings.php etc to point to the correct files?   I tried it again just having index.php and Settings.php but that didnt work at all.

So I ftp'd all the files again, and that does work to a point, but for example the register and login links are pointing to the domain1 forum and not domain2 forum as I thought it would be?

SleePy

Is settings pointing to the other forums source folder?
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Wulfen

Hi there!

I want to run a shared forums installation, and after having a look at this mod, it seems this one is the best for my needs. The only problem seems to be that is not being updated, as the last posts are from April of this year :-/

What I want to have is a couple of sites with forums like this:

www.red-example-site.com/forums
www.blue-example-site.com/forums

"red-site" will have forums A, B, C, X and Z
"blue-site" will have forums D, E, F, X and Z

Red and blue are hosted in the same server, and apache or some other tool (like this mod) will redirect users to one page or the other. There is just one mySQL database. Same users, and so on. I want to keep the option of adding more sites in the future. I don't use TinyPortal or anything else with SMF (my front-end is a plone site).

I'd prefer an installable mod instead of having to tweak PHP files, but I don't have much problems hacking at the templates. Though I wanted to know, before I start, if this is the right mod for me (which seems so) and if it has not been abandoned.

Regards,

Wulfen

Wulfen

Hi there,

I managed to get this thing working (red forum: hxxp:www.seduccionnatural.com/foro/ [nonactive] , blue forum: hxxp:www.exito-personal.com/foro/ [nonactive]). I've used the Omega Outline theme for both, installing it from separate directories.

Now I would like to add TinyPortal as well, and I was wondering if anyone had managed to configure TinyPortal to work with this Multidomain mod. In any case I'll try it and report back with the findings.

Regards,

Wulfen

pinoypetfinder

wow multidomain smf forum, this is great. really.
i wish i can find time to modify the files so that i'll be able to do this too.

kudos to TS! :)

swtdivalove

#78
Here's an added feature that I know will prove to be QUITE difficult, but this is also as simple as turning it on and off in the ACP.

Have a setting that you can dedicate 1 category/board across the entire domain and sub domains.

Example:  Site News gets posted to the main site, then all of the sub domains have it set that when something new is posted on the main site in Site News, all of the others get it posted in their site news.  Basically, propagating 1 board across an entire domain.

Next is... Will this work on 2.0.4?

buben06

#79
does it work on 1.1.7 ?
I just installed SMF, and followed instructions from 1 post in this thread, (without additional custom mod) and here is what I got

Fatal error: Call to undefined function: customdomainconfiguration() in /home/content/XX/Sources/Load.php on line 1395

Advertisement: