16
I've experienced same request.
This is how to duplicate myAlbum-P on modules/myalbum/ into myAlbum-P on modules/myalbum2/
1) copyall myalbum to myalbum2
2) modules/myalbum2/include/read_configs.php
le="color: #000000"><?php // get my mid $rs = $xoopsDB->query( "SELECT mid FROM ".$xoopsDB->prefix('modules')." WHERE dirname='myalbum[color=ff0000]2[/color]'" ) ;
le="color: #000000"><?php $table_photos = $xoopsDB->prefix( "myalbum[color=ff0000]2[/color]_photos" ) ; $table_cat = $xoopsDB->prefix( "myalbum[color=ff0000]2[/color]_cat" ) ; $table_text = $xoopsDB->prefix( "myalbum[color=ff0000]2[/color]_text" ) ; $table_votedata = $xoopsDB->prefix( "myalbum[color=ff0000]2[/color]_votedata" ) ; $table_comments = $xoopsDB->prefix( "xoopscomments" ) ;
3) modules/myalbum2/xoops_version.php
le="color: #000000"><?php $modversion['dirname'] = "myalbum[color=ff0000]2[/color]";
le="color: #000000"><?php // Tables created by sql file (without prefix!) $modversion['tables'][0] = "myalbum[color=ff0000]2[/color]_cat"; $modversion['tables'][1] = "myalbum[color=ff0000]2[/color]_photos"; $modversion['tables'][2] = "myalbum[color=ff0000]2[/color]_text"; $modversion['tables'][3] = "myalbum[color=ff0000]2[/color]_votedata";
4) modules/myalbum2/sql/mysql.sql
the table names of "myalbum_*" into "myalbum2_*"
5) all of files under modules/myalbum2/
change "/myalbum" to "/myalbum2"
change "ALBM" to "ALBM2"
6) Install it
Don't forget these operations are case sensitive.