Philroy:
Sorry about the delay. Had lost track of this thread...
The procedure I outlined is all you need. I'll try to be more explicit here.
1) Replace every instance of "_TINYCONTENT_" with "_YOURMODULENAME_".This means that for every appearance of _TINYCONTENT_ in the directory files, you should write _SPORTSDRAW_. I guess there's no problem here.
2) Replace every instance of "tinycontent" with "yourmodulename".Same as above: every instance of "tinycontent" must be replaced by "sportsdraw". You won't find this difficult. And, Shine: the first lines of the file
mysql.sql for the module read:
Quote:
#
# Table structure for table `tinycontent`
#
CREATE TABLE tinycontent (
This means that when doing the global replacement, now these lines will read:
Quote:
#
# Table structure for table `sportsdraw`
#
CREATE TABLE sportsdraw (
Which is necessary for XOOPS to separate the contents.
3) Replace every instance of "_TC_" with "_YOURMODULENAME_".This means the same as in the above points: every instance of _TC_ must read _SPORTSDRAW_.
4) Change the names of three files:
-- blocks/tc_navigation.php
-- templates/tinycontent_index.html
-- templates/blocks/tinycontent_navigation_block.html In this case the new files will be called:
-- blocks/sportsdraw_navigation.php
-- templates/sportsdraw_index.html
-- templates/blocks/sportsdraw_navigation_block.html
5) Replace the necessary language constants in the language filesThis means that, for instance, in
language/english/admin.php you have:
define("_TC_ADMINTITLE","Tiny Content");and should have
define("_SPORTSDRAW_ADMINTITLE","Sports Draw");Also, in
language/english/modinfo.php you should replace the lines...
define("_MI_TINYCONTENT_NAME","Tiny Content");
define("_MI_TC_BNAME1","Tiny Content Menu");for
define("_MI_SPORTSDRAW_NAME","Sports Draw");
define("_MI_SPORTSDRAW_BNAME1","Sports Draw Menu");Please notice that the first part of the declarations was already changed by the global replacement. What you need to change here are the content strings, the right side of every definition.
6) And most important, open xoops_version.php and replace the two instances of "_MI_DIR_NAME" for "_MI_MODULENAME_DIR_NAME". In fact, also make this replacement directory wide.This means exactly what it says. Every instance of _MI_DIR_NAME should end up saying _MI_SPORTSDRAW_DIR_NAME.
You need to make this replacement in the files index.php, xoops_version.php (two instances here, one pointing to the table name and the other to the directory name), admin/admin_header.php, admin/index.php, and in every modinfo.php file within the language directories.
I'll add these comments:
a) You also need to edit the logo file, so you can separate your module from the original Tiny Content in the admin section.
b) If XOOPS gets confused is because of the DIR variable mentioned in point [6]. That's why it's so important to do the replacement correctly. XOOPS should know for sure that module A is installed in directory A and has a database table A, while module B is installed in directory B and has a database B. If you don't make the replacements correctly, you'll confuse XOOPS.
All this sounds complex because I wanted to be thorough, but in fact, once you do it a couple of times you'll see it's really simple.
Again, if you still have any problems, please post them here to make the necessary corrections.
Cheers.