|
»Forumlar »SE ? Beginners
»Chat.index plugini ve küçük bir değişiklik
https://seditio.com.tr/eski1/forums.php?m=posts&q=1327 |
| Author: hakan yildiz, Posted: 2011-03-22 19:14 GMT. This post was edited by Kaan (2011-03-23 00:02 GMT, 5633 Gün ago) |
|
Uzunca bir d?nem arad???m chat.index pluginini neocrome sitesinde bulmu?tum, indirdim y?kledim ve kullanmaya ba?lad???mda g?r?nt? olarak hi? ho?uma gitmedi?i i?in kald?rd?m ve tekrar aramaya ba?lad?m Daha sonra kaan beyin yazm?? oldu?u chat.index pluginini buldum ve onu denedim, g?r?nt? olarak ?ok ho?uma gitti fakat kendimce k?c?k bir sorun g?rd?m Sorun ise ?u ; Mesela herhangi birisi Selam yazm?? aradan 6 saat ge?mi? a.selam yazm??lar <Ali42> S.a <mustafa78> A.s abii Buraya bir tarih eklemek istiyorum, mesela Tarih-Saat /Ali42/ S.a Tarih-Saat /mustafa78/ A.s abii chat.index.php Te?ekk?r ederim .. |
| Author: Kaan, Posted: 2011-03-22 23:15 GMT. |
|
Chat.inc.php yi eklermisin.? eklenti i?erisinde inc klas?r? i?erisinde bulunuyor.. |
| Author: hakan yildiz, Posted: 2011-03-22 23:30 GMT. This post was edited by Kaan (2011-03-23 00:03 GMT, 5633 Gün ago) |
|
Te?ekk?r ederim chat.inc.php |
| Author: Kaan, Posted: 2011-03-23 00:00 GMT. |
|
Alttakini bul. Kod: while ($row = sed_sql_fetcharray($sql)) { $res .= sed_build_flag($row['user_country'])." ".sed_build_pm($row['chat_online_userid'])." [".$row['user_maingrp']."] "; $res .= sed_build_user($row['chat_online_userid'], sed_cc(stripslashes($row['user_name'])))." <br />"; } Alttaki ile de?i?tirip denermisin. Kod: while ($row = sed_sql_fetcharray($sql)) { $dateformat = ($sys['now'] - $row['chat_date'] < 86400) ? 'H:i' : $cfg['formatmonthdayhourmin']; $res .= "".date($dateformat, $row['chat_date'] + $usr['timezone'] * 3600).""; $res .= sed_build_flag($row['user_country'])." ".sed_build_pm($row['chat_online_userid'])." [".$row['user_maingrp']."] "; $res .= sed_build_user($row['chat_online_userid'], sed_cc(stripslashes($row['user_name'])))." <br />"; } |
| Author: hakan yildiz, Posted: 2011-03-23 00:18 GMT. |
| Malesef ba?ar?l? olmad? |
| Author: Kaan, Posted: 2011-03-23 00:59 GMT. |
|
Alttakini bul Kod: while ($row = sed_sql_fetcharray($sql)) { $line = ($mode=='edit') ? "[<a href=\"plug.php?e=chat&d=".$d."&c=delete&id=".$row['chat_id']."\">Sil</a>] " : ''; $line .= ($row['chat_userid']==0) ? '<span style="color:#'.$cfg['plugin']['chat']['syscolor'].';"><em>*** ' : "<".sed_build_user($row['chat_userid'], sed_cc(stripslashes($row['user_name'])))."> "; $line .= sed_chat_parse(sed_cc(stripslashes($row['chat_text']))); $line .= ($row['chat_userid']==0) ? '</em></span>' : ''; $lines[] = $line; } Alttakiyle de?i?tir i?lem tamamd?r. Kod: while ($row = sed_sql_fetcharray($sql)) { $dateformat = ($sys['now'] - $row['chat_date'] < 86400) ? 'Y-m-d H:i' : $cfg['formatmonthdayhourmin']; $line = ($mode=='edit') ? "[<a href=\"plug.php?e=chat&d=".$d."&c=delete&id=".$row['chat_id']."\">Sil</a>] " : ''; $line .= "[".date($dateformat, $row['chat_date'] + $usr['timezone'] * 3600)."] "; $line .= ($row['chat_userid']==0) ? '<span style="color:#'.$cfg['plugin']['chat']['syscolor'].';"><em>***' : "<".sed_build_user($row['chat_userid'], sed_cc(stripslashes($row['user_name'])))."> "; $line .= sed_chat_parse(sed_cc(stripslashes($row['chat_text']))); $line .= ($row['chat_userid']==0) ? '</em></span>' : ''; $lines[] = $line; } Ekran G?r?nt?s? bu ?ekilde olucakt?r. [2011-03-23 00:57] <Admin> Mesaj |
| Author: hakan yildiz, Posted: 2011-03-23 01:03 GMT. |
| Tekrar te?ekk?r ederim, harikas?n?z ... |
| Powered by Seditio | Print version |