How to setup email forwarding for MailGun

When using MailGun you will want to setup an email forwarding known as “routing” which will allow any incoming email to to be forwarded to an existing email such as Gmail, Yahoo, Outlook etc.

Log into your MailGun account and click on the “Routes” tab. Now click on the “Create Route” button which you will now enter the following:



Routes are evaluated in the order of priority from the lowest value to the highest value.

Filter Expression:

match_recipient("[email protected]")

This is what will match any emails that are sent to the above email which will trigger the fowarding to the bellow email.

If you want to use catchall replace the above with:



forward("[email protected]")

This is where the email will be forwarded to. You can replace with any email at an external host such as Gmail.


Forwarding me my email

While you can type anything you want that will help you identify what this action does. I named mine the above.

Now you’re all set. You can add as many as you wish to have different users sent to different emails.

How to move one cPanel server to another

In this tutorial I will explain a simple and straightforward method for migrating your cPanel accounts from one server to another. This is a great tool if your moving servers or are a reseller moving to another server.

The following are the requirements:

  1. cPanel on both servers
  2. WHM access on the new server (one that the accounts are being moved to)
  3. root access on the new server

Note: The server you are transferring the accounts from is known as the “old server” and the server you are transferring the accounts to are known as the “new server”.

Let’s get started now.

  1. Log into the WHM on your new server and create a new account called “restore”, or something you would remember. Remember to save the FTP address, username and account password because, we will need these things later.
  2. Log into the cPanel account you are wanting to transfer on the old server.
  3. Click on Backup icon on the main cPanel screen followed by Generate/Download a Full Backup on the page you just loaded.
  4. Once there, select the backup destination to be “Remote FTP Server”.
  5. Enter your email address for verification, followed by all of the FTP account information for the account you created earlier called “restore”.
    • Remote Server: new server’s address
    • Remote User: restore
    • Remote Password: restore’s password
    • Port: 21
  6. Then, click “Generate Backup”. This may take some time to backup the files, depending on how large the account is. You should receive an email provided in the above info once it is complete.

Once the above has completed backing up and remote uploading via FTP to your new server, we will need to log into your new server using SSH.

  1. Download Putty if you haven’t already, it’s a great FREE SSH program for Windows.
  2. Log into SSH on your new server making sure to connect to the correct IP and Port (default port is 22).
  3. Type the following in order, one command per line:
    • cd /home/restore/public_html
    • ls

After running the list command above (ls), you should see the tar file of the account on the old server. This means that you have successfully sent the backup file via FTP to your new server.

Now we will need to move the tar file to your new server’s /home directory, which you will execute with the following command in SSH:

mv tar_file_name /home
  1. Now, log into WHM on your new server and navigate to “Backup >> Restore a Full Backup/cpmove file”
  2. Once here, you should see the old account’s username under “Possible cpmove archives found:”. If you do not, log back into SSH and be sure that the account’s tar file has been moved into /home.
  3. Type in the account name in the text field in WHM, which is proceeded by “Enter the username for the account you wish to restore:”.
  4. Click “Restore”.

You are now done! Repeat this process for additional accounts.

How to disable memberslist viewing in phpBB3

In this tutorial I will explain how to disable memberlist viewing from guests/members, so only admins/mods can view it.

Open memberlist.php, Find:

// The basic memberlist

Before add:

if (!$auth->acl_get('m_') || !$auth->acl_get('a_'))

Open styles/prosilver/template/overall_header.html, Find:

Replace with:

If you want to only block the memberlist do the following:


if (!$auth->acl_get('m_') || !$auth->acl_get('a_'))


if ($mode != 'group' && (!$auth->acl_get('m_') || !$auth->acl_get('a_')))

How to convert from Movable Type to WordPress

This tutorial was written on WordPress 3.4.1 and works as of WordPress 3.4.1.

Part 01 – Installations

  1. Install a FRESH copy of WordPress (
  2. Login to your Movable Type site and export your blog posts. You will be prompt to save a .txt file, which is what you want.
  3. Install the “Movable Type” converting plugin (

Part 02 – Plugin and Export Changes

Once the plugin is installed we are going to have to edit the plugin and add in the necessary changes to accommodate line spacing because, line spacing in the vanilla plugin isn’t correct and wont register line spacing like it should.

Open wp-content/plugins/movabletype-importer/movabletype-importer.php, find the following:

				// Processing multi-line field, check context.

				if( !empty($line) )
					$line .= "\n";

Replace with the following:

				// Processing multi-line field, check context.

				if( !empty($line) )
					$line .= "\n\n";

Now we will need to edit the exported .txt file from your previous Movable Type installation. Open your exported .txt file and search for the following:

CONVERT BREAKS: __default__

Change the above to the following:


Note: There are more than one instance of this and should be mass changed. I suggest going up to “edit” then “replace” and mass replacing the instance, notepad works great for this. Once you are done, save and continue on to step 03.

Step 03 – Uploading Export and Running Conversion

Now that we have made the necessary changes – we are going to want to upload the .txt file to your WordPress folder.

  1. Rename your exported Movable Type .txt file to “mt-export.txt”. This must be named just that or the importer won’t accept it.
  2. Upload “mt-export.txt” to the root of /wp-content/
  3. Once your upload is done – login to your WordPress admin and navigate to /wp-admin/ » Tools » Import » Movable Type and TypePad
  4. Once there click “Import mt-export.txt”

You will be prompt to merge your old usernames into new accounts on WordPress. If the authors are already registered you can select there names from the drop down list. If the authors are not current registered members of your WordPress blog – you can Type there new names in or merge all posts into your account.

Note: If you have a huge blog, depending on your web host the importer might time out. This is fine because, the importer has a feature to not import duplicates BUT when you go back to re import it will prompt you again to type in the new authors. Remember what you did with the previous settings and reapply them. The importer will skip the duplicate article and proceed where it left off.

Repeat this again and again if the importer times out. It will eventually import everything.

Step 04 – Mass Editing Article Slugs

I’ve noticed that after my successful import the article slugs were cut off and had annoying underscores in the actual link. Thanks to “Clorith” from the WordPress IRC Channel – he already had a script that would fix this issue on a mass change level. As you can imagine editing 2,000+ articles would take a long unneeded time.

Read “How to mass change article slug URLs in WordPress” on how to achieve this.

Step 05 – Changing Loose Comment Author ID’s

This step is optional but if you have comments and specially you or another made them, your going to want to make sure the comment ids are linked to your account. Specifically for later use with various addons.

  1. Login to your phpMyAdmin inside cPanel if you use cPanel.
  2. Navigate to your WordPress table and click the “SQL” tab.

Now I have found it easier to select and update by comment_author_email since it’s unique to you.

UPDATE HYv3g_comments SET user_id = '1' WHERE comment_author_email='YOUR EMAIL';

Repeat the above for any other authors you want to mass change or if you used more than one email to comment. Also make sure to change the user_id to the correct user id you are updating.

This concludes the tutorial and if you have any questions feel free to comment. If you are looking for your Movable Type blog to be professionally moved to WordPress feel free to contact us for a quote.