I'll show you how to replace "com_jomres" with "com_butter" in the links!
You can use any other name "butter" but it must be the same name, as I show you below.

 

When we are all done your URL will look like this:

http://yourdomain.com/index.php?option=com_butter

Instead of this:

http://yourdomain.com/index.php?option=com_jomres

 

>> !! THIS IS FOR JOOMLA ONLY !! <<

<-><-><-><->
      STEP 1:
<-><-><-><->

BACKUP YOUR SITE!
Use Akeeba Backup for Joomla (free)
www.akeebabackup.com/

 

<-><-><-><->
      STEP 2:
<-><-><-><->

PUT YOUR SITE "OFFLINE"

 

<-><-><-><->
      STEP 3:
<-><-><-><->

WE ARE NOW GOING TO SEARCH AND RENAME "com_jomres" DIR

Add a file called "searchjomres.php" in the ROOT folder "public_html" or "www":

Copy and Paste the code below into the "searchjomres.php" file, and save it:

 

<?php
echo shell_exec('
#!/bin/bash
find / -type d -name "com_jomres" > Results-Jomres-Dirs.txt | tr -d "\r"
echo "  end"
');
?>

 Now run it!

It will make a file called: Results-Jomres-Dirs.txt
Open it up and see where the "com_jomres" dir(s) are located.
Now manually rename all the directories in the file from "com_jomres" to "com_butter".

Example:
Change this:
/home/username/public_html/administrator/components/com_jomres

To This:
/home/username/public_html/administrator/components/com_butter

 

<-><-><-><->
      STEP 4:
<-><-><-><->

RENAME JOMRES.PHP TO BUTTER.PHP FILES

Manually Change this:
public_html/administrator/components/com_jomres/jomres.php

To This:
public_html/administrator/components/com_butter/butter.php

<-><-><-><->

Manually Change this:
public_html/components/com_jomres/jomres.php

To This:
public_html/components/com_butter/butter.php

 

<-><-><-><->
     STEP 5:
<-><-><-><->

RENAME "COM_JOMRES" TO "COM_BUTTER" INSIDE ALL THE FILES

Copy and Paste the code below into a file called "renamecomp.php", and save it in the ROOT dir:

<?php
echo shell_exec('
#!/bin/bash
find ./ -type f -exec sed -i \'s/com_jomres/com_butter/\' {} \;
');
?>

 

If the above code does not work, try this one. This worked for me (Jan 2018).

<?php
echo shell_exec('
#!/bin/bash
perl -pi -w -e \'s/com_jomres/com_butter/g;\' $( grep -rl \'com_jomres\' )
');
?>


If everything looks good, Run it! Let it run until your browser stops. It should take about 3 to 5 minutes. Sometimes longer. This depends on your server load.
SO DON'T TOUCH ANYTHING WHILE THIS IS SEARCHING THROUGH ALL YOUR FILES AND REPLACING "com_jomres" with "com_butter" OR YOU WILL HAVE PROBLEMS LATER!

[What is happening right now with the script running above. It is searching inside EVERY file to see if "com_jomres" is there. If so, it will replace it with "com_butter"]

 

<-><-><-><->
      STEP 6:
<-><-><-><->

RENAME COM_JOMRES TO COM_BUTTER IN THE MySQL DATABASE

Open cPanel, or the place where "phpMyAdmin" is located.
Open "phpMyAdmin"
Select the Main Site Database where Jomres is located.
Select "Export", and save this SQL file on to your computer.
Open this SQL file with a text editor like UltraEdit. Maybe Note Pad will work but I always use UltraEdit.
Search and replace this "com_jomres" to this "com_butter" in the SQL file, when all done, save it.

The reason why we are doing this here is because everytime Jomres is installed or updated it writes this "com_jomres" in the database. This info is related to the Admin of Jomres, and other files in the system.

After you replace "com_jomres" to "com_butter" in the SQL file that you just downloaded, delete (Drop) "ALL" the tables, and data, in the database, on your server where this database came from.

Now we are going to Add the updated database back.
With "phpMyAdmin" still open, Select the database, then select "Import".
Now upload your SQL file, after a few seconds you should see all green, okay!

 

<-><-><-><->
      STEP 7:
<-><-><-><->

Open this file:
/libraries/jomres/classes/minicomponent_registry.class.php

Go to about line: 206

You should see something like this:

 $jrePath = JOMRESCONFIG_ABSOLUTE_PATH.'templates'.JRDS.$templateName.JRDS.'html'.JRDS.'com_jomres'.JRDS;
        } elseif (this_cms_is_wordpress()) {
            $jrePath = get_stylesheet_directory().JRDS.'html'.JRDS.'com_jomres'.JRDS;
        } else {
            return;
        }

 From above Change: "com_jomres" to "com_butter"



That's It!

If this didn't work for you, then you did something wrong. Lucky you had that backup, RIGHT?
REMEMBER: Every time you update Jomres you will have to do this all over again.

 

Here are my websites:
nwbnb.com/index.php?option=com_nwbnb

If you are not able to access my websites above then your IP is being blocked.