xoops forums

luciorota

Module Developer
Posted on: 2014/9/15 13:09
luciorota
luciorota (Show more)
Module Developer
Posts: 197
Since: 2007/4/20
#1

The name of the directories of the modules are uppercase or lowercase or ...

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?

Mamba

Moderator
Posted on: 2014/9/15 18:37
Mamba
Mamba (Show more)
Moderator
Posts: 10770
Since: 2004/4/23
#2

Re: The name of the directories of the modules are uppercase or lowercase or ...

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

goffy

Quite a regular
Posted on: 2014/9/16 5:53
goffy
goffy (Show more)
Quite a regular
Posts: 369
Since: 2010/12/27
#3

Re: The name of the directories of the modules are uppercase or lowercase or ...

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

Mamba

Moderator
Posted on: 2014/9/17 0:46
Mamba
Mamba (Show more)
Moderator
Posts: 10770
Since: 2004/4/23
#4

Re: The name of the directories of the modules are uppercase or lowercase or ...

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

luciorota

Module Developer
Posted on: 2014/9/17 9:48
luciorota
luciorota (Show more)
Module Developer
Posts: 197
Since: 2007/4/20
#5

Re: The name of the directories of the modules are uppercase or lowercase or ...

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

goffy

Quite a regular
Posted on: 2014/9/24 11:32
goffy
goffy (Show more)
Quite a regular
Posts: 369
Since: 2010/12/27
#6

Re: The name of the directories of the modules are uppercase or lowercase or ...

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!

goffy

Quite a regular
Posted on: 2014/9/24 17:33
goffy
goffy (Show more)
Quite a regular
Posts: 369
Since: 2010/12/27
#7

Re: The name of the directories of the modules are uppercase or lowercase or ...

same results with xoops 2.5.7