xoops forums

canuser

Just popping in
Posted on: 2008/4/1 4:32
canuser
canuser (Show more)
Just popping in
Posts: 44
Since: 2003/3/4 7
#1

Share the modules with 2 sites

I have 2 sites, how to share first site's modules to the second site?

avtx30

Not too shy to talk
Posted on: 2008/4/1 8:52
avtx30
avtx30 (Show more)
Not too shy to talk
Posts: 181
Since: 2006/10/12
#2

Re: Share the modules with 2 sites

It depends on what modules you are using.

If they are D3, then you just create many sites that share the XOOPS_TRUST_PATH with shared modules under it.

canuser

Just popping in
Posted on: 2008/4/3 2:21
canuser
canuser (Show more)
Just popping in
Posts: 44
Since: 2003/3/4 7
#3

Re: Share the modules with 2 sites

Thanks avtx30, I am use news to share with the other website. What you mean about D3? Is that you mean the version of xoops? I am using version 2.25 right now. Can you give more detail information about how to use the XOOPS_TRUST_PATH?

avtx30

Not too shy to talk
Posted on: 2008/4/3 3:03
avtx30
avtx30 (Show more)
Not too shy to talk
Posts: 181
Since: 2006/10/12
#4

Re: Share the modules with 2 sites

D3 stands for "Duplicatable Version 3" - it's not for XOOPS version, it's a terms by GIJOE - a XOOPS guru from Japan. D3 modules means XOOPS module that can be duplicate (clone) as many as you like, with any directory name. You can put D3 module core (logics) under XOOPS_TRUST_PATH and instantiate them at many sites. When a D3 module is upgraded, at most cases, all you have to do is overwrite the module core under XOOPS_TRUST_PATH then all of its instances (under every sites XOOPS_ROOT_PATH/modules) will be automatically upgraded. You cannot imagine how convenient it is if you have 100 instances (100 sites, each site has one instance)!!

You may visit GIJOE's site at http://xoops.peak.ne.jp to take advantages of some great modules (Protector, Altsys, D3forum, dbtheme, etc). Some great hacks to improve XOOPS performance are also available there.

There is a perfect article about XOOPS_TRUST_PATH here: http://xoops-tips.com/modules/news/article.php?storyid=108

Please look at it carefully and do some test. Let me know if you have problems.

canuser

Just popping in
Posted on: 2008/4/3 15:18
canuser
canuser (Show more)
Just popping in
Posts: 44
Since: 2003/3/4 7
#5

Re: Share the modules with 2 sites

Thanks a lot for your worth information. I will try and let you know.

canuser

Just popping in
Posted on: 2008/5/15 2:34
canuser
canuser (Show more)
Just popping in
Posts: 44
Since: 2003/3/4 7
#6

Re: Share the modules with 2 sites

I did set up the XOOPS_TRUST_PATH for security, but still don't figure out how to duplicate the module to other sites.

wishcraft

Module Developer
Posted on: 2008/5/15 2:57
wishcraft
wishcraft (Show more)
Module Developer
Posts: 3711
Since: 2007/5/18
#7

Re: Share the modules with 2 sites

hey how are you doing? Are the sites on the same server, if so you can just do some dirty code that compares the database and does comparative updates, you might want to check sum the data you are comparing to make it a quicker process.

You also may need a table that links id to each other in the other table so you know what record to update, this can be done with a linking table or a submission checksum and a current checksum.

If the submission checksum doesn't exist then you submit it to the other database.

Otherwise if you are on separate service for hosting, then you will have to use X-Soap
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/SimonXaies
github.com/Chronolabs-Cooperative
facebook.com/SimonSXaies

Runeher

Module Developer
Posted on: 2008/5/15 3:09
Runeher
Runeher (Show more)
Module Developer
Posts: 825
Since: 2008/1/24
#8

Re: Share the modules with 2 sites

canuser=Just popping in

wishcraft=XOOPS Developer

You scare people

wishcraft

Module Developer
Posted on: 2008/5/15 3:19
wishcraft
wishcraft (Show more)
Module Developer
Posts: 3711
Since: 2007/5/18
#9

Re: Share the modules with 2 sites

Quote:

Runeher wrote:
canuser=Just popping in

wishcraft=XOOPS Developer

You scare people


I know but I have been developing software for 20 years since the age of 8, so you know...

You think this is scarey, wait to see what is around the corner..
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/SimonXaies
github.com/Chronolabs-Cooperative
facebook.com/SimonSXaies

Runeher

Module Developer
Posted on: 2008/5/15 3:30
Runeher
Runeher (Show more)
Module Developer
Posts: 825
Since: 2008/1/24
#10

Re: Share the modules with 2 sites

i can't wait...