PEAK XOOPS - Better cloning process. in englishin japanese

Better cloning process.

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2005/3/5 1:11
sudhaker  企霹始   Posts: 4
Can we have cloning script something like this

http://www.xoops.org/modules/newbb/viewtopic.php?topic_id=26041

Module names like tinyd0, tinyd1, tinyd2 is not looking good in URL. Cloning script (preferably in PHP) should be better which will allow renaming it to any name. We might need to carefully rename language constants too in order to avoid php warnings.

It would be great to have similar script for xhld module too.

I am new to xoops module development but should be able to help in doing this (if you want me to do it).

Cheers,
Sudhaker
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2005/3/9 6:34
GIJOE  黎扦烦菱   Posts: 4110
hi sudhaker.

BETTER?
No.
it's just WORSE and behind the times.


It is a well-known method, and I'm not interested such an existing tecnique at all.
You can find such a feature in XF-Section or WebLinks.

This method causes some unexpected errors.


The most value of my DUPLICATABLE is fully same source code.

This feature is useful for source managiment.

I know the numbering in DUPLICATABLE V2.1 is not so welcomed.

Thus, I'll make DUPLICATABLE V3 full free naming dirname.

Of couse, all of duplicated modules are fully same source codes.
Votes:0 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2005/3/9 6:51
sudhaker  企霹始   Posts: 4

I didn't like same source code approach also. It defines same constants many times which generates PHP warnings (most of the time it is suppressed).

Following will be repeated for every clone

Cloned module - mytinyd
define('_MI_TINYD_NAME ', 'TinyD');
Cloned module - yourtinyd
define('_MI_TINYD_NAME ', 'TinyD');

Perhaps it will be better to have something like this

Cloned module - mytinyd
define('_MI_MYTINYD_NAME ', 'TinyD');
Cloned module - yourtinyd
define('_MI_YOURTINYD_NAME ', 'TinyD');

Which is only possible using some scripts which does find and replace in text & file rename.

May be if base module source has some special templating (#MOD#, #PREFIX# #prefix# #mod# etc in text and file name) then cloning tool can do find and replace job more reliably.


Votes:0 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!