Showing posts with label wordpress. Show all posts
Showing posts with label wordpress. Show all posts

Configuring WordBB to work with MyBB

WordBB is a Wordpress plugin designed to bridge MyBB and Wordpress together.  The purpose of doing this is so they work together. It's a way to integrate your existing MyBB forum into your Wordpress site. 

If you already have a Wordpress site, installing the plugin is easy.  Just log into your WP site and click the plugins link and then "add new' and search for "wordbb".  Once you find it, you can install and activate it.

Then comes the tricky part.

Once WordBB has been installed and activated, you'll have to click the links that reads, "WordBB Options" to configure it. And in order to configure it, you'll need to have some information handy (namely, the details of your database setup - that is, the database you setup during your MyBB installation).

Hopefully, you kept some notes during the installation process to make it easier to retrieve this information.  If you didn't, you'll have to log into your web host account and look up the details of your database.  Here's what you need to know:
  • The name of your MySQL database that was set up during MyBB installation. 
  • The username for that database
  • The password for the database
  • The Host Server for the database
You should keep these details in a file so you can refer back to them again if needed.  Another thing you need to know is the URL of your MyBB forum. This is pretty straight forward.  The URL would look something like:  http://www.yourdomain.com/forum/

There is one other thing you'll need to complete the WordBB configuration and this is where most people get hung up.You'll need to know is the "MyBB Absolute path on the server"

The easiest way to get this piece of information is to create a PHP file and paste some code into it and upload it to your server in the MyBB root folder (i.e., the folder you installed MyBB to).  This PHP file (when executed) will tell you what the absolute path is.  So here's what you do.

Open you're favorite web editing software (I use Dreamweaver) and create a new PHP file.  Name the file "rootchecker.php" and save it to the same folder you installed MyBB to.  I installed MyBB to a folder named, "forum" on my root directory, so that is where I saved the rootchecker.php file to.

Now copy the code below and then paste it into the rootchecker.php file just after the tag. Then save the file and upload it.
echo $_SERVER['DOCUMENT_ROOT'];
?>

Once the rootchecker.php file has been uploaded, open your internet browser and type in the URL (being sure to replace "yourdomain.com" with your actual domain name). :
http://www.yourdomain.com/forum/rootchecker.php

You'll see a string of text when you're done.  That text is the path to your root folder. Copy that entire string of text and paste it on the "MyBB absolute path on server" field on the WordBB Options page and save the changes. 

If you see an error message saying, "can't find global.php file' after saving the changes, you'll have to follow the steps below. 

First re-open your "rootchecker.php" file and find the code previously pasted into it and remove it.  In it's place, copy and paste the code below:

Save the file and reupload it. Then open your internet browser again and go back to the URL mentioned above (http://www.yourdomain.com/forum/rootchecker.php).  Once again you'll see a string of text.  Copy and paste this text into the "MyBB absolute path on server" and save.  Hopefully you won't see any more error messages.  

Forcing WWW to Show in URL in Wordpress

Wordpress is a great place to host a blog, but it does have its frustrations.  I won't go into them all here, but one thing that I and others have found very frustrating is forcing the web address to show 'www' before the domain name. 

Why is this important?  There are several reasons.  First, search engines don't like it when a website's address will sometimes show as www.example.com and other times it shows as example.com.  Search engines will sometimes view this as two different websites with duplicate content.  The easiest way to fix this is to force the URL to always show the www before the domain name.

Some Wordpress Plugins (like S2Member) also require the 'www' in the URL in order to function properly.  The trick, however, is getting the job done.

If you search the web, you'll find a plethora of information about how to force the www in the URL.  Some sites suggest editing the HTACCESS file.  This may or may not work depending on your setup, but it didn't work for me.

I also tried calling tech support for my host (GoDaddy.com) for help in reconfiguring the CNAME in the Domain Manager.  This didn't work either.  The good folks at GoDaddy informed me that things were set correctly to force the www on the server, but that Wordpress was overwriting their configuration. 

After hours of frustration of trying every suggestion on the web, I finally found the answer in the Wordpress settings (and you wouldn't believe how simple it was to fix)!  Here's how I fixed the problem.
  1. Log into Wordpress
  2. On the left side of the screen, scroll down to SETTINGS and click GENERAL
  3. Change the Wordpress Address URL) to www.example.com (replacing example.com to your domain)
  4. Change the SITE URL to www.example.com (replacing example.com  with your domain)
  5. Scroll down and click the blue SAVE CHANGES button
 That's it.  No need to edit the HTACCESS file, PHP files, or any other files (in this case anyway).