• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: can I install newsmodule again with another name?
PostPosted: Wed Feb 02, 2011 9:40 pm 
Offline
New Member

Joined: Tue Sep 14, 2010 10:08 am
Posts: 2
Hi
Newmodule has good features like custom field. I want to install it again with another name called "videos" or "anyname"

is it possible?

Thank you.


Top
 Profile  
 
 Post subject: Re: can I install newsmodule again with another name?
PostPosted: Wed Feb 02, 2011 10:20 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Tue Dec 23, 2008 8:39 pm
Posts: 1316
Why?

I [mis]use News, CGWhatever modules for many different purposes on the same site, but use different categories to keep them separated.


Top
 Profile  
 
 Post subject: Re: can I install newsmodule again with another name?
PostPosted: Thu Feb 03, 2011 2:20 am 
Offline
Administrator
Administrator
User avatar

Joined: Thu Mar 09, 2006 5:32 am
Posts: 11818
Location: Arizona
I've converted some modules to be another module, you have to do a search/replace on all the files and change the name of some of them...

_________________
Extensions » Modules/Tags click the name of the module/tag or Help to the right to get its parameters.
Right click and view source is a great way to see what you have to work with.
Check ver. CMSMS, PHP, server OS, in System Information page.
Default content http://multiintech.com/defaultcontent/
People are Wonderful
Business is Great
Life is Terrific
Ever wonder what happened to the Album module? Well it is alive and well.
http://album.multiintech.com/
Image


Top
 Profile  
 
 Post subject: Re: can I install newsmodule again with another name?
PostPosted: Thu Feb 03, 2011 3:12 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Tue Dec 23, 2008 8:39 pm
Posts: 1316
Dr.CSS wrote:
I've converted some modules to be another module, you have to do a search/replace on all the files and change the name of some of them...

Also have to change table names internal to all the files.


Top
 Profile  
 
 Post subject: Re: can I install newsmodule again with another name?
PostPosted: Thu Feb 03, 2011 12:37 pm 
Offline
Power Poster
Power Poster

Joined: Fri Jun 06, 2008 5:54 pm
Posts: 345
FYI - There is a UDT elsewhere in this forum (in the Dutch or German sections) that can be used to duplicate an existing module. I would have searched for it and provided a link here, but search seems to be down.

-S


Top
 Profile  
 
 Post subject: Re: can I install newsmodule again with another name?
PostPosted: Thu Feb 03, 2011 12:45 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Wed Sep 05, 2007 8:03 pm
Posts: 3651
Location: The Netherlands
here it is: viewtopic.php?f=7&t=38264

_________________
Get nice guestbook messages from your site visitors with the brand new Gbook module.
Integrate Piwik Web Analytics in your site admin with the Piwik module.
Extend your global site settings with the Custom Global Settings module.
The Fourth Dutch CMS Made Simple Workshop on April 9 2011 was great fun! Read all about it here
Announcement: The Fifth Dutch CMS Made Simple Workshop coming up?


Top
 Profile  
 
 Post subject: Re: can I install newsmodule again with another name?
PostPosted: Thu Feb 03, 2011 3:26 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Tue Dec 23, 2008 8:39 pm
Posts: 1316
Does that UDT really duplicate the module, or give it another menu item with another name? I can't imagine a script to truly duplicate a module and make them independent of each other.


Top
 Profile  
 
 Post subject: Re: can I install newsmodule again with another name?
PostPosted: Thu Feb 03, 2011 4:18 pm 
Offline
Power Poster
Power Poster

Joined: Fri Jun 06, 2008 5:54 pm
Posts: 345
It actually does duplicate the module. AFAIK - it duplicates the PHP code and gives the new module the name you specify. It also replicates the tables and given them new names as well.


Last edited by spcherub on Thu Feb 03, 2011 9:02 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: can I install newsmodule again with another name?
PostPosted: Thu Feb 03, 2011 8:51 pm 
Offline
Administrator
Administrator
User avatar

Joined: Thu Mar 09, 2006 5:32 am
Posts: 11818
Location: Arizona
@Wishbone

If I make a new module form an existing one it will make new tables in DB install so I see no need to change them by hand in DB, or I don't know what you mean...

_________________
Extensions » Modules/Tags click the name of the module/tag or Help to the right to get its parameters.
Right click and view source is a great way to see what you have to work with.
Check ver. CMSMS, PHP, server OS, in System Information page.
Default content http://multiintech.com/defaultcontent/
People are Wonderful
Business is Great
Life is Terrific
Ever wonder what happened to the Album module? Well it is alive and well.
http://album.multiintech.com/
Image


Top
 Profile  
 
 Post subject: Re: can I install newsmodule again with another name?
PostPosted: Thu Feb 03, 2011 9:11 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Tue Dec 23, 2008 8:39 pm
Posts: 1316
I was wondering more about the table names inside the code. If the table names are clearly specified in the module.install.php file, I guess they can lift the table names from the table creation statements and change all instances of the table name in the code. If you use variables anywhere in the table names, I can't see it working. Very clever idea.. I might try it out.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner