1
canuser
Share the modules with 2 sites
  • 2008/4/1 4:32

  • canuser

  • Just popping in

  • Posts: 44

  • Since: 2003/3/4 7


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

2
avtx30
Re: Share the modules with 2 sites
  • 2008/4/1 8:52

  • avtx30

  • Not too shy to talk

  • Posts: 181

  • Since: 2006/10/12


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.
Xoops Demos:
http://www.nhatban.net/info/a0021.html

3
canuser
Re: Share the modules with 2 sites
  • 2008/4/3 2:21

  • canuser

  • Just popping in

  • Posts: 44

  • Since: 2003/3/4 7


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?

4
avtx30
Re: Share the modules with 2 sites
  • 2008/4/3 3:03

  • avtx30

  • Not too shy to talk

  • Posts: 181

  • Since: 2006/10/12


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 athttp://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.
Xoops Demos:
http://www.nhatban.net/info/a0021.html

5
canuser
Re: Share the modules with 2 sites
  • 2008/4/3 15:18

  • canuser

  • Just popping in

  • Posts: 44

  • Since: 2003/3/4 7


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

6
canuser
Re: Share the modules with 2 sites
  • 2008/5/15 2:34

  • canuser

  • Just popping in

  • Posts: 44

  • Since: 2003/3/4 7


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

7
wishcraft
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/RegaltyFamily
github.com/Chronolabs-Cooperative
facebook.com/DrAntonyRoberts

8
Runeher
Re: Share the modules with 2 sites
  • 2008/5/15 3:09

  • Runeher

  • Module Developer

  • Posts: 825

  • Since: 2008/1/24


canuser=Just popping in

wishcraft=XOOPS Developer

You scare people

9
wishcraft
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/RegaltyFamily
github.com/Chronolabs-Cooperative
facebook.com/DrAntonyRoberts

10
Runeher
Re: Share the modules with 2 sites
  • 2008/5/15 3:30

  • Runeher

  • Module Developer

  • Posts: 825

  • Since: 2008/1/24


i can't wait...

Login

Who's Online

196 user(s) are online (133 user(s) are browsing Support Forums)


Members: 0


Guests: 196


more...

Donat-O-Meter

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

Latest GitHub Commits