9
I have taken a quick look at one of my renamed debaser modules. As I can see and remember the only thing requiring renaming is the directory path in all files. Not file names and not sql either but since you are using duplicate you will no doubt need to change the sql table names and prefixes too both in the .php and .html files and in the mysql.sql:
1. Rename a new complete debaser module to the name you want.
2. Now edit all .php and html files for directory path changes. Example: XOOPS_ROOT_PATH.'/modules/debaser/include/functions.php'to XOOPS_ROOT_PATH.'/modules/debaser2/include/functions.php'
And don't forget to look inside every file.
Edited: I forgot!
Quote:
Not only do you have to ensure the directory path as mentioned in #2 above is changed you must also change any instance of getByDirname('debaser'); to getByDirname('debaser2');
3. Next you will want to make changes for your SQL. (You shouldn't need to change the name of the file like debaser_index.html.
That can remain the same because you have changed the directory name and paths for this cloned module. Therefore XOOPS_ROOT_PATH.'/modules/debaser/include/functions.php and
XOOPS_ROOT_PATH.'/modules/debaser2/include/functions.php are indeed called as different).
3a. What you want to do is change the table names and a table prefixes to debaser2. So now you need to go through all the .php and html and this time the mysql.sql file too and make the necessary changes. Example:
In any .php .html file that has something like -".$xoopsDB->prefix('debaser_genre')." Will now have to be changed to ".$xoopsDB->prefix('debaser2_genre')."
3b. Now you have to address the mysql.sql file. Change any instance of table name and prefix from debaser to debaser2.
4. Upload your cloned debaser to your site and install per normal module instructions.
I hope I didn't miss anything or give you any wrong info. But at least it may help.
Quest