Sunday, December 7, 2008

Shoutbox in index...the easy way.

I was in a pickle getting my shoutbox to show on the index. Everywhere I looked had instructions that were either not for the version I have (phpBB3), of the were many steps involved.

So how did I do it?

1. Install the Ajax Chat Module here. It takes about 3 minutes and all you really do it copy the "chat" folder over to your phpbb home directory aka root, then in the URL go to http://yourwebsite/phpbb/chat/install.php.
2. Once Chat is installed, make a new webpage called "chatbox.html" (no content yet, just blank page) and FPT it in your theme/template folder.
3. Now go ACP and go to Syles tab, then Templates>your_template_name. In the drop-down, find your new (chatbox.html) page that you just sent. When you see it, it should be blank.
4. Copy and paste this code: Remember to change the paths! Then SAVE.

<table width="100%" border="0">
<tr>
<td><IFRAME SRC="http://www.mameaddicts.com/phpBB3/chat/" WIDTH=1000 HEIGHT=400 FRAMEBORDER=1 SCROLLING=auto></IFRAME></td>

5. Now, go to the drop-down and choose index_body.html. Copy and paste this code where you want you shoutbox to appear.

<!-- INCLUDE chatbox.html -->

I added mine right below were my title and links are. If you want it there, then find
<!-- INCLUDE overall_header.html -->, and paste after it.

Wuala! You now have a secure full-functioning shoutbox.

No comments: