Joomla and SMF must be in the same database
includePHP or other php content module/mambot
Step 1: Create a section (I called mine Interactive)
Step 2: Create a Category (Community)
Step 3: Install the PHP module
Step 4: Add an article and add the following PHP code to be executed (or put it in a file and include the file)
Code: Select all
global $forum_version, $time_start, $maintenance, $mtitle, $mmessage, $mbname, $language, $boardurl, $webmaster_email, $cookiename, $db_server, $db_name, $db_user, $db_passwd, $db_prefix, $db_persist, $db_error_send, $boarddir, $sourcedir, $db_last_error, $db_connection, $modSettings, $memcached, $cache_hits, $cache_count, $db_cache, $db_count, $board, $topic, $scripturl, $context, $HTTP_SESSION_VARS, $rand_code, $ban, $log_time, $timeOnlineUpdated, $old_url, $USER_AGENT, $admin_time, $ID_MSG_LAST_VISIT, $unread_messages, $sc, $settings, $user_info, $user_settings, $ID_MEMBER, $txt, $board_info, $options, $db_show_debug, $language_dir, $forum_copyright; $here = getcwd(); chdir("path/to/SMF/installation"); require "index.php"; chdir($here);
Step 6: Create a link to the article (You can load it now if you want and it will display the front of the forum, but the links don't work
Step 7: Edit SMF settings.php and point the basedir at the new URL (i.e. http://yourdomain/community-forum)
Step 8: That's it. Your forums will now be fully wrapped inside your site without using the wrapper. Your URL will now look something like
** It is important to note that whatever the URL is normally, remove the ".html" from it or this will not work. Once you removed the .php this all works with the standard Joomla SEF.
http://www.yourdomain.com/community-for ... hp/board=1
Hope this helps. I took some of the instructions from the CMS made easy steps and they have so far worked perfectly for me besides a few template issues.