Thread: Chat problem!
View Single Post
  #5  
Old 10-29-2009, 02:09 PM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 21,292
Arianna will become famous soon enough
Default RE: Chat problem!

PHP Code:
<html>
<head>
<title>Grand Chase Adoptable!-Chat ^_^</title>

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include(
"inc/config.php");

$themeurl grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads getads("any");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle grabanysetting("browsertitle");
$sitename grabanysetting("sitename");
$slogan grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

$article_content $article_content."<img style='visibility:hidden;width:0px;height:0px;' border=0 width=0 height=0 src='http://counters.gigya.com/wildfire/IMP/CXNID=2000002.11NXC/bT*xJmx*PTEyNDkwMzQ2MjgzNTkmcHQ9MTI*OTAzNDY*NDU2MiZwPSZkPSZnPTImbz*xYjEwODk1NTYz​Zjc*MTRlOTk4ODJhOGEzYWNmNDBjMSZvZj*w.gif' /><embed src='http://www.xatech.com/web_gear/chat/chat.swf' quality='high' bgcolor='#000000' width='507' height='507' name='chat' FlashVars='id=66672839' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://xat.com/update_flash.shtml' /><br><small><a target='_BLANK' href='http://xat.com/web_gear/?cb'>Get your own Chat Box!</a> <a target='_BLANK' href='http://xat.com/web_gear/chat/go_large.php?id=66672839'>Go Large!</a></small><br>";

// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file $themeurl;

// Do the template changes and echo the ready template
$template file_get_contents($file);

$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);

$template replace(':BROWSERTITLE:',$browsertitle,$template);
$template replace(':SITENAME:',$sitename,$template);

//Define our links
$template replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar getsidebar();
$template replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template replace(':ADS:',$ads,$template);

//Get the slogan info
$template replace(':SLOGAN:',$slogan,$template);


echo 
$template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>
That should work.
You could also try it in an iframe. Make an html file with the chatbox and use the <iframe src=''>Text to show if no iFrame support (link to html file)</iframe> code, and put that in article_content.
Reply With Quote