1
luciorota
The name of the directories of the modules are uppercase or lowercase or ...
  • 2014/9/15 13:09

  • luciorota

  • Module Developer

  • Posts: 216

  • Since: 2007/4/20


This is a standardization issue.
Directory names must be uppercase or lowercase or ...?

xnewsletter or xNewsletter?
TDMDownloads or tdmdownloads?
TDMCreate or tdmcreate?
...

I checked that Xoops, for what concerns the directory name of a module, is not case sensitive, is it true?

2
Mamba
Re: The name of the directories of the modules are uppercase or lowercase or ...
  • 2014/9/15 18:37

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Richard indicated that going forward, all module directory names should be in lower case, i.e.

TDMCreate => tdmcreate
TDMDownloads => tdmdownloads

Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

3
goffy
Re: The name of the directories of the modules are uppercase or lowercase or ...
  • 2014/9/16 5:53

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


normally it makes no different, if I make a new module.

The only problem I see is, that it is not possible to update from xNewsletter to xnewsletter, because the system does not find the "old" path (with uppercase).
I know no simple way - only uninstall and reinstall, but than all data are lost.
Or I dump the tables of the module, and also all data of other tables like config, if there are data inside. If you reinsert the data later, you have to take care, that you have the right module id in the tables.
This is not the simple way of updating a module as usual in xoops ;-(

Maybe someone else know a simple way, but if there is no easy way we should let uppercase for the older modules

4
Mamba
Re: The name of the directories of the modules are uppercase or lowercase or ...
  • 2014/9/17 0:46

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Quote:
Maybe someone else know a simple way, but if there is no easy way we should let uppercase for the older modules

One of doing it could be to:
a) rename the current folder name to something like /xNewsletter0
b) copy the new files to /xnewsletter
c) update the module

but let test first to see if it works, and if there is a better and more "user-friendly" way to accomplish it
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

5
luciorota
Re: The name of the directories of the modules are uppercase or lowercase or ...
  • 2014/9/17 9:48

  • luciorota

  • Module Developer

  • Posts: 216

  • Since: 2007/4/20


also update procedure should lowercase dirname field in modules table
in my tests this could be the right way

6
goffy
Re: The name of the directories of the modules are uppercase or lowercase or ...
  • 2014/9/24 11:32

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


hi mamba

Sorry for late answer.

Quote:
but let test first to see if it works, and if there is a better and more "user-friendly" way to accomplish it


test result:
xoops 2.5.5.
update failed
mesage: Module File for xNewsletter Not Found!

7
goffy
Re: The name of the directories of the modules are uppercase or lowercase or ...
  • 2014/9/24 17:33

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


same results with xoops 2.5.7

Login

Who's Online

234 user(s) are online (139 user(s) are browsing Support Forums)


Members: 0


Guests: 234


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