• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

user image display /user bild anzeige

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

Post a reply
4 posts • Page 1 of 1

Postby ralf45_nrw » Thu Feb 17, 2011 1:45 am

Hi,

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
ralf45_nrw
New member
 
Posts: 2
Joined: Wed Feb 16, 2011 9:29 pm
Top

Postby re*s.t.a.r.s.*2 » Thu Feb 17, 2011 5:01 am

How are you setting $params['nickmeta']['id']? I don't see in the code where is set..

beside that you havent started the array after the require_once..
Code: Select all
$params = array();

And what version are you using?

Code: Select all
    <?php $chat->printJavascript(); ?>
    <?php $chat->printStyle(); ?>

these line are present which make me thing its an old version...

regards...
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby ralf45_nrw » Fri Feb 18, 2011 3:28 pm

hello,
I have this code on any template was just trying to adjust it but that's not true.
I am not an expert in php, so habeich to my problems.

I simplified my php code, it Sihr this now:
<?php
session_start();
sleep(1);
require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params['serverid'] = md5(__FILE__); // calculate a unique id for this chat
$params["language"] = "de_DE-informal";
$params["title"] = "Mein kleiner Chat";
$params["nick"] = $_SESSION['UserName']; // setup the intitial nickname

**was musss hier rein damit das userbild aus osdate übernommen wird**
**when either was in here so that the user picture is taken from osDate**

$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>
</head>
<body bgcolor="#FFF7EA">
<?php $chat->printChat(); ?>
</body>
</html>

I must make the giving me the user pictures display the the user to the name will indeed pass there must be still a possibility that he anzeit also the user image with avatar that is yes, as in "demo 50" but they are even stored in a directory.

have already searched the internet for an adjustment to osDate richtiegen (tufat) but I have found nothing.

who can help.




I can give a second chance as I use the user name maybe it is better or easier to display the user picture
ich habe noch eine zweite möglichkeit wie ich den user namen übergeben kann vieleicht ist das besser oder einfacher um das user bild anzuzeigen

called from the osDate with:
aufruf aus dem osdate mit:
<a class="panellink" href="#" onclick="javascript:popUpScrollWindow('{$docroot}phpfreechat_1_3/index_chat.php?nick={$smarty.session.UserName}','center',950,700)">{lang mkey='chat'}</a>

and chat in the code is then:
und im chat code steht das dann:
$params["nick"] = $_GET['nick'];

gruss ralf



hallo,
diesen code habe ich auf irgend einer vorlage habe ihn nur versucht anzupassen aber das geht ja nicht.
ich bin kein php fachmann, deswegen habeich damit so meine probleme.

habe meinen php code vereinfacht, er sihr jetzt so aus:


was muss ich den machen das er mir die user bilder anzeigt die der user den der name wird ja übergeben dann muss es doch eine möglichkeit geben das er auch das user bild anzeit, mit avatar geht das ja wie im "demo 50" aber die sind ja in einem verzeichniss hinterlegt.

habe auch schon das internet durchsucht wegen einer richtiegen anpassung an osdate (tufat) aber ich habe nichts gefunden.

wer kann helfen.

gruss ralf
Last edited by ralf45_nrw on Fri Feb 18, 2011 3:35 pm, edited 1 time in total.
ralf45_nrw
New member
 
Posts: 2
Joined: Wed Feb 16, 2011 9:29 pm
Top

Postby re*s.t.a.r.s.*2 » Fri Feb 18, 2011 5:56 pm

I am sorry there is no way I can help you, the code you have posted don't shown where you are setting the variables, and the only require its phpfreechat class, and the session..

the smarty requires are not there, this code is incomplete and never will work like this...

please provide more info..
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top


Post a reply
4 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 22 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