Guten abend,
Komme gleich zum thema komme einfach nicht weiter
Diesec Code:
$Text = "Dies ist eine Nachricht mit vielen Smilies: :-) ;-) :rolleyes: :-(";
$Text = str_replace(":-)", "<img src="smilie1.gif">", $Text);
$Text = str_replace(";-)", "<img src="smilie2.gif">", $Text);
$Text = str_replace(":rolleyes:", "<img src="smilie3.gif">", $Text);
$Text = str_replace(":-(", "<img src="smilie4.gif">", $Text);
echo$Text;
mus in den unteren script integriet werden blos wie sol das aussehen?
Die von PHP verstehen werden wissen was ich meine
$sql = 'insert into ! (senderid, recipientid, message, sendtime) values (?, ?, ?, ?)';
$db->query($sql, array(INSTANT_MESSAGE_TABLE, $_SESSION['UserId'], $_REQUEST['refuid'], str_replace('|amp|','&',$_REQUEST['msg']), $ping_time) );
$msg = $db->getAll('select id from ! where recipientid = ? order by sendtime', array(INSTANT_MESSAGE_TABLE, $_SESSION['UserId']));
$max_cnt = ($config['im_totmsg_count']>0)?$config['im_totmsg_count']:100;
if (count($msg) >= $max_cnt) {
$db->query('delete from ! where id = ?', array(INSTANT_MESSAGE_TABLE, $msg[0]['id']) );
}
$msg_sent = '|||newMsg|:|<textarea onFocus="javascript:clearInput(this);" style="height:100%;width:100%;overflow:auto;border:0;" name="message" id="im_msg" name="im_msg" onkeypress="keyHandler(event);" >Message sent</textarea>';
echo ($msg_sent);
break;
case 'ping':
echo '|||userList|:|' .
getUserList() .
'|||msgArea|:|'.getMsg();
break;
default : return ''; break;
}
Danke im voraus
Gruß
Sayn