renaming module

Any way to rename the URL on a module, without having to rename every instance of its name throughout the whole module?

 

For example, I want to change groups to say - clubs ( I know, already been done - just an example!)

I can change the lang keys of any pages, blocks etc that are showing, but then the URL will still show /m/groups instead of /clubs ...

 

Is it possible to change the URL without having to search and change every GROUP, Group, group instance module wide...

 

Quote · 21 Jun 2012

If your looking for a short cut to run 2 copys of the same module by only changing the URL to one, then it will not work.

Reason is class names, language keys and tons of other stuff will conflict.

But these are the areas to look for.

In modules config file.

'home_dir' and 'home_uri'

In the install and uninstall sql files of the module. The permalink settings. Sample from one of my modules.

-- permalinks
INSERT INTO `sys_permalinks` VALUES (NULL, 'modules/?r=language_edit_pro/', 'm/language_edit_pro/', 'dbcs_language_edit_pro_permalinks');

Also check any links for the top menu and admin menu.



Then if the module has a spot in the .htaccess file like forum and blogs do, then that has to be changed as well.

But that is no guarentee that it will work 100%. If any part of the module has a link to the URL hard coded in, then that will be missed by just checking those sections.



https://www.deanbassett.com
Quote · 21 Jun 2012

 deano, did you get my message about zynga, are you going to make a run at that? 

If your looking for a short cut to run 2 copys of the same module by only changing the URL to one, then it will not work.

Reason is class names, language keys and tons of other stuff will conflict.

But these are the areas to look for.

In modules config file.

'home_dir' and 'home_uri'

In the install and uninstall sql files of the module. The permalink settings. Sample from one of my modules.

-- permalinks
INSERT INTO `sys_permalinks` VALUES (NULL, 'modules/?r=language_edit_pro/', 'm/language_edit_pro/', 'dbcs_language_edit_pro_permalinks');

Also check any links for the top menu and admin menu.



Then if the module has a spot in the .htaccess file like forum and blogs do, then that has to be changed as well.

But that is no guarentee that it will work 100%. If any part of the module has a link to the URL hard coded in, then that will be missed by just checking those sections.



 

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 22 Jun 2012

 

 deano, did you get my message about zynga, are you going to make a run at that?

 

 

I am looking into it.

https://www.deanbassett.com
Quote · 22 Jun 2012

Thanks Deano. Ive taken 3rd part mods before, done a search and change on mod name and managed to completely change them to a new mod... Trying to do same with Groups though...

I don't need groups to run at same time, just to completely re-name it. I would have thought this would have been same method but it just pulls up mySQL errors as I sent you before!

 

Will have a look at the files you pointed out, see if I can get it to work this way!

Thanks

Quote · 22 Jun 2012
 
 
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.