Quote:
1. a) Import from smatrfactory to publisher
b) deinstalation sf module
c) creating a clone of publisher called smartfactory
d) import from publisher to new smartfactory (if it's possible)
2. a) Import from smatrfactory to publisher
b) deinstalation sf module
c) creating a clone of publisher called smartfactory
d) in phpmyadmin export publisher tables with data to a file
e) in eg. notepad++ edition that file to change table-prefix from "publisher" to "sf clone"
f) import data from a file to empty "sf clone" tables
yes, i imported the old smartfactory successfully. this procedure works.
Quote:
Mamba wrote:
I did the second way long time ago, but I think, it was simpler:
a) Import from smartcontent to publisher
b) uninstall smartcontent module, and delete the folder
c) create a clone of publisher called smartcontent
d) uninstall "publisher" and delete the folder
Of course, make a backup of "smartcontent" just in case something goes wrong.
This procedure is wrong because in the "c" step the cloned module is not installed yet!
when you clone publisher you just have another fresh module without any tables in the database. then after installation it create tables and it is a fresh module.
I still think the GIjo way of cloning modules is better (maybe the best way). In the cube they called it "Duplicatable V3 (D3)"
He is a very professional coder and IMO he knows everything better than all of us. I mean he can choose the way that trabis use in publisher because I think the trabis way is rather much easier for developers while Gijo way is hard for them.
in the contrary, for the end user Gijo modules are so much easier for install/upgrade/clone/uninstall
please read the below as some advantages of Gijo cloning way:
1- You have one big base module and many small childs (clones). These childs have a few files and you can copy/paste them very easy.
2- You can create a new clone as simple as renaming a directory.
3- You can upgrade your cloned module very easy just copy the new release base module and you will not touch the clone at all. ( while i dont know in the publisher how we can upgrade a clone easily? the name is different. tables are different and ...)
Im not a developer and the above opinions are just based on my experiences. Maybe there are more advantages of Gijo modules that i can not mentioned. a developer can see the codes and explain better.
I still think xoops should have a procedure for cloning. some standards would be great. then all module developers should clone based on that. something like Mage done for Admin GUI.
for example the current issue that Mamba raised from Voltan's fmcontent. the clones dont have separate tables which i think is not good at all.
maybe a standard for tables in database is necessary as below:
- (XOOPS_PREFIX)_(DEVELOPER_UNIQUE_PREFIX)_(CLONE_PREFIX)_(TABLES)
eg: xoops255_voltannews_mycontent_stories
xoops255_voltannews_mycontent_topics
.............