Print

SiteGround Tutorials


Simple Machines Forum Tutorial

How to use SMF forum software?

Simple Machines Forum is an Open Source bulletin board software package. SMF is free to download and use and with its template management allows you to easily customize your forum outlook. Its unique SSI (Server Side Includes) function lets you have your forum and your website interact with each other.

SMF is a PHP/MySQL based solution and offers a rich set of features, which, however, does not overload your web server.

This SMF tutorial will help you learn how to install your discussion board and how to integrate it with other tools. Below you can have a look at the topics we have included:

With SiteGround SMF hosting services each customer receives a free installation of SMF on his/her website. Our support team has acquired serious experience in managing SMF and will make sure that your forum runs trouble-free!



SMF Hosting
(c) Copyright 2006 SiteGround Forum Hosting Services. All rights reserved

You may use this tutorial for your own use. You may not distribute it in any form without the express permission of the publisher. You may provide a link to the publisher's web site, where this tutorial can be used from. This tutorial is provided free of charge and without any warranty of any kind.

Next

SMF Installation

Get a FREE installation of Simple Machines Forum with SiteGround SMF hosting Package!

SMF is the next generation of forum software, and best of all it is and will always remain completely free. It is available and can be installed easily via Fantastico in your cPanel:

Check out the SMF installation video tutorial:
SMF Installation Video Tutorial SMF Installation Video Tutorial

SMF Installation Detailed Tutorial

Once logged into Fantastico, select the SMF link from the list of scripts that appears to the left and follow the instructions during the process.

If your hosting account does not have Fantastico tool, you can click here to learn how to install SMF manually.


Manual Installation of SMF

Get a FREE installation of Simple Machines Forum with SiteGround SMF hosting Package!

First of all, you'll have to download your Simple Machines Forum (SMF). This can be done easily from the SMF official website.

Once the SMF installation package is on your local computer, you're ready to upload it to your web hosting account. There are two ways to do it. The first one is to use an FTP client. A good way to understand how to do that is to visit the FTP tutorial.

Please note that you'll have to create a directory inside your public_html folder where you want your SMF to be stored (e.g. /public_html/forum), then you can use the drag and drop option of the FTP client to upload your SMF install package to the directory you've just created. Once it's uploaded you should log in into your cPanel > File Manager and extract your SMF install package.

The other way to upload the package is to do it directly through cPanel's File Manager. More information on how to do this can be found in our cPanel tutorial.


Manual Installation of SMF

Now you should create a database for your SMF forum. The database will be used by your SMF installation for storing all comments, polls and results, and almost everything else that SMF needs to remember.

To create a database, you should log into your cPanel and click on MySQL Databases. Look for the "Create Database" button. Pick a simple name for the database (e.g. 'smf'), fill it in and click on the "Create Database" button.

Now that you have created the database, you also need to make sure that SMF will be able to access it. You need to create a MySQL user that has privileges for accessing the database.

Again, go to cPanel -> MySQL Databases and find the "Create User" button. Right above it, fill in a username and password for the MySQL user and click on the "Create User" button. It is a good idea to keep the username the same as the name of the database.

At this point, the only thing left to do regarding the database setup is to grant privileges to the user for the database. On the cPanel -> MySQL Databases page, find the two drop-down menus for users and databases, select your SMF database and the user you have created and click "Add". On the next page check the box next to ALL PRIVILEGES and click on "Make Changes".

We're now ready to proceed with the SMF installation.


Manual Installation of SMF

Assuming the previous steps went well, you should now have the SMF source files on your server with their appropriate permissions set. All that is needed now is to run the install.php file to configure your MySQL database, settings and admin account.

Open up your web browser and browse at

http://www.yourdomain.tld/forum/install.php

(where forum is the directory name you chose earlier). Provided you set the permissions correctly on Settings.php and Setting_bak.php, you should see a form asking for various settings. Fill these in as follows:

  • Forum Name: This will be the name of your forum. It starts as "My Community" but you should probably change it.
  • Forum URL: This is the url your Forum will be located at, the SMF installer should have worked this out for itself so in most cases you can leave this setting at its default value.
  • MySQL server name: This is where we specify the location of the MySQL database.. 99% of the time this will be localhost.
  • MySQL username: This is the Username for your MySQL database created earlier with your cPanel.
  • MySQL password: This is the password for your MySQL database created earlier with your cPanel.
  • MySQL Database name: This is the name of your MySQL database created earlier with your cPanel.
  • MySQL Database prefix: This is a prefix to the table names in your database. It enables you to run more than one application on a single MySQL database. You should generally leave it as smf_, unless you are installing a second copy of SMF on the same database.

Once you have filled in all of the settings, click on proceed, and you will now be asked for details of your admin account; this will create your username on the forum. As a security measure, you are also asked for your database password again. Once you have filled in the form, click on proceed.

Your Forum is now installed and you can browse to it. However, before doing so, it is VERY IMPORTANT that you delete the install.php file from the server as leaving it there is a major security risk. The installer will offer you a check box to do this, if it fails, you will see a warning on your forum, if this appears you must remove the file manually. To do so, use your FTP program to return to the directory where you installed SMF, locate install.php, select it, and hit delete or use the cPanel -> File Manager.

