First of all you need to state what type of chat you're using.
Create a new PHP file with this coding, and name it chat.php:
<?php
define("IN_MYBB", 1);
define("KILL_GLOBALS", 1);
require "global.php";
add_breadcrumb("Chat Page", "chat.php");
eval("\$Chat= \"".$templates->get("Chat")."\";");
output_page($Chat);
?>
Then, create a new Global template, name it "Chat" and input this code:
<html>
<head>
<title>Website title - Chat Page</title>
{$headerinclude}
</head>
<body>
{$header}
Input the content you want here.
{$footer}
</body>
</html>
Ah, I was thinking the "Who's Online" list.
But you know what, I think it should do it like that if he used that custom code method to create the page.
I've done it before, and it appears under "Who's Online" the page.
Assuming the Who's Online box works just like the Page/list, it should display them there as well.
And "Svizy", you might as well register an account now.
This goes beyond 1 post, and to be honest, it annoys me to assist someone through the post of another person.
I'm sure many MyBB members feel the same way.
You want the support? Why is it so difficult to make an account and ask? It's not. Even if it was for just 1 post, support is a two way street.
Support MyBB by creating an account & crediting the software on your website, and you get support back for any technical assistance needed.
(2010-03-17, 07:48 PM)lan7 Wrote: [ -> ]Ah, I was thinking the "Who's Online" list.
But you know what, I think it should do it like that if he used that custom code method to create the page.
I've done it before, and it appears under "Who's Online" the page.
Assuming the Who's Online box works just like the Page/list, it should display them there as well.
And "Svizy", you might as well register an account now.
This goes beyond 1 post, and to be honest, it annoys me to assist someone through the post of another person.
I'm sure many MyBB members feel the same way.
You want the support? Why is it so difficult to make an account and ask? It's not. Even if it was for just 1 post, support is a two way street.
Support MyBB by creating an account & crediting the software on your website, and you get support back for any technical assistance needed.
I've already created a custom page using that way (user submited tutorial). You should really check the picture to get what I actually want.
I want to make a similar box as "Who's Online" is, but I want that it shows only users that are browsing the specific page (chat.php).
Reason why I didn't want to register is, because I believe that I won't really use the support here, because I mostly solve my own problems by myself, with help of my friends or by posting at MyBBSource. But you're correct, I should have registered istead of inslaving Devilson
Just open up the file you want it to display on and do a SQL command to check how many rows are in the chat online and set it as $chatonline or something
http://www.immortaltechnique.co.uk/ << like in my header.
then just add {$chatonline} where you need to use it.
(2010-03-18, 10:01 AM)Aaron Wrote: [ -> ]Just open up the file you want it to display on and do a SQL command to check how many rows are in the chat online and set it as $chatonline or something
http://www.immortaltechnique.co.uk/ << like in my header.
then just add {$chatonline} where you need to use it.
As far as I know I cannot use php in mybb templates so this wont work. I would need to make a function in some file (functions.php?), but I'm not experianced in PHP enough.
There exists a plugin:
Who is in Chat?. The site is in german language but the plugin has also an english language file.