Jump to content
Sign in to follow this  
kphp

[модуль] важные сообщения как вк

Recommended Posts

В базе данных в в таблицу vii_messages добавить поле important int 1

В templates/default/im/msg.tpl после <img src="{theme}/images/close_a_wall.png" onMouseOver="myhtml.title('{msg-id}', 'Удалить сообщение', 'del_text_')" onClick="im.delet('{msg-id}', '{folder}'); return false" id="del_text_{msg-id}" class="msg_histry_del cursor_pointer im_msg_delf fl_r" />

Вставить <i style="cursor: pointer;" class="icon-star-{important-class}" onClick="ImNew.important('{yes}', '{msg-id}', 'Отметить как важное', '{folder}'); return false;" id="important_{msg-id}"></i>

В templates/default/js/profile.js в начало вставить:

var ImNew = {
important: function(yes, mid, folder){
$.post('/index.php?go=im&act=important', {yes:yes, mid:mid, folder:folder}, function(d){
if(d == 1){
$('#important_'+mid).removeClass('icon-star-1').addClass('icon-star-2').attr('onClick', 'ImNew.important(0, '+mid+', \''+folder+'\'); return false;');
} else {
$('#important_'+mid).removeClass('icon-star-2').addClass('icon-star-1').attr('onClick', 'ImNew.important(1, '+mid+', \''+folder+'\'); return false;');
}
});
},
important_messages: function(){
$.post('/index.php?go=im&act=important_messages', function(d){
$('.im_oneusr').removeClass('im_usactive');
$('#imViewMsg').html(d);
$('.im_scroll').css('height','576px');
});
},
important_messages_search: function(text){
$.post('/index.php?go=im&act=important_messages', {search: 1, text: text}, function(d){
$('#im_scroll').html(d);
});
}
}


В templates/default/im/head.tpl после первой <div class="clear"></div> вставить:

<a href="/" style="font-weight:normal" onClick="ImNew.important_messages(); return false" id="settTypeMsg">Перейти к важным сообщениям</a>

В system/modules/im.php после
$tpl->set('{name}', $my_name);
$tpl->set('{user-id}', $user_id);

Вставить:

$tpl->set('{yes}', '1');
$tpl->set('{important-class}', '1');

После (несоклько раз) $sql_ = $db->super_query("SELECT tb1.id,

Вставить:

important,

После (несоклько раз) $tpl->load_template('im/msg.tpl');
				foreach($sql_ as $row){
				
Вставить:

if($row['important'] == 1){
					$tpl->set('{yes}', '0');
					$tpl->set('{important-class}', '2');
				}else {
					$tpl->set('{yes}', '1');
					$tpl->set('{important-class}', '1');
				}


после switch($act){ добавить:

case 'important':
$yes = intval($_POST['yes']);
$mid = intval($_POST['mid']);
$folder = $db->safesql($_POST['folder']);
if($folder == 'inbox') $folder = 'inbox';
else $folder = 'outbox';
if($yes) $row = $db->super_query("SELECT id FROM `".PREFIX."_messages` WHERE id = '{$mid}' AND for_user_id = '{$user_info['user_id']}' AND folder = '{$folder}' AND important = '0'");
else $row = $db->super_query("SELECT id FROM `".PREFIX."_messages` WHERE id = '{$mid}' AND for_user_id = '{$user_info['user_id']}' AND folder = '{$folder}' AND important = '1'");
if($row){
if($yes){
$db->query("UPDATE `".PREFIX."_messages` SET important = '1' WHERE id = '{$mid}'");
echo 1;
} else {
$db->query("UPDATE `".PREFIX."_messages` SET important = '0' WHERE id = '{$mid}'");
echo 0;
}
}
die();
break;

case 'important_messages':
$search = intval($_POST['search']);
$query = $db->safesql(ajax_utf8(strip_data(urldecode($_POST['text']))));
if($search && $query) $sql_sort = "AND text LIKE '%{$query}%'";
else $sql_sort = '';
$sql_ = $db->super_query("SELECT tb1.id, text, tell_psearch, tell_pcoin, important, date, pm_read, folder, history_user_id, from_user_id, attach, tell_uid, tell_date, public, tell_comm, tb2.user_name, user_photo FROM `".PREFIX."_messages` tb1, `".PREFIX."_users` tb2 WHERE tb1.for_user_id = '".$user_id."' AND tb1.important = '1' AND tb1.history_user_id = tb2.user_id {$sql_sort} ORDER by `date` ASC", 1);
$tpl->load_template('im/msg.tpl');
if(!$search){
$tpl->result['content'] .= '<div class="im_scroll">';
$tpl->result['content'] .= '<div style="padding: 10px;background: #f9f9f9;border-bottom: 1px solid rgb(212, 220, 231);"><input value="'.$query.'" id="search_messages" placeholder="Поиск по сообщениям" style="
    padding: 5px;    width: 505px;
"onkeyup="ImNew.important_messages_search(this.value);"/></div>';
$stylesMOB = 'width:520px';
$tpl->result['content'] .= '<div id="im_scroll">';
}
if(!$sql_) $tpl->result['content'] .= '<div class="info_center"><div style="padding-top:210px">Здесь будет выводиться история переписки.</div></div>';
if($sql_){
foreach($sql_ as $row){
$tpl->set('{yes}', '0');
$tpl->set('{important-class}', '2');
				
					
					$tpl->set('{name}', $row['user_name']);
					$tpl->set('{folder}', $row['folder']);
					$tpl->set('{user-id}', $row['history_user_id']);
					$tpl->set('{msg-id}', $row['id']);
					if(date('Y-m-d', $row['date']) == date('Y-m-d', $server_time)) $tpl->set('{date}', langdate('H:i:s', $row['date']));
					else $tpl->set('{date}', langdate('d.m.y', $row['date']));
					if($row['user_photo']) $tpl->set('{ava}', '/uploads/users/'.$row['history_user_id'].'/50_'.$row['user_photo']);
					else $tpl->set('{ava}', '{theme}/images/no_ava_50.png');
					if($row['pm_read'] == 'no'){
						$tpl->set('{new}', 'im_class_new');
						$tpl->set('{read-js-func}', 'onMouseOver="im.read(\''.$row['id'].'\', '.$row['history_user_id'].', '.$user_id.')"');
					} else {
						$tpl->set('{new}', '');
						$tpl->set('{read-js-func}', '');
					}
					
					//Прикрипленные файлы
					if($row['attach']){
						$attach_arr = explode('||', $row['attach']);
						$cnt_attach = 1;
						$cnt_attach_link = 1;
						$jid = 0;
						$attach_result = '';
						foreach($attach_arr as $attach_file){
							$attach_type = explode('|', $attach_file);
							
							//Фото со стены сообщества
							if($attach_type[0] == 'photo' AND file_exists(ROOT_DIR."/uploads/groups/{$row['tell_uid']}/photos/c_{$attach_type[1]}")){
							
								$size = getimagesize(ROOT_DIR."/uploads/groups/{$row['tell_uid']}/photos/c_{$attach_type[1]}");
								
								$attach_result .= "<img id=\"photo_wall_{$row['id']}_{$cnt_attach}\" src=\"/uploads/groups/{$row['tell_uid']}/photos/c_{$attach_type[1]}\" {$size[3]} style=\"margin-top:3px;margin-right:3px\" align=\"left\" onClick=\"groups.wall_photo_view('{$row['id']}', '{$row['tell_uid']}', '{$attach_type[1]}', '{$cnt_attach}')\" class=\"cursor_pointer page_num{$row['id']}\" />";
								
								$cnt_attach++;
								
								$resLinkTitle = '';
								
							//Фото со стены юзера
							} elseif($attach_type[0] == 'photo_u'){
								if($row['tell_uid']) $attauthor_user_id = $row['tell_uid'];
								elseif($row['history_user_id'] == $user_id) $attauthor_user_id = $user_id;
								else $attauthor_user_id = $row['from_user_id'];

								if($attach_type[1] == 'attach' AND file_exists(ROOT_DIR."/uploads/attach/{$attauthor_user_id}/c_{$attach_type[2]}")){
									
									$size = getimagesize(ROOT_DIR."/uploads/attach/{$attauthor_user_id}/c_{$attach_type[2]}");
									
									$attach_result .= "<img id=\"photo_wall_{$row['id']}_{$cnt_attach}\" src=\"/uploads/attach/{$attauthor_user_id}/c_{$attach_type[2]}\" {$size[3]} style=\"margin-top:3px;margin-right:3px\" align=\"left\" onClick=\"groups.wall_photo_view('{$row['id']}', '', '{$attach_type[1]}', '{$cnt_attach}')\" class=\"cursor_pointer page_num{$row['id']}\" />";
										
									$cnt_attach++;
									
								} elseif(file_exists(ROOT_DIR."/uploads/users/{$attauthor_user_id}/albums/{$attach_type[2]}/c_{$attach_type[1]}")){

									$size = getimagesize(ROOT_DIR."/uploads/users/{$attauthor_user_id}/albums/{$attach_type[2]}");
									
									$attach_result .= "<img id=\"photo_wall_{$row['id']}_{$cnt_attach}\" src=\"/uploads/users/{$attauthor_user_id}/albums/{$attach_type[2]}/c_{$attach_type[1]}\" {$size[3]} style=\"margin-top:3px;margin-right:3px\" align=\"left\" onClick=\"groups.wall_photo_view('{$row['id']}', '', '{$attach_type[1]}', '{$cnt_attach}')\" class=\"cursor_pointer page_num{$row['id']}\" />";
										
									$cnt_attach++;
								}

								$resLinkTitle = '';
								
							//Видео
							} elseif($attach_type[0] == 'video' AND file_exists(ROOT_DIR."/uploads/videos/{$attach_type[3]}/{$attach_type[1]}")){
							
								$size = getimagesize(ROOT_DIR."/uploads/videos/{$attach_type[3]}/{$attach_type[1]}");
								
								$attach_result .= "<div><a href=\"/video{$attach_type[3]}_{$attach_type[2]}\" onClick=\"videos.show({$attach_type[2]}, this.href, location.href); return false\"><img src=\"/uploads/videos/{$attach_type[3]}/{$attach_type[1]}\" style=\"margin-top:3px;margin-right:3px\" {$size[3]} align=\"left\" /></a></div>";
								
								$resLinkTitle = '';
								
							//Музыка
							} elseif($attach_type[0] == 'audio'){
								$audioId = intval($attach_type[1]);
									$audioInfo = $db->super_query("SELECT artist, name, url FROM `".PREFIX."_audio` WHERE aid = '".$audioId."'");
									if($audioInfo){
										$jid++;
										$attach_result .= '<div class="audioForSize'.$row['id'].' player_mini_mbar_wall_all2" id="audioForSize" style="width:440px"><div class="audio_onetrack audio_wall_onemus" style="width:440px"><div class="audio_playic cursor_pointer fl_l" onClick="music.newStartPlay(\''.$jid.'\', '.$row['id'].')" id="icPlay_'.$row['id'].$jid.'"></div><div id="music_'.$row['id'].$jid.'" data="'.$audioInfo['url'].'" class="fl_l" style="margin-top:-1px"><a href="/?go=search&type=5&query='.$audioInfo['artist'].'" onClick="Page.Go(this.href); return false"><b>'.stripslashes($audioInfo['artist']).'</b></a> &ndash; '.stripslashes($audioInfo['name']).'</div><div id="play_time'.$row['id'].$jid.'" class="color777 fl_r no_display" style="margin-top:2px;margin-right:5px">00:00</div><div class="player_mini_mbar fl_l no_display player_mini_mbar_wall player_mini_mbar_wall_all2" id="ppbarPro'.$row['id'].$jid.'" style="width:442px"></div></div></div>';
									}

								//Смайлик

							//Смайлик
							} elseif($attach_type[0] == 'smile' AND file_exists(ROOT_DIR."/uploads/smiles/{$attach_type[1]}")){
								$attach_result .= '<img src=\"/uploads/smiles/'.$attach_type[1].'\" style="margin-right:5px" />';
								
								$resLinkTitle = '';
							//Если ссылка
							} elseif($attach_type[0] == 'link' AND preg_match('/http:\/\/(.*?)+$/i', $attach_type[1]) AND $cnt_attach_link == 1 AND stripos(str_replace('http://www.', 'http://', $attach_type[1]), $config['home_url']) === false){
								$count_num = count($attach_type);
								$domain_url_name = explode('/', $attach_type[1]);
								$rdomain_url_name = str_replace('http://', '', $domain_url_name[2]);
								
								$attach_type[3] = stripslashes($attach_type[3]);
								$attach_type[3] = substr($attach_type[3], 0, 200);
									
								$attach_type[2] = stripslashes($attach_type[2]);
								$str_title = substr($attach_type[2], 0, 55);
								
								if(stripos($attach_type[4], '/uploads/attach/') === false){
									$attach_type[4] = '{theme}/images/no_ava_groups_100.gif';
									$no_img = false;
								} else
									$no_img = true;
								
								if(!$attach_type[3]) $attach_type[3] = '';
									
								if($no_img AND $attach_type[2]){

									$attach_result .= '<div style="margin-top:2px" class="clear"><div class="attach_link_block_ic fl_l" style="margin-top:4px;margin-left:0px"></div><div class="attach_link_block_te"><div class="fl_l">Ссылка: <a href="/away.php?url='.$attach_type[1].'" target="_blank">'.$rdomain_url_name.'</a></div></div><div class="clear"></div><div class="wall_show_block_link" style="border:0px"><a href="/away.php?url='.$attach_type[1].'" target="_blank"><div style="width:108px;height:80px;float:left;text-align:center"><img src="'.$attach_type[4].'" /></div></a><div class="attatch_link_title"><a href="/away.php?url='.$attach_type[1].'" target="_blank">'.$str_title.'</a></div><div style="max-height:50px;overflow:hidden">'.$attach_type[3].'</div></div></div>';

									$resLinkTitle = $attach_type[2];
									$resLinkUrl = $attach_type[1];
								} else if($attach_type[1] AND $attach_type[2]){
									$attach_result .= '<div style="margin-top:2px" class="clear"><div class="attach_link_block_ic fl_l" style="margin-top:4px;margin-left:0px"></div><div class="attach_link_block_te"><div class="fl_l">Ссылка: <a href="/away.php?url='.$attach_type[1].'" target="_blank">'.$rdomain_url_name.'</a></div></div></div><div class="clear"></div>';
									
									$resLinkTitle = $attach_type[2];
									$resLinkUrl = $attach_type[1];
								}
								
								$cnt_attach_link++;
								
							//Если документ
							} elseif($attach_type[0] == 'doc'){
							
								$doc_id = intval($attach_type[1]);
								
								$row_doc = $db->super_query("SELECT dname, dsize FROM `".PREFIX."_doc` WHERE did = '{$doc_id}'", false, "wall/doc{$doc_id}");
								
								if($row_doc){
									
									$attach_result .= '<div style="margin-top:5px;margin-bottom:5px" class="clear"><div class="doc_attach_ic fl_l" style="margin-top:4px;margin-left:0px"></div><div class="attach_link_block_te"><div class="fl_l">Файл <a href="/index.php?go=doc&act=download&did='.$doc_id.'" target="_blank" onMouseOver="myhtml.title(\''.$doc_id.$cnt_attach.$row['id'].'\', \'<b>Размер файла: '.$row_doc['dsize'].'</b>\', \'doc_\')" id="doc_'.$doc_id.$cnt_attach.$row['id'].'">'.$row_doc['dname'].'</a></div></div></div><div class="clear"></div>';
										
									$cnt_attach++;
								}
								
							//Если опрос
							} elseif($attach_type[0] == 'vote'){
							
								$vote_id = intval($attach_type[1]);
								
								$row_vote = $db->super_query("SELECT title, answers, answer_num FROM `".PREFIX."_votes` WHERE id = '{$vote_id}'", false, "votes/vote_{$vote_id}");
								
								if($vote_id){

									$checkMyVote = $db->super_query("SELECT COUNT(*) AS cnt FROM `".PREFIX."_votes_result` WHERE user_id = '{$user_id}' AND vote_id = '{$vote_id}'", false, "votes/check{$user_id}_{$vote_id}");
									
									$row_vote['title'] = stripslashes($row_vote['title']);
									
									if(!$row['text'])
										$row['text'] = $row_vote['title'];

									$arr_answe_list = explode('|', stripslashes($row_vote['answers']));
									$max = $row_vote['answer_num'];
									
									$sql_answer = $db->super_query("SELECT answer, COUNT(*) AS cnt FROM `".PREFIX."_votes_result` WHERE vote_id = '{$vote_id}' GROUP BY answer", 1, "votes/vote_answer_cnt_{$vote_id}");
									$answer = array();
									foreach($sql_answer as $row_answer){
									
										$answer[$row_answer['answer']]['cnt'] = $row_answer['cnt'];
										
									}
									
									$attach_result .= "<div class=\"clear\" style=\"height:10px\"></div><div id=\"result_vote_block{$vote_id}\"><div class=\"wall_vote_title\">{$row_vote['title']}</div>";
									
									for($ai = 0; $ai < sizeof($arr_answe_list); $ai++){

										if(!$checkMyVote['cnt']){
										
											$attach_result .= "<div class=\"wall_vote_oneanswe\" onClick=\"Votes.Send({$ai}, {$vote_id})\" id=\"wall_vote_oneanswe{$ai}\"><input type=\"radio\" name=\"answer\" /><span id=\"answer_load{$ai}\">{$arr_answe_list[$ai]}</span></div>";
										
										} else {

											$num = $answer[$ai]['cnt'];

											if(!$num ) $num = 0;
											if($max != 0) $proc = (100 * $num) / $max;
											else $proc = 0;
											$proc = round($proc, 2);
											
											$attach_result .= "<div class=\"wall_vote_oneanswe cursor_default\">
											{$arr_answe_list[$ai]}<br />
											<div class=\"wall_vote_proc fl_l\"><div class=\"wall_vote_proc_bg\" style=\"width:".intval($proc)."%\"></div><div style=\"margin-top:-16px\">{$num}</div></div>
											<div class=\"fl_l\" style=\"margin-top:-1px\"><b>{$proc}%</b></div>
											</div><div class=\"clear\"></div>";
					
										}
									
									}
									
									if($row_vote['answer_num']) $answer_num_text = gram_record($row_vote['answer_num'], 'fave');
									else $answer_num_text = 'человек';
									
									if($row_vote['answer_num'] <= 1) $answer_text2 = 'Проголосовал';
									else $answer_text2 = 'Проголосовало';
										
									$attach_result .= "{$answer_text2} <b>{$row_vote['answer_num']}</b> {$answer_num_text}.<div class=\"clear\" style=\"margin-top:10px\"></div></div>";
									
								}
								
							} else
							
								$attach_result .= '';
						
						}
						
						if($resLinkTitle AND $row['text'] == $resLinkUrl OR !$row['text'])
							$row['text'] = $resLinkTitle.'<div class="clear"></div>'.$attach_result;
						else if($attach_result)
							$row['text'] = preg_replace('`(http(?:s)?://\w+[^\s\[\]\<]+)`i', '<a href="/away.php?url=$1" target="_blank">$1</a>', $row['text']).$attach_result;
						else
							$row['text'] = preg_replace('`(http(?:s)?://\w+[^\s\[\]\<]+)`i', '<a href="/away.php?url=$1" target="_blank">$1</a>', $row['text']);
							
					} else
						$row['text'] = preg_replace('`(http(?:s)?://\w+[^\s\[\]\<]+)`i', '<a href="/away.php?url=$1" target="_blank">$1</a>', $row['text']);
					
					$resLinkTitle = '';
					
					//Если это запись с "рассказать друзьям"
					if($row['tell_uid'] && !$row['tell_psearch'] && !$row['tell_pcoin']){
						if($row['public'])
							$rowUserTell = $db->super_query("SELECT title, photo FROM `".PREFIX."_communities` WHERE id = '{$row['tell_uid']}'", false, "wall/group{$row['tell_uid']}");
						else
							$rowUserTell = $db->super_query("SELECT user_search_pref, user_photo FROM `".PREFIX."_users` WHERE user_id = '{$row['tell_uid']}'");

						if(date('Y-m-d', $row['tell_date']) == date('Y-m-d', $server_time))
							$dateTell = langdate('сегодня в H:i', $row['tell_date']);
						elseif(date('Y-m-d', $row['tell_date']) == date('Y-m-d', ($server_time-84600)))
							$dateTell = langdate('вчера в H:i', $row['tell_date']);
						else
							$dateTell = langdate('j F Y в H:i', $row['tell_date']);
						
						if($row['public']){
							$rowUserTell['user_search_pref'] = stripslashes($rowUserTell['title']);
							$tell_link = 'public';
							if($rowUserTell['photo'])
								$avaTell = '/uploads/groups/'.$row['tell_uid'].'/50_'.$rowUserTell['photo'];
							else
								$avaTell = '{theme}/images/no_ava_50.png';
						} else {
							$tell_link = 'u';
							if($rowUserTell['user_photo'])
								$avaTell = '/uploads/users/'.$row['tell_uid'].'/50_'.$rowUserTell['user_photo'];
							else
								$avaTell = '{theme}/images/no_ava_50.png';
						}

						$row['text'] = <<<HTML
{$row['tell_comm']}
<div class="wall_repost_border">
<div class="wall_tell_info"><div class="wall_tell_ava"><a href="/{$tell_link}{$row['tell_uid']}" onClick="Page.Go(this.href); return false"><img src="{$avaTell}" width="30" /></a></div><div class="wall_tell_name"><a href="/{$tell_link}{$row['tell_uid']}" onClick="Page.Go(this.href); return false"><b>{$rowUserTell['user_search_pref']}</b></a></div><div class="wall_tell_date">{$dateTell}</div></div>{$row['text']}
<div class="clear"></div>
</div>
HTML;
} elseif($row['tell_uid'] && $row['tell_psearch'] && !$row['tell_pcoin']){
$photosq = '';
$arr = explode('||', $row['attach']);
foreach($arr as $value){
$arrs = explode('|', $value);
if($arrs[1]){
if(!$photosq)
$photosq = '<img src="'.$arrs[1].'" style="width: 200px;margin-right: 5px;"/>';
}
}
$row['text'] = <<<HTML
<a href="/people_search?act=view&id={$row['tell_psearch']}" onClick="Page.Go(this.href); return false">
<div>{$row['tell_comm']}</div>
<div class="wall_repost_border">
<div>{$photosq}</div>
<div class="clear"></div>
<div>{$row['text']}</div>
<div class="clear"></div>
</div></a>
HTML;
} elseif($row['tell_uid'] && !$row['tell_psearch'] && $row['tell_pcoin']){
$photosq = '';
$arr = explode('||', $row['attach']);
foreach($arr as $value){
$arrs = explode('|', $value);
if($arrs[1]){
if(!$photosq)
$photosq = '<img src="'.$arrs[1].'" style="width: 200px;margin-right: 5px;"/>';
}
}
$row['text'] = <<<HTML
<a href="/people_coin?act=view&id={$row['tell_pcoin']}" onClick="Page.Go(this.href); return false">
<div>{$row['tell_comm']}</div>
<div class="wall_repost_border">
<div>{$photosq}</div>
<div class="clear"></div>
<div>{$row['text']}</div>
<div class="clear"></div>
</div></a>
HTML;
}
					
					$tpl->set('{text}', addslashes($row['text']));
					
					$tpl->compile('content');
				}
			}
				
if(!$search) $tpl->result['content'] .= '</div></div>';
				


			AjaxTpl();
			
			die();
break;

По поводу шрифтов в templates/default/main.tpl перед <link media="screen" href="{theme}/style/style.css" type="text/css" rel="stylesheet" /> добавить <link href="/font/fontello.css" type="text/css" rel="stylesheet"/> и папку font в корень сайта, на счет менять, то заменять в файлах что я давал: icon-star-1 - не активная кнопка, при которой добавляет в важные icon-star-2 - активная, при нажатии которой убирает с важных, ну и показывает, что сообщение в важных

автор неизвестен

[модуль] важные сообщения как вк.zip

Share this post


Link to post
Share on other sites
1 час назад, Disy сказал:

не пашет, где то в IM косяк

сам ты косяк я самолично его тестил всё работает звездочку видно при наведении в права возле сообщения

Edited by kphp

Share this post


Link to post
Share on other sites

и ты считаешь это нормально? извини но у тебя кодировка гнилая, справить нужно (точки убрать) - в файлах которые ты редактировал, только в твоем коде ониimage.thumb.png.783b0e1ba398de8eeabc1ec5a5eb6f13.png- во всех 

Share this post


Link to post
Share on other sites

и в избранное добавляются только свои сообщения почему то

Share this post


Link to post
Share on other sites
14 часов назад, Disy сказал:

и ты считаешь это нормально? извини но у тебя кодировка гнилая, справить нужно (точки убрать) - в файлах которые ты редактировал, только в твоем коде ониimage.thumb.png.783b0e1ba398de8eeabc1ec5a5eb6f13.png- во всех 

проблема у тебя а не в этом коде

Share this post


Link to post
Share on other sites
5 часов назад, kphp сказал:

проблема у тебя а не в этом коде

считаешь  Notepad корявый? :D

Share this post


Link to post
Share on other sites
8 минут назад, Disy сказал:

считаешь  Notepad корявый? :D

дела не в notepade дело в самом файле твоем точнее в кодировке файла

Share this post


Link to post
Share on other sites

utf-8 без BOM

2 минуты назад, kphp сказал:

дела не в notepade дело в самом файле твоем точнее в кодировке файла

 

Share this post


Link to post
Share on other sites
2 минуты назад, Disy сказал:

utf-8 без BOM

 

да вроде

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×