Adding FlashChat to the Simple Machines 1.0 Interface

Go to 'Themes/default' directory in your SMF installation, as shown:

Open index.template.php, and find the following text:

else
     echo '<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'],
     '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url']
     . '/' . $context['user']['language'] . '/logout.gif" alt="' . $txt[108]
     . '" style="margin: 2px 0;" border="0" />' : $txt[108]),    '</a>';
Replace it with:
 else {
     echo '<a href="', $GLOBALS['boardurl'], '/chat/flashchat.php">',
     ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url']
     . '/chat_icon.gif" alt="FlashChat" style="margin: 2px 0;"
     border="0" />' : "FlashChat"),'</a>';

    echo '<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'],
    '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url']
    . '/' . $context['user']['language'] . '/logout.gif" alt="' . $txt[108]
    . '" style="margin: 2px 0;" border="0" />' : $txt[108]),'</a>';
}

Then, save your changes and upload the file to your server. If you use other templates besides the default template, you may have to repeat this step for each template that you use.

FlashChat comes with a small GIF file called "chat_icon.gif". Upload this file from the FlashChat root folder to the default template's "images" folder, as shown below. If you get a broken image icon after uploading this, please check the "src=..." path in the template code (above) to ensure that you have the correct path set.

Now, on the Simple Machines homepage, the new FlashChat icon will appear. Clicking on this link will open FlashChat in a new window (because of target="_blank" in the HTML that was added).

This should link to the "flashchat.php" file of FlashChat. When FlashChat loads, you should be automatically logged into the chatroom using your Simple Machines username. If you are an administrator of Simple Machines, then you will be logged into FlashChat as a moderator, which means that you can ban and boot other users.