Congratulations! You have now successfully installed SMF. Follow the link to your forum. We hope you enjoy using SMF!


SMF Packages

At the official website of SMF you can find a lot of packages for your forum. Just visit the SMF Mods page and choose the mods you need.

To start managing your SMF, you need to login as an administrator. You can do that from the login form at the top left corner of your forum.

Once you have logged in with the administrator's credentials, you'll just have to click on the ADMIN button.

After that on the displayed page you'll see five sections at the left side of your screen named as follows:

  • Main
  • Configuration
  • Forum
  • Members
  • Maintenance

Find the link "Packages" in the "Main" section, click on it and you'll see the package manager page:

To install a new package just click on the link "Download Packages". After that by clicking on the "Browse" button at the displayed page, navigate to the package you've already downloaded to your local computer and click "Upload". Once it's uploaded you'll see a confirmation page.

To apply the package, you'll just have to go to "Browse Packages" and click on "[Apply Mod]" in front of the package you've just uploaded.

Make sure you read all the notes provided in the SMF installation package to avoid any further problems.


SMF Themes

At the official website of SMF you can find a lot of themes for your forum. Just visit the SMF Themes area and choose the themes you like.

To install a theme, you should go to your forum's admin area and click on "Themes and Layout" in the "Forum Configuration" section.

To install a new theme just click on the "Browse..." button to navigate to the theme you've already downloaded to your local computer and click "Install". Once it's installed you'll see a confirmation page.

Another option for installing the SMF theme is to extract the theme's .zip file on your local hard drive and to upload the files via FTP in the "templates" or "themes" folder of your SMF system.

To apply the new theme, go to "Themes and Layout", change the theme from the drop down menu in front of "Overall forum default:" to the new theme and then click the "Save" button.

Please, feel free to contact us if you have any questions or recommendations about this tutorial at: tutorials 'at' siteground.com

Joomla and SMF Forum

How to install SMF Forum component on your Joomla website

There are several Joomla-SMF integration solutions, integrations independently developed on the net. SiteGround's servers are perfectly set to ensure all of them work properly.

In this tutorial we will cover the most popular one which is distributed by Joomlahacks:

http://www.joomlahacks.com/joomla/components/Joomla-SMF_Forum/

Please follow these steps in order to install the component properly.

Step 1: Download Joomla's configuration.php file via FTP. It can be found in Joomla main directory. Open it with Notepad or another editor. Find and copy the following rows:

$mosConfig_db = 'username_joomla';
$mosConfig_password = 'yours';
$mosConfig_user = 'username_joomla';

The information in the quotes will be different on your site -

$mosConfig_db determines your Joomla database.
$mosConfig_password determines which is the password for your Joomla's database user.
$mosConfig_user determines which is your Joomla's database user.

The above information will be used when installing the SMF forum in the next steps.

Step 2: Follow the tutorial to install manually SMF forum in a subdirectory on your site. In this example we will call it forum, i.e. http://www.yourdomain.tld/forum.

Step 3: Register to Joomlahacks in order to be able to download the Joomla-SMF component.

Step 4: Install the Joomla-SMF component

Please, log in your Joomla admin panel and go to Installers -> Components:

Browse for the com_joomla_smf_forum_x.x.zip file you have previously downloaded and press the [Upload file and Install] button:

Step 5: Joomla-SMF configuration.

All that is left now is to configure the Joomla-SMF component. Please, Go to Components -> Joomla SMF Forum -> Configuration:

This is the most important step of the integration, and is essential that you complete all fields correctly:

Joomla-SMF configuration details:

  • SMF Absolute Path - the path where you installed SMF. You can use the path to the Joomla installation as reference. In our case it will be forum.
  • SMF Database Prefix - the default prefix is smf_. This should not be changed by default.

Fill in the above two and click on the [Save] button. Fix the errors, if any, and proceed by clicking on the click to patch links for the index files of Joomla and SMF. Clicking on the [Save] button after each change will help you avoid errors, and make it easier to revert wrong actions.

After completing all steps successfully, the SMF forum should work fine in your Joomla-based website. Well done!



Joomla Hosting
(c) Copyright 2006 SiteGround Web Hosting Provider. All rights reserved
Previous Next

Coppermine with Bulletin Boards

Integrating Coppermine with SMF (Simple Machine Forum)

The integration process with SMF is absolutely the same as the one for phpBB.(See Coppermine with phpBB for reference).

Select the Simple Machines (SMF) component from the bridging manager and click next.

Coppermine - Simple Machines

On the next step tell the Bridging Manager where is your SMF forum installed (in our case in /home/user/public_html/smf).

Coppermine - Bridging Manager

Click Next and finish the bridge, your Coppermine gallery and SMF forum now share the same username/password.



Coppermine Hosting
(c) Copyright 2005 SiteGround Image Hosting Services. All rights reserved