Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 10-27-2009, 03:52 PM
SieghartZeke SieghartZeke is offline
Member
 
Join Date: Oct 2009
Posts: 149
Credits: 10,013
SieghartZeke
Default Chat problem!

I want add to the my site a Xat Chat...
The code is here:
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
// **********************************************************************

//Chat Chat chat!

$file=  <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*xYjEwODk1NTYzZjc*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
// **********************************************************************



?>
And i get this error:
Quote:
Parse error: syntax error, unexpected '<' in /home/a6518385/public_html/GcA/adoptables/chat.php on line 69
Reply With Quote
  #2  
Old 10-27-2009, 05:18 PM
Seapyramid Seapyramid is offline
Premium Member
 
Join Date: Feb 2009
Posts: 373
Gender: Female
Credits: 15,379
Seapyramid
Default RE: Chat problem!

That chat is never going to work with the adoptables script as it is currently written. It will have to be completely redone.

Sea
Reply With Quote
  #3  
Old 10-27-2009, 06:30 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,548
BMR777 is on a distinguished road
Default RE: Chat problem!

Replace your current code with:

PHP Code:
$article_content $article_content."YOUR CHAT CODE HERE"
Paste the chat code where I have put YOUR CHAT CODE HERE. Before you paste in the chat code though paste it in a new notepad window, then do a find and replace and replace all " with ' so that the double quotes in the chat code are replaced with single quotes.

That may work and should show the shoutbox at the bottom of the page after the index page content. :)
Reply With Quote
  #4  
Old 10-29-2009, 10:56 AM
SieghartZeke SieghartZeke is offline
Member
 
Join Date: Oct 2009
Posts: 149
Credits: 10,013
SieghartZeke
Default RE: Chat problem!

Ehm....you can copy my code and change with this??
Reply With Quote
  #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,044
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
  #6  
Old 10-31-2009, 05:04 AM
SieghartZeke SieghartZeke is offline
Member
 
Join Date: Oct 2009
Posts: 149
Credits: 10,013
SieghartZeke
Default RE: Chat problem!

OMG....http://www.grandchaseadoptable.netai.net/GcA/adoptables/chat.php[hr]
Why i show the index page and under the chat?
Reply With Quote
  #7  
Old 10-31-2009, 05:39 AM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 21,044
Arianna will become famous soon enough
Default RE: Chat problem!

Try this:
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

// **********************************************************************
// 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
// **********************************************************************



?>
Can you tell me how this works?
Reply With Quote
  #8  
Old 10-31-2009, 07:14 AM
SieghartZeke SieghartZeke is offline
Member
 
Join Date: Oct 2009
Posts: 149
Credits: 10,013
SieghartZeke
Default RE: Chat problem!

thank you!!!!!!!!!!!!!!
Reply With Quote
  #9  
Old 10-31-2009, 12:21 PM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 21,044
Arianna will become famous soon enough
Default RE: Chat problem!

You're welcome. ;)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Replace shoutbox with a different chat box tahbikat Questions and Supports 0 12-01-2015 09:07 AM
New CHAT for Mysidia/ Pet Sims! :) Missy Master Questions and Supports 0 06-16-2013 10:25 AM
Ideal Chat (vBulletin) Alaric Other Chat 6 06-02-2013 04:14 AM
Temporary Mysidia Chat DragonTamerChris Other Chat 4 03-19-2011 02:40 PM
chat box zhiichiro Questions and Supports 3 06-08-2009 10:16 PM


All times are GMT -5. The time now is 06:29 AM.

Currently Active Users: 444 (0 members and 444 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636