11
intel352
Re: Bragging about my multisite modifications :-)
  • 2004/12/14 15:42

  • intel352

  • Module Developer

  • Posts: 824

  • Since: 2003/11/23


i believe you're asking about the ability to easy copy the original site to create new sites?

it's definitely possible. that's i rolled out my network of sites. i created a single site, set it up pretty much how i wanted it, and then duplicated the *unshared* sql tables with a new prefix, copied the files (edited mainfile.php with the new prefix, site url, site path), and deleted the xoops-generated files that were in templates_c and cache.


i'd like to streamline the process, since that method is still alot of work, but it's better than doing up a site from scratch.

site configs are separate, so you can setup a diff theme for each site. i'm looking to modify the config table tho, so that *every* table can be shared (which is what i need), but with a few settings unique per site (i need to share everything so that the config table can be shared across all sites, but modify it in a way that i can still specify a different sitename, theme, etc, for each site)

12
chrometuna
Re: Bragging about my multisite modifications :-)
  • 2004/12/14 16:46

  • chrometuna

  • Just popping in

  • Posts: 67

  • Since: 2004/7/24


I am not the fastest knife in the christmass tree....So I have been unable to figure out how to do the multisites thing.

I tried installing your module and doing the hacks, but I FUBARED my site completely...it came back once I uninstalled, so all is well.

But I need three or four sites, basicly sub-domains, with slightly different themse and content but the ability to add news stories and whatnot ONCE and have it appear on ALL of the sub domain sites (Or certain sections repeated on certain sites, but not others)
And maybe ALL of these sites sharing a forum?

I also manage a different site/domain that is hosted on the SAME server/host, but a DIFFERENT account, and I would like to be able to update that one from my other site as well.

If I understand this, your module will do all of this?

And Im just a dummy for not being able to get it working?

I am thinking of doing a completely fresh install on my original site (http://www.topekadiy.com) and catching up to XOOPS 2.0.7, aqnd THEN trying your mod again.

Any suggestions? Any step by step dummy-proof instructions for boneheads?

And, I have been too scared of the short url hack....Ive been getting clobbered by the search engines and would love to have cleaner URLs.

Cheers
ct

13
Wheeler
Re: Bragging about my multisite modifications :-)
  • 2004/12/14 17:13

  • Wheeler

  • Not too shy to talk

  • Posts: 145

  • Since: 2004/10/29


I like your sitehttp://www.csmapcentral.com/
I really want to set something like this up. I have been going insane attempting to clone modules these last few days.

Here is something interesting I read off your site...
Quote:
A new feature for mappers is almost done, which will allow map creators to be hosted on the MapCentral network (all screenshots, map files, as well as an html page describing the mapper's work and latest news). Keep checking back for this often requested feature!

User profile page with ability to update personal content for display to the rest of the community?!.. Like a one page mini-site showing personal module content?

I can't wait for your mod hack. Keep us posted of any updates please.

14
intel352
Re: Bragging about my multisite modifications :-)
  • 2004/12/14 18:18

  • intel352

  • Module Developer

  • Posts: 824

  • Since: 2003/11/23


yes, a low-priority addon that i intend for the mapcentral network, is a module that will allow users to manage their own html 'page', with support for file and image management.


i would like to tie this in with the wfdownloads module, so that my users' files will be added into the downloads system, but again, this is a lower priority project that is having to wait behind xphpbbi (phpbb port), multisites, and then a few specific modifications that i need to make to my mapcentral sites.

btw, the project for that module is called xUserHomePages over at dev.xoops.org, it's being tailored after the user home pages module for mambo (well, the idea is from there mainly, but i'm not a fan of their implementation)


the multisite mod is very useful, in that i've been able to share all of my modules across all sites, especially the forums. i modified the downloads module so that i can specify downloads to display on a single site *or* all sites (by category and/or individual download). i will be making the same modification to AMS (Article Management System - based on the news 1.2 module) as well.


