xoops forums

shperk

Just popping in
Posted on: 2007/3/28 4:07
shperk
shperk (Show more)
Just popping in
Posts: 10
Since: 2002/12/16
#1

Cloning module Article 1.0

I need to clone module Article. This is beautiful module & I want to do some copies on my site/
In the Article FAQ has instructions for cloning
But when I try to change files, I have installations errors.
Anyone done this change? May this module cloning?
May be, anybody has cloning files of this module?

And one another question.
In module Smartsection has php script for cloning: clone.php . It is wonderful solve of cloning problem: no error, no problem.
May be possible create something similar?

Bassman

Friend of XOOPS
Posted on: 2007/3/28 4:33
Bassman
Bassman (Show more)
Friend of XOOPS
Posts: 1272
Since: 2003/5/23
#2

Re: Cloning module Article 1.0

Not sure about cloning, but you may want to upgrade to Article 1.03: see the news item on the front page.

phppp

XOOPS Contributor
Posted on: 2007/3/28 5:19
phppp
phppp (Show more)
XOOPS Contributor
Posts: 2857
Since: 2004/1/25
#3

Re: Cloning module Article 1.0

two different modules, one is "article" the other is "articles"

check the readme file packaged inside module

shperk

Just popping in
Posted on: 2007/3/28 5:46
shperk
shperk (Show more)
Just popping in
Posts: 10
Since: 2002/12/16
#4

Re: Cloning module Article 1.0

Sorry. On Front Page info about module Articles.
But I ask about module Article. It is another item.

shperk

Just popping in
Posted on: 2007/3/28 6:07
shperk
shperk (Show more)
Just popping in
Posts: 10
Since: 2002/12/16
#5

Re: Cloning module Article 1.0

Quote:

phppp wrote:
check the readme file packaged inside module

I read
But on installation I get message:
Installing Article

  
-- -- -- -- -- -- -- CREATE TABLE `artworks_artcat` ( `ac_idint(11unsigned NOT NULL auto_increment, `art_idint(11unsigned NOT NULL default '0', `cat_idmediumint(4unsigned NOT NULL default '0', `uidmediumint(8unsigned NOT NULL default '0', `ac_registerint(10unsigned NOT NULL default '0', `ac_publishint(10unsigned NOT NULL default '0', `ac_featureint(10unsigned NOT NULL default '0'PRIMARY KEY (`ac_id`), KEY `cat_id` (`cat_id`), KEY `art_id` (`art_id`) ) TYPE=MyISAM is not a valid SQL!

I wrote $GLOBALS["ART_DB_PREFIX"] = "artworks" in the vars.php and change create table string in mysql.sql, change all file names in folder template.


What I do not right?

Bassman

Friend of XOOPS
Posted on: 2007/3/28 10:15
Bassman
Bassman (Show more)
Friend of XOOPS
Posts: 1272
Since: 2003/5/23
#6

Re: Cloning module Article 1.0

Quote:

phppp wrote:
two different modules, one is "article" the other is "articles"

check the readme file packaged inside module


Oops, my mistake :)

shperk

Just popping in
Posted on: 2007/3/29 2:57
shperk
shperk (Show more)
Just popping in
Posts: 10
Since: 2002/12/16
#7

Re: Cloning module Article 1.0

2 phppp:
Do not have answer?
May be, you have clone package for example?
I need...

irmtfan

Module Developer
Posted on: 2007/3/29 6:03
irmtfan
irmtfan (Show more)
Module Developer
Posts: 3419
Since: 2003/12/7
#8

Re: Cloning module Article 1.0

i clone it successfully so you have a mistake somewhere.
try again and double check all instructions also mentined that "DB perfix" and "DIR name" are different.

shperk

Just popping in
Posted on: 2007/4/4 19:16
shperk
shperk (Show more)
Just popping in
Posts: 10
Since: 2002/12/16
#9

Re: Cloning module Article 1.0

Quote:

irmtfan wrote:
i clone it successfully

Errors in installation module with new DB prefix. If I install clone module with different name, but DB prefix not change ("art") installing process is OK.
When I change DB prefix, I getting up error message.

Warningarray_keys(): The first argument should be an array in file /modules/myart/include/functions.render.php line 57
Warning
Invalid argument supplied for foreach() in file /modules/myart/include/functions.render.php line 57

And error in SQL string in file mysql.sql

LiliVG

Just popping in
Posted on: 2007/4/7 21:13
LiliVG
LiliVG (Show more)
Just popping in
Posts: 65
Since: 2005/12/25
#10

Re: Cloning module Article 1.0

shperk: The cloning faq you linked to was published 11/05 - almost a year and a half ago. The Article 1.0 module has a "readme.clone.txt" file included. You'll notice those instructions are slightly different than the instruction in the older FAQ you linked to. :)