vakacjus
Lua & C++ Study.
- Joined
- Oct 23, 2008
- Messages
- 255
- Solutions
- 1
- Reaction score
- 26
Backy from Tibia.net.pl make this guide.
I will just translate it.
I will just translate it.
So... lets go !
- Fallow this link -> : http://xat.com/web_gear/chat.php
- Select your background (The best is unclear).
- Next step -> Select your size of chatbox window Small, Medium, Large.
- Generate your code here -> Update & Get Code
- Now Coppy, and go to next step.
*In your xampp\htdocs make this -> chatbox.htm
Code:
<h3>[B][COLOR="Blue"]Put this piece of code in the middle![/COLOR][/B]</h3>
Code:
<?PHP
$content = file_get_contents("chatbox.htm");
if($content != FALSE)
$main_content .= $content;
else
$main_content .= 'Can not load file <b>chatbox.htm</b> or file is empty.';
?>
Now... in layout.php after:
Code:
<a href='?subtopic=latestnews'>
<div id='submenu_latestnews' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
<div id='ActiveSubmenuItemIcon_latestnews' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
<div class='SubmenuitemLabel'>Latest News</div>
<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
</div>
</a>
Put it. :
Code:
<a href='?subtopic=chatbox'>
<div id='submenu_chatbox' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
<div id='ActiveSubmenuItemIcon_chatbox' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
<div class='SubmenuitemLabel'>Chatbox</div>
<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
</div>
</a>
In index.php After this:
Code:
case "latestnews":
$topic = "Latest News";
$subtopic = "latestnews";
include("latestnews.php");
break;
Add this:
Code:
case "chatbox";
$topic = "Chatbox";
$subtopic = "chatbox";
include("chatbox.php");
break;
Have Fun!