Rename module without uninstalling

 
I want to change the name of the module without uninstalling. I do not want to lose the content in this module. I mean humor module from modzzz. I translated using the key language in the admin panel from "Humor" to "Mix" but in link is still humor.

For eg: http://www.areavis.com/m/humor/view/Kijow-pograzony-w-chaosie-Zdjecia
I want change to: http://www.areavis.com/m/mix/view/Kijow-pograzony-w-chaosie-Zdjecia

Is it possible? Please help, how can I do this?
Quote · 21 Feb 2014

You may have to ask for some assistance on this.  However, the permalinks are set up in the database and trying to just change by language keys may not work.

changing modules are not easy as you have to be careful not to break the module.

You can always backup the tables that hold the content and then import back in after the changes.

Geeks, making the world a better place
Quote · 21 Feb 2014

You will need a programmer to do this and it's going to take some effort because there are a lot of references to the module uri in different database tables and also in the module files.

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 21 Feb 2014

You will have to uninstall the module.  Therefore, you will need to backup your existing data from the module tables so you can import them back in afterwards.

There are some threads on the forum for renaming modules.  You would need to read up on the procedures involved before attempting it.  Also, your first attempt may fail.  Then there is the issue of the class names that need to be contended with.  You can try to just change the name but you will probably have to make deeper changes including the class names.

If this is not something that is of great importance, you may not want to spend the money that this change will require.

Geeks, making the world a better place
Quote · 21 Feb 2014

Thank you. I found some instructions here on BoonEx but in fact it is hard to do. Maybe creating a subdomain for this module can help? For example www.mix.areavis.com?

Quote · 23 Feb 2014

 

Thank you. I found some instructions here on BoonEx but in fact it is hard to do. Maybe creating a subdomain for this module can help? For example www.mix.areavis.com?

Then links will look like www.mix.areavis.com/humor/ which will not make too much difference and installing a separate Dolphin on a separate subdomain and sync their databases will cause a headache (if ever possible to do so). You have to change the links structure inside the module program files, there's no other ways.

http://boonexpert.com
Quote · 23 Feb 2014

It would be a reasonably easy thing to do, but I don't own the module, so I can't tell you specific details.  First, you'd do a case sensitive search and replace in all the module files to replace all instances of 'humor' with 'mix',  'Humor' becomes 'Mix', 'HUMOR' becomes 'MIX', and 'humor' becomes 'mix'.  Then you'd have to export the modules database tables to files, do the same type of search and replace, empty all the DB tables, then import the changed sql.  You'll need to appropriately rename the modules DB tables because the search and replace will have renamed all the DB queries.  There will probably be entries in the sys_permalinks, sys_options, sys_menu_top, sys_menu_admin, and perhaps others.... you need to study the modules install.sql, and uninstall.sql files to see what DB tables the module is using.

You'll need to rename the module's class files.  Then,after all that, you replace the modules files in a new /modules/vendor/mix/ folder.  

I think it's easy anyway.... others may not.  Perhaps you could clone your site in a sub directory and give it a try. 

Maybe you should have renamed the module before you ever installed it in the first place... but you probably already realize that.

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 23 Feb 2014

I agree with previous comments... all the steps are easy as long as you're smart and meticulous on how you go about it (especially: "case sensitive search and replace").  Each time I've made a module name change I had to go over the code and through the db several times... plus test the renamed module.  The suggestion to try it on a duplicate test site is essential... and, as you'd expect, you must back up everything before you move it to the live site and be prepared to roll back if something unexpected happens that you can't fix immediately.  Good luck!

http://pkforum.dolphinhelp.com
Quote · 24 Feb 2014

 Exactly so. Unfortunately, too late I thought about it and now I have a problem. I also have a lot of unique content in this module to take the risk and install it again. I have to make sure that there is some way that will bring in 100% good effect.


So changes in the table will not miss me ... let it be as time consuming, but important to me.


Thanks for all the advice. It's late night for me, but I'll look more closely tomorrow.

Maybe you should have renamed the module before you ever installed it in the first place... but you probably already realize that.

 

Quote · 24 Feb 2014

If the module is only being renamed, then all of the drop table queries can be removed from the modules uninstall.sql before uninstalling which will prevent the tables from being removed when uninstalled. That way the tables will still be there when the new version is installed.

Then when the new version is installed, because of the renamed tables, the new one will have new table names as well. You would then just delete the new tables and rename the old ones to the new names and all of your data is still there.

There is also the jobs section in the market where people that don't know how to do this can hire someone that does.

https://www.deanbassett.com
Quote · 24 Feb 2014

What makes it easier than most, is that 'humor' is a unique word and you won't have to worry about incorrectly replacing it with 'mix'.  Renaming the module will probably take 5 minutes.  Unlike the 'groups' module, where if you incorrectly replace 'group' when you shouldn't have, you break functions.

Two indispensable tools for this sort of thing:

Agent Ransack Download

Notepad++ Download

The trouble with trying to get someone other than the module vendor to do this, is that you can't just turn over the modules source code to a third party without the vendors permission..... well you could, but it just wouldn't be polite. 

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 24 Feb 2014

I suggest hiring someone to do this for you; I think it is legal to hire someone to do this for you; it has been discussed before on a different topic.  You can also back up the tables from the modules just to be on the safe side as well.

Perhaps Modzzz will be willing to rename it for you for a reasonable fee.

I am curious; what would others consider a reasonable fee for this job?

Geeks, making the world a better place
Quote · 24 Feb 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.