41
stingerblue
Re: Multi-sites - help me test it properly?

looks good so far, thou noticed if site isnt installed before overwrittening modulesadmin.php, site doesnt appear in modules admin (none installed modules).

thanku for sharing it

42
Mithrandir
Re: Multi-sites - help me test it properly?

Yeah, I think I have made a booger in that respect. Will fix that when I am making a XOOPS 2.0.10-compliant version. (SOON)

43
mouacy
Re: Multi-sites - help me test it properly?
  • 2005/3/28 4:52

  • mouacy

  • Not too shy to talk

  • Posts: 138

  • Since: 2002/11/2


I did a blank install and got the sites setup with all tables share and all sites look alike.

I want each site to look different. Which tables must I not share among them so that each would have a different setting?

Here is what I want to share:
-the same users and avatars for all sites
-share some but not all modules
-different theme for each site
-different site titles/slogan

Here are my tables:

avatar
avatar_user_link
banner
bannerclient
bannerfinish
block_module_link
config
configcategory
configoption
group_permission
groups
groups_users_link
image
imagebody
imagecategory
imgset
imgset_tplset_link
imgsetimg
modules
newblocks
online
priv_msgs
ranks
session
sites
smiles
tplfile
tplset
tplsource
users
xoopscomments
xoopsnotifications

Which tables should I not select as share so my other sites would not look the same as the main site?

44
gruessle
Re: Multi-sites - help me test it properly?
  • 2005/3/28 8:45

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


Share these:

avatar
avatar_user_link
online
priv_msgs
ranks
smiles
users

And share these also if you like to have the same users in the same group
group_permission
groups

45
Mithrandir
Re: Multi-sites - help me test it properly?

Tables not to share:

block_module_link
this controls the blocks' position, options etc.

config
configcategory
configoption

These tables control the settings, such as theme, mail settings, site slogan etc.

group_permission
Individual sites with individual permissions require this table to not being shared

modules
newblocks

Not all modules will be installed on each site, so keep these two tables unshared. You can still share the modules' own tables on a need-to-do basis for sharing e.g. News module content across sites.

xoopscomments
xoopsnotifications

Comments and notifications relate to module IDs so since they can change from one site to another, these tables are unreliable unless they are also not shared.

That should get you started on having individual sites running on the same code with some shared information. Good luck.

46
m0nty
Re: Multi-sites - help me test it properly?
  • 2005/4/9 23:08

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


Mith, is there a way i can use the site id function in a theme?

so that i could possibly share 1 theme, but in the theme itself.. for example:

if (XOOPS_SITE_ID == 1) then headerlogo = logo1
if (XOOPS_SITE_ID == 2) then headerlogo = logo2
if (XOOPS_SITE_ID == 3) then headerlogo = logo3

and so on..

or possibly as i have the logo in my theme in a div function.

<div id="header">
<
div id="headerbanner"><{$xoops_banner}>div>
div>


it might be better if i could use:

if (XOOPS_SITE_ID == 1) header = header1

etc, so that i could have a seperate class in the css which points to a different logo?

47
banned
Re: Multi-sites - help me test it properly?
  • 2005/4/10 1:22

  • banned

  • Not too shy to talk

  • Posts: 159

  • Since: 2004/5/16


The easiest way, methink, is to add a new smarty var in header.php
After that you can call in your theme something like logo<{$site_id}>

banned,

48
m0nty
Re: Multi-sites - help me test it properly?
  • 2005/4/10 2:11

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


sounds a better idea.. altho i'm not familiar with actually creating a new smarty variable, i'll have a search round the site for any topics or docs that mention it, but if u have any to hand could u let me know? i'd sooner at least attempt it on my own rather than ask it to be done for me.. but my skills in that respect are very limited, a few pointers in the right direction would be appreciated

49
Mithrandir
Re: Multi-sites - help me test it properly?

in header.php right after $xoopsTpl = new XoopsTpl();
write
$xoopsTpl->assign('siteid'XOOPS_SITE_ID);

and you can use <{$siteid}> in your theme.

50
m0nty
Re: Multi-sites - help me test it properly?
  • 2005/4/10 8:53

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


1 line that's it? blow me backwards.. i was looking for somethin more complex than it actually was.. oh well at least i know now :)

thanks Mith & banned

Login

Who's Online

175 user(s) are online (92 user(s) are browsing Support Forums)


Members: 0


Guests: 175


more...

Donat-O-Meter

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

Latest GitHub Commits