1
mschmid
start new module development: use 2.0.13.1 or 2.2.3
  • 2005/10/15 12:57

  • mschmid

  • Just popping in

  • Posts: 28

  • Since: 2002/9/19


If I start to develop a new XOOPS module.

=> Should I do it for 2.0.13.1 or 2.2.3?

In relation to:
- how easy to upgrade a module from 2.0.13.1 to next generation 2.xx?
- upgrade from 2.2.3 to the next generation version (based on 2.0.13.1)?

I do not wanna dev the module and as soon I'm finished I have to port it to another version.

Any other ideas, recomandation on this topic.

thx for any input
Markus

2
Dave_L
Re: start new module development: use 2.0.13.1 or 2.2.3
  • 2005/10/15 13:08

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


I would develop it using 2.2.3.

If you want to ensure that it's compatible with 2.0.13.1, then test it with that version too, either during or after the development.

Within the module, don't access any database tables directly (except for your own module's tables). Use the XOOPS core classes instead. For example, if you need to map a user ID to a username, use the member handler class, rather than doing a query on the users table. That will help ensure compatibility.

3
mschmid
Re: start new module development: use 2.0.13.1 or 2.2.3
  • 2005/10/15 13:37

  • mschmid

  • Just popping in

  • Posts: 28

  • Since: 2002/9/19


2.2.3 is a good answer
What are the reason for this decision?

with your example you mean:
$userid = !empty($xoopsUser) ? $xoopsUser->getVar('uid') : 0;

4
jdseymour
Re: start new module development: use 2.0.13.1 or 2.2.3

The reason for this decision is that eventually the 2.2x version will fully replace the 2.0x version of xoops.

5
Dave_L
Re: start new module development: use 2.0.13.1 or 2.2.3
  • 2005/10/15 14:03

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Quote:
with your example you mean:
$userid = !empty($xoopsUser) ? $xoopsUser->getVar('uid') : 0;


Yes, that's a good example. Except I would use is_object($xoopsUser) instead of !empty($xoopsUser).

6
mschmid
Re: start new module development: use 2.0.13.1 or 2.2.3
  • 2005/10/15 19:36

  • mschmid

  • Just popping in

  • Posts: 28

  • Since: 2002/9/19


Hhhmmm.... I searched around, and have seen this tread:
https://xoops.org/modules/news/article.php?storyid=2602&page=2

This tread is from skalpa about XOOPS 2.3 / 2.4 and tells that this new releases (2.3/2.4) will be based on 2.0.13 and not 2.2.3. But a bunch of code "copied" from 2.2.3 "down" to 2.0.13.
=> This would mean I should use the 2.0.13 to start my mod dev. and grow with the 2.0.13 rel.

or will be so many code copied from 2.2.3 into 2.0.13 that it is more a 2.2.3 releas as a 2.0.13 release.
=> This means go with 2.2.3 as before recomandet already.

So I do not know which code base I should use now?
Or do I think to far and complicated? And just start and use the 2.2.3?

Login

Who's Online

296 user(s) are online (266 user(s) are browsing Support Forums)


Members: 0


Guests: 296


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