once i get this work done, i will be releasing a package of my modified version of XOOPS (2.0.9 beta), along with my modified modules (AMS, wf-downloads, etc), which will include bugfixes and customizations.


really, i wouldn't try using the multisites modification from the patch tracker, unless you're a programmer with a good eye. like i said, there's things that i've fixed, improved, changed about the modification since implementing it with my own sites, and when i release this package, it will operate quite a bit different from it's origin.


as for getting multisites running across multiple accts on the same server, the only thing that really matters is that you can access the MySQL server from both accounts. if you have separate MySQL logins, that may cause problems (this modification isn't tailored around multiple separate MySQL accounts, if you need that, i'd suggest getting the subsites modification that was released by someone else much earlier this year. it's in the news somewhere.


keep in mind, if you plan on using my package when i release it, it will prevent you from upgrading easily to later versions of xoops, and you'll essentially be reliant on myself or other contributors keeping the package up-to-date (that's one problem that users ran into with pbboard from bbpixel, since it modified xoops, they had to wait on a new release from bbpixel to be able to upgrade to the next version of xoops).

15
Lance_
Re: Bragging about my multisite modifications :-)
  • 2004/12/14 18:53

  • Lance_

  • Home away from home

  • Posts: 983

  • Since: 2004/1/12


Quote:

bd_csmc wrote:

keep in mind, if you plan on using my package when i release it, it will prevent you from upgrading easily to later versions of xoops, and you'll essentially be reliant on myself or other contributors keeping the package up-to-date (that's one problem that users ran into with pbboard from bbpixel, since it modified xoops, they had to wait on a new release from bbpixel to be able to upgrade to the next version of xoops).


For those interested to do multisites without affecting a lot of core files, just follow the info found in the thread (Multisites Hack) with only 2 changed files.

I use it to run 4 sites as one, works well.

Cheers


/copied here

rename your mainfile.php to subdomain.mainfile.php

create new mainfile.php:
<?php
if (!(isset($subdominio))) {
$subdominio $HTTP_HOST;
$subdominio str_replace("www.","",$subdominio); 
$subdominio str_replace(".com","",$subdominio); 
$subdominio str_replace(".net","",$subdominio); 
$subdominio str_replace(".org","",$subdominio);


if (!(empty(
$subdominio))) {
include(
$subdominio."mainfile.php");
}
?>


Modify Database.php
function prefix($tablename='')
{
    
$myCommonTables = array('avatar''avatar_user_link''online''priv_msgs''stories''topics''users');
    
$myPrefix '';
    
    if (
in_array($tablename,$myCommonTables))
    {
        
$myPrefix 'xoops';
    }
    else 
$myPrefix $this->prefix;


    if ( 
$tablename != '' 
    {
        return 
$myPrefix .'_'$tablename;
    } 
    else 
    {
        return 
$myPrefix;
    }
}

16
intel352
Re: Bragging about my multisite modifications :-)
  • 2004/12/14 18:57

  • intel352

  • Module Developer

  • Posts: 824

  • Since: 2003/11/23


my modification is similar, but is trying to be more complete and comprehensive

the mod that you referenced is definitely worth a look, though, as is the subsites mod, so thanks for posting that information here for their consideration

17
Wheeler
Re: Bragging about my multisite modifications :-)
  • 2004/12/15 16:26

  • Wheeler

  • Not too shy to talk

  • Posts: 145

  • Since: 2004/10/29


Lance_ , good info and Thanks.

bd_csmc that profile page will really help me to my goal. My site is not about online gaming but your hacks and site is a model for mine. I need to host battles/tournaments, clan areas (cities/groups) including private news/forums, and show 'featured' profiles on my site.

I need regional areas mixed with group classes. Cities would be multi-sites (subdomain) and each have a dedicated news module, links, etc. Groups would have to network regionally and globally, site's mainpage must show 'featured' user profiles.

