1
tmreg
changing the name of a module
  • 2006/10/23 14:28

  • tmreg

  • Not too shy to talk

  • Posts: 137

  • Since: 2006/7/20


What all is involved in changing the name of a module. I would like to change the name to the point of having the url reflect a standard folder name (ie content instead of wf-channel).

Changing the XOOPS version file is all I know to do. is there more to it than that? I am asking before I try it and mess something up.

thanks for your help,
Matt
-Matt

2
kaotik
Re: changing the name of a module
  • 2006/10/23 17:03

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


This really is dependent on how the module was coded, modules such as news and smartsection were developed so that you can easily change the module name with 2 steps:
1- open file xoops_version.php
- change:
$modversion['dirname'] = "newname";

2- rename module dir to 'newname'.
That's it.
Notice: Although some modules correctly use $xoopsModule->getVar('dirname') not all of them have this correctly setup for their respective blocks, meaning the module will work fine with the name change but their blocks will not.

Login

Who's Online

364 user(s) are online (259 user(s) are browsing Support Forums)


Members: 0


Guests: 364


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