• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ phpBB, Simple Machines Forum (SMF), and Forum Software (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

PHP FREE CHAT dont run in IE if configured to be included in

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
3 posts • Page 1 of 1

Postby Calheira » Thu Jul 19, 2007 6:07 pm

How can i put the PHPFREECHAT in the footer of all pages of my phpBB?

I try put the PHPFREECHAT code in the page_header.php, page_tail.php and overall_footer.tpl.
and the chat work just in FIREFOX.

I do this:

OVERALL_FOOTER.TPL - Put this code in the first line
Code: Select all
<!-- BEGIN switch_user_logged_in -->
<br />
{PHPFREECHAT}
<br />
<!-- END switch_user_logged_in -->

PAGE_TAIL.PHP - Put just one line
Code: Select all
$template->assign_vars(array(
   'TRANSLATION_INFO' => (isset($lang['TRANSLATION_INFO'])) ? $lang['TRANSLATION_INFO'] : ((isset($lang['TRANSLATION'])) ? $lang['TRANSLATION'] : ''),
   'ADMIN_LINK' => $admin_link,
   'PHPFREECHAT' => $chat->printChat(true) // I PUT THIS LINE ONLY
   )
);

PAGE_HEADER.PHP - Put this code
Code: Select all
// BEGIN  PHPFREECHAT

require_once dirname(__FILE__)."/../chat/src/phpfreechat.class.php";
$params = array();
$params["serverid"] = md5("MYCHAT");
$params["nick"] = $userdata[username];
$params["language"] = "pt_BR";
// $params["debug"] = true;
$params["title"] = "Zecão CHATo - Versão de testes";
$params["frozen_nick"] = true;
$params["max_msg"] = 3;
$params["theme"] = "phpbb2";
$params['frozen_channels'] = array('Mesa de Bar');
$params['channels'] = array('Mesa de Bar');
$params['admins'] = array('Hugao' => 'nonono');
$params["max_channels"]   = 3;
$params["max_privmsg"]    = 1;
$params["clock"] = false;
$params["showsmileys"] = false;
$params["btn_sh_whosonline"] = false;
$params["height"] = "150px"; // Default = 440px
$params["focus_on_connect"] = false;
$params["timeout"] = 60000;
$params["output_encoding"] = "iso-8859-1";
$params["start_minimized"] = true;

$chat = new phpFreeChat( $params );
// END PHPFREECHAT

But the chat dont work in INTERNET EXPLORER
Calheira
New member
 
Posts: 7
Joined: Wed Jul 18, 2007 12:27 am
Location: Salvador - Brazil
  • Website
Top

Postby clifton11221 » Fri Jul 20, 2007 6:02 am

I have it working in IE. However, I didn't use the code of the overall_footer.tpl file or the page_tail.tpl file. I just created my own hyperlink.
clifton11221
New member
 
Posts: 9
Joined: Mon Jul 16, 2007 4:08 pm
Top

Postby Calheira » Fri Jul 20, 2007 12:42 pm

But i want that the chat stay always in the foot of the page. Like this board of "Quick Post". Do you understand me?

I dont want a hiperlink.
Calheira
New member
 
Posts: 7
Joined: Wed Jul 18, 2007 12:27 am
Location: Salvador - Brazil
  • Website
Top


Post a reply
3 posts • Page 1 of 1

Return to phpBB, Simple Machines Forum (SMF), and Forum Software (v1.x)

Who is online

Users browsing this forum: No registered users and 10 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub