Pagina 1 din 1
Cum fac să scriu cu diacritice pe chat ?
Scris: 19-Oct-2014, 14:28:18
de CRML
Cum fac să scriu cu diacritice pe chat ?
Când scriu cu diacritice nu îmi apare ce scriu şi când scriu fără îmi apare. ( pe chat)
Ajutaţi-mă vă rog mult !
Re: Cum fac să scriu cu diacritice pe chat ?
Scris: 19-Oct-2014, 14:29:08
de Anișor
Pe ce chat mai exact?
Re: Cum fac să scriu cu diacritice pe chat ?
Scris: 19-Oct-2014, 14:30:30
de CRML
AJAX CHAT
Re: Cum fac să scriu cu diacritice pe chat ?
Scris: 25-Oct-2014, 01:56:50
de Anișor
S-a mai discutat problema asta mai de mult. Problema este că modificarea este abandonată. Autorul modificării nu mai oferă suport. Ceea ce înseamnă că nici noi la rândul nostru nu te putem ajuta (cel puțin eu).
Re: Cum fac să scriu cu diacritice pe chat ?
Scris: 17-Noi-2014, 16:56:02
de Gorkem
Defapt poți scrie în limba română foarte ușor, pui forumul în limba română și gata.
Dacă tot nu merge, pune acest chat_body.html deoarece eu pe ăsta îl folosesc și merge perfect!
Cod: Selectaţi tot
<!-- IF S_GET_CHAT -->
<!-- IF S_READ or S_ADD -->
<!-- BEGIN chatrow -->
<div id="p{chatrow.MESSAGE_ID}">
<table class="tablebg" cellpadding="6" cellspacing="0" width="100%">
<tr class="row{chatrow.CLASS}">
<td>
<a href="javascript:void({chatrow.MESSAGE_ID})" title="{L_DELETE_POST}" onclick="delete_post('{chatrow.MESSAGE_ID}')"><img src="http://www.icpsr.umich.edu/icpsrweb/ICPSR/images/x-black.gif" /></a>
<b class="postauthor">{chatrow.USERNAME_FULL}</b> <span style="background-image: url(http://i45.tinypic.com/2h848yb.jpg)"><b> <font color="#0099FF">« spune »</font></b></span></font> <font color="#FFFFFF">{chatrow.MESSAGE}</b></span></font>
</td>
</tr>
</table>
</div>
<!-- END chatrow -->---{LAST_ID}
<!-- IF S_WHOISONLINE -->---
<!-- BEGIN whoisrow -->
<div><img src="{T_IMAGESET_PATH}/{whoisrow.USER_STATUS}.png" class="online_img" /><strong> {whoisrow.USERNAME_FULL}</span></strong></div></span>
<!-- END whoisrow -->---{LAST_TIME}---{DELAY}---{LAST_POST}
<!-- ENDIF -->
<!-- ENDIF -->
<!-- ELSE -->
<!-- IF S_CHAT -->
<!-- INCLUDE overall_header.html -->
<!-- ENDIF -->
<script type="text/javascript">
<!--
var fieldname = 'chat';
var last_time = 0;
var xmlHttp = http_object();
var last_id = {LAST_ID};
var type = 'receive';
var post_time = {TIME};
var read_interval = 15000;
var interval = setInterval('handle_send("read", last_id);', read_interval);
function handle_send(mode, f)
{
if (xmlHttp.readyState == 4 || xmlHttp.readyState == 0)
{
indicator_switch('on');
type = 'receive';
param = 'mode=' + mode;
param += '&last_id=' + last_id;
param += '&last_time=' + last_time;
param += '&last_post=' + post_time;
param += '&read_interval=' + read_interval;
if (mode == 'add' && document.text.message.value != '')
{
type = 'send';
for(var i = 0; i < f.elements.length; i++)
{
elem = f.elements[i];
param += '&' + elem.name + '=' + encodeURIComponent(elem.value);
}
document.text.message.value = '';
}
else if (mode == 'delete')
{
type = 'delete';
param += '&chat_id=' + f;
}
xmlHttp.open("POST", '{FILENAME}', true);
xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xmlHttp.onreadystatechange = handle_return;
xmlHttp.send(param);
}
}
function handle_return()
{
if (xmlHttp.readyState == 4)
{
if (type != 'delete')
{
results = xmlHttp.responseText.split('---');
if (results[1])
{
if (last_id == 0)
{
document.getElementById(fieldname).innerHTML = results[0];
}
else
{
document.getElementById(fieldname).innerHTML = results[0] + document.getElementById(fieldname).innerHTML;
}
last_id = results[1];
if (results[2])
{
document.getElementById('whois_online').innerHTML = results[2];
last_time = results[3];
if (results[4] != read_interval * 1000)
{
window.clearInterval(interval);
read_interval = results[4] * 1000;
interval = setInterval('handle_send("read", last_id);', read_interval);
document.getElementById('update_seconds').innerHTML = results[4];
}
post_time = results[5];
}
}
}
indicator_switch('off');
}
}
function delete_post(chatid)
{
document.getElementById('p' + chatid).style.display = 'none';
handle_send('delete', chatid);
}
function indicator_switch(mode)
{
if(document.getElementById("act_indicator"))
{
var img = document.getElementById("act_indicator");
if(img.style.visibility == "hidden" && mode == 'on')
{
img.style.visibility = "visible";
}
else if (mode == 'off')
{
img.style.visibility = "hidden"
}
}
}
function http_object()
{
if (window.XMLHttpRequest)
{
return new XMLHttpRequest();
}
else if(window.ActiveXObject)
{
return new ActiveXObject("Microsoft.XMLHTTP");
}
else
{
document.getElementById('p_status').innerHTML = 'Status: Cound not create XmlHttpRequest Object. Consider upgrading your browser.';
}
}
-->
</script>
<style type="text/css">
<!--
.box
{
width: 100%;
margin-left: auto;
margin-right: auto;
}
.shouts {
width: 100%;
height:250px;
overflow:auto;
}
#chat {
width: 100%;
text-align:left;
}
#message {
width: 65%;
}
#whois_online{
vertical-align:text-top;
text-align:left;
}
.online_img {
vertical-align:middle;
}
#act_indicator {
visibility:hidden;
}
-->
</style>
<br clear="all" />
<div class="box">
{$CA_BLOCK_START}
{$CA_CAP2_START} <span style="font-weight: bold; color="red"><font color="#000080">GeRRaX - C H A T</font></span></font>{$CA_CAP2_END}
<table class="tablebg" width="100%" cellspacing="1">
<!-- IF S_USER_LOGGED_IN -->
<tr>
<td align="center" style="background:#151515;border-left:#1d1d1d;" width="85%">
<form name="text" id="text" method="post" action="javascript:void(0);" onsubmit="handle_send('add', this)" autocomplete="off"><BR>
<input class="input_submit" type="submit" name="" value="Mesaj: "/>
<input type="text" tabindex="1" name="message" id="message" class="input_text" size="50"/>
<input class="input_submit" type="submit" name="submit" value="Trimite"/>
<Br><Br>
</form>
</td>
<td align="center" width="50%" style="background:#151515;border-left:solid 1px #1d1d1d;border-right:solid 1px #1d1d1d;"><font color="#FAF0E6">{L_ONLINE_LIST}</font></td>
<!-- ENDIF -->
<tr>
<td class="row3" style="text-align:left;" height="220">
<div class="shouts">
<div id="chat">
<!-- BEGIN chatrow -->
<div id="p{chatrow.MESSAGE_ID}">
<table class="tablebg" cellspacing="0" width="100%">
<tr class="row{chatrow.CLASS}">
<td>
<a href="javascript:void({chatrow.MESSAGE_ID})" title="{L_DELETE_POST}" onclick="delete_post('{chatrow.MESSAGE_ID}')"><img src="http://www.icpsr.umich.edu/icpsrweb/ICPSR/images/x-black.gif" /></a>
<b class="postauthor"> {chatrow.USERNAME_FULL}</b> <span style='background-image: url(http://i45.tinypic.com/2h848yb.jpg); '><b> <font color="#0099FF">« spune »</b></span></font> <font color="#FFFFFF">{chatrow.MESSAGE}</font></b></span>
</td>
</tr>
</table>
</div>
<!-- END chatrow -->
</div>
</div>
</td>
<td class="row1" nowrap="nowrap">
<div class="shouts">
<div id="whois_online">
<!-- BEGIN whoisrow -->
<div><img src="{T_IMAGESET_PATH}/{whoisrow.USER_STATUS}.png" class="online_img" /><span style="color:#1f675f;text-shadow: 0 0 10px #1f675f;"><strong>{whoisrow.USERNAME_FULL}</span></strong></div>
<!-- END whoisrow -->
</div>
</div>
</td>
</tr>
</table>
</div>{$CA_BLOCK_END}
<!-- IF S_CHAT -->
<!-- INCLUDE overall_footer.html -->
<!-- ENDIF -->
<!-- ENDIF -->
Sper că te-am ajutat!