I was thinking of cloning 'partners' module as a city's mainpage (eg: ../modules/calgary/), listing links to it's module categories/clones (eg: ../modules/calgary_news/).
I know there are modules to 'spotlight' content from other modules but then I get (../modules/wfsections/), and that does not show my users definit local sections.

I think multi-sections is the way to go. I could hire admins living in the local region to maintain their site. I would get fresh sets of meta tags. I am starting from scratch... let's see what I can produce. I'll keep you posted. sorry about the long (off topic) post, maybe should open my own thread. PEACE!

18
ajaxbr
Re: Bragging about my multisite modifications :-)
  • 2004/12/15 19:07

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


XOOPS got a place in CPanel for being a great free CMS. This hack and/or a good core implementation of multisite-ness would make us land here, which would be awe-freaking-some .

Anyway, expect some more XOOPS users from CPanel alone... and thanks for taking us closer to world domination

19
intel352
Re: Bragging about my multisite modifications :-)
  • 2004/12/15 22:08

  • intel352

  • Module Developer

  • Posts: 824

  • Since: 2003/11/23


lol ajax, we do what we can

Quote:

bd_csmc that profile page will really help me to my goal. My site is not about online gaming but your hacks and site is a model for mine. I need to host battles/tournaments, clan areas (cities/groups) including private news/forums, and show 'featured' profiles on my site.

I need regional areas mixed with group classes. Cities would be multi-sites (subdomain) and each have a dedicated news module, links, etc. Groups would have to network regionally and globally, site's mainpage must show 'featured' user profiles.

I was thinking of cloning 'partners' module as a city's mainpage (eg: ../modules/calgary/), listing links to it's module categories/clones (eg: ../modules/calgary_news/).
I know there are modules to 'spotlight' content from other modules but then I get (../modules/wfsections/), and that does not show my users definit local sections.

I think multi-sections is the way to go. I could hire admins living in the local region to maintain their site. I would get fresh sets of meta tags. I am starting from scratch... let's see what I can produce. I'll keep you posted. sorry about the long (off topic) post, maybe should open my own thread. PEACE!


wheeler, if i'm able to update the code as i need to, i think it would definitely suit your needs

i would like to eventually modify as many modules as possible with the option to set content as available to all sites, or limited to a single site (and eventually branch it to *some-but-not-all* sites, hehe).

btw, for your Partners idea, try SmartPartners from dev.xoops.org, it's much improved over the default partners module.


btw, if you were to use this modification that i have, you wouldn't necessarily need staff for different sites, because all sites would be manageable from a single administration panel. assuming i'm able to migrate the site-related settings to all areas of xoops, then you would have no trouble in having the same modules installed on multiple sites, but with 'regional' and 'global' content

i tell you, it's really nifty being able to go into wfdownloads, create categories for specific sites, then create a couple of global categories, and doing the same with downloads, and knowing that the downloads will only display where they're supposed to. and in the case of wfdownloads, the mod was fairly simple, to achieve this functionality

20
Brice
Re: Bragging about my multisite modifications :-)
  • 2004/12/15 22:31

  • Brice

  • Just popping in

  • Posts: 6

  • Since: 2004/11/29


Quote:

bd_csmc wrote:
i believe you're asking about the ability to easy copy the original site to create new sites?

-----------

i'd like to streamline the process, since that method is still alot of work, but it's better than doing up a site from scratch.

site configs are separate, so you can setup a diff theme for each site. i'm looking to modify the config table tho, so that *every* table can be shared (which is what i need), but with a few settings unique per site (i need to share everything so that the config table can be shared across all sites, but modify it in a way that i can still specify a different sitename, theme, etc, for each site)


Hi db_csmc,

Yes that what I want to have as feature. Great and thank you.
My need is to provide a registered user with a certain right or priviledge to create simply a new site ( with subdomaine name and or a specific domain name) just by clicking and filling a form.. People who will use this don't necessary have a comptence in programing.

It is possible?

Thanks alot.

Brice

Login

Who's Online

161 user(s) are online (117 user(s) are browsing Support Forums)


Members: 0


Guests: 161


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits