2011-03-26, 08:44 AM
(This post was last modified: 2011-07-20, 05:48 PM by lucasbytegenius.)
First tutorial, I wanted to share with everybody how I got AJAX Chat integrated nicely with the forum theme, without using it as a shoutbox as some other tutorials have taught.
Important Note: I only provide support for my guide, not the software used in it. This means if you have a problem with AJAX Chat or the Pages plugin then take it to the appropriate thread unless it's a web address error, like it's not loading in the page or similar.
Alright, so first we need the following things:
First, download and install AJAX Chat. There is a readme in the archive on how to do it.
Then, extract and upload Page Manager. Activate it in your ACP.
Ok, now for a little HTML:
You can change the height if need be, but leave the width as it is.
Now click "Save and return to listing" and then under your new page's name select the address, which will appear similar to http://www.example.com/misc.php?page=chat
You can then take this address and add it to your forum's nav bar and you're all set!
Tip: To change the default theme for AJAX Chat, go to /lib/ in the directory in which you installed AJAX Chat and edit config.php:
Find the following code:
Save and refresh the page you created with page manager.
Hope this guide comes in handy for someone. Probably looks noobish but hey, I'm still learning
Important Note: I only provide support for my guide, not the software used in it. This means if you have a problem with AJAX Chat or the Pages plugin then take it to the appropriate thread unless it's a web address error, like it's not loading in the page or similar.
Alright, so first we need the following things:
First, download and install AJAX Chat. There is a readme in the archive on how to do it.
Then, extract and upload Page Manager. Activate it in your ACP.
Ok, now for a little HTML:
- Go to ACP>Configuration>Page Manager
- Click "Add New Page"
- Give it a name (like AJAX Chat or Chatroom, this will appear on the browser tab or the window title)
- Now, in the URI parameter box, put a name like chat or something. This will in the end be our page's address.
- Make sure "Use MyBB template" is on.
- Then paste the following in the Page content box:
<iframe src="http://www.example.com/chat" width="100%" height=800></iframe>
You can change the height if need be, but leave the width as it is.
Now click "Save and return to listing" and then under your new page's name select the address, which will appear similar to http://www.example.com/misc.php?page=chat
You can then take this address and add it to your forum's nav bar and you're all set!
Tip: To change the default theme for AJAX Chat, go to /lib/ in the directory in which you installed AJAX Chat and edit config.php:
Find the following code:
Quote:// Available styles:Then enter the name of the style you want to be default in the last line,
$config['styleAvailable'] = array('beige','black','grey','Oxygen','Lithium','Sulfur','Cobalt','Mercury','Radium','prosilver','subsilver2','subblack2','subSilver','Core','MyBB','vBulletin');
// Default style:
$config['styleDefault'] = 'MyBB';
Quote:$config['styleDefault'] = 'MyBB';And replace "MyBB" (or whatever) with the name of the theme you want.
Save and refresh the page you created with page manager.
Hope this guide comes in handy for someone. Probably looks noobish but hey, I'm still learning