would like to apologize first time for my bad english I'm from germany.
I integrated the chat with me in my osDate (tufat). It works well so far and also takes members of the names in the chat.
can my problem is that the members did not he takes pictures as a further help.
Hallo,
möchte mich erst mal für mein schlechtes englisch entschuldigen da ich aus germany bin.
Ich habe den chat bei mir in mein osdate (tufat) eingebunden. Er funktioniert auch so weit und übernimmt auch die mitgliedern namen in den chat.
mein problem ist das er die Mitglieder bilder nicht übernimmt kann einer da weiter helfen.
<?php
session_start();
sleep(1);
require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params['serverid'] = md5(__FILE__);
$params["channels"] = array("Allgeimein","Support");
$params["language"] = "de_DE-informal";
$params["title"] = "Mein kleiner Chat";
$params['firstisadmin'] = true;
$params["nick"] = $_SESSION['UserName']; // setup the intitial nickname
$params['nickmeta']['avatar'] = '<a href="chat_popup.php.php?profil='.$params['nickmeta']['id'].'" onclick="window.opener.location.href=this.href;return false;"><img src="getsnap.php?id={$smarty.request.recipient}&typ=tn" class="smallpic" alt="" /></a>';
$params['nickmeta_key_to_hide'] = array('profil','avatar');
$params["refresh_delay"] = 1000;
$chat = new phpFreeChat( $params );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Angies Chat</title>
<?php $chat->printJavascript(); ?>
<?php $chat->printStyle(); ?>
</head>
<body>
<?php $chat->printChat(); ?>
</body>
</html>
this works is the user name taken from the osDate (is ok):
das funktioniert hier wird der user name vom osdate übernommen:
$params["nick"] = $_SESSION['UserName']; // setup the intitial nickname
that does not work:
das geht nicht:
$params['nickmeta']['avatar'] = '<a href="chat_popup.php.php?profil='.$params['nickmeta']['id'].'" onclick="window.opener.location.href=this.href;return false;"><img src="getsnap.php?id={$smarty.request.recipient}&typ=tn" class="smallpic" alt="" /></a>';
kenne mich auch zu wenig mit php aus.
kann mir da einer weiterhelfen und sagen wie ich das bild vom user angezeigt bekomme.
can help me there one and say how do I get the picture displayed by the user.
grus ralf