1
Edwinspie
Smartpartner 1.4 (RC 1) clone problem
  • 2007/4/3 12:38

  • Edwinspie

  • Just popping in

  • Posts: 84

  • Since: 2006/8/18


Hi! ( again )

Iv'e just cloned Smartpartner 1.4 (RC 1) for the 2nd time and I got this warning after calling the clone.php page :

Warning: mkdir() [function.mkdir]: File exists in /home/stlucadm/public_html/clone.php on line 60
Happy cloning... check directory modules/smartclient for cloned module Consider modifying new module by editing language/english/modinfo.php and images/mysection_slogo.png manually (if you care)

The cloning of the module didn't work this time as well.
The first clone went smooth and the module is functional.


These are the parameters i've used for the 2nd clone:
'SMARTPARTNER' => 'SMARTDINING',
'SmartPartner' => 'SmartDining',
'Smart Partner' => 'Smart Dining',
'SPARTNER' => 'SDINING',
'Smartpartner' => 'Smartdining',
'Partner' => 'Dining',
'Partenaire' => 'Dining',
'partenaire' => 'dining'

What could be wrong?

Cheers
Edwin

2
Edwinspie
Re: UPDATE Smartpartner 1.4 (RC 1) clone problem
  • 2007/4/5 21:55

  • Edwinspie

  • Just popping in

  • Posts: 84

  • Since: 2006/8/18


Hi,

Seems like I figured out what the problem is.

The clone_info.txt files included in the smartpartner module is the same as the one included in the Smartsection module.
Altough these are both great modules (thanks to another top-job of the Smartfactory guys), there seems to be a bit of confusion with the included clone_info.txt files for both of the modules.

Anyway, to make a long story short:

This are the parameters you have to rename according to the clone_info.txt of smartpartner (which do work for cloning Smartsection) to rename the module to Smartclient:

Quote:

$patterns = array(
// first one must be module directory name
'smartpartner' => 'smartclient',
'SMARTPARTNER' => 'SMARTCLIENT',
'SmartPartner' => 'SmartClient',
'Smart Partner' => 'Smart Client',
'SPARTNER' => 'SCLIENT',
'Smartpartner' => 'Smartclient'
);



And this is what you actually need to do to clone Smartpartner! ( to in this case : smarttouroperator):

Quote:

$patterns = array(
// first one must be module directory name
'smartpartner' => 'smarttouroperator',
'partner' => 'touroperator',
'SMARTPARTNER' => 'SMARTTOUROPERATOR',
'SmartPartner' => 'SmartTouroperator',
'Smart Partner' => 'Smart Touroperator',
'SPARTNER' => 'STOUROPERATOR',
'Smartpartner' => 'Smarttouroperator',
'Partner' => 'Touroperator',
'Partenaire' => 'Touroperator',
'partenaire' => 'touroperator'
);


Hope this saves other Smartpartner users a few hours of struggling!

Cheers,

Edwin

Login

Who's Online

389 user(s) are online (322 user(s) are browsing Support Forums)


Members: 0


Guests: 389


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits