Hi, Khách!
![]() | ![]() ![]() ![]() ![]() |
Yêu cầu: có mod nhật ký myblog
Dán mainmenu tuỳ thích :: đừng chèn giữa code khác là được::
Code tự tay mod
Có ảnh mem đăng trước topic, số bình luận, người bình luận cuối...
Tác giả: Nguyễn ~~> wapIT.mobi
<?php
///////////////////////////***nhat ky moi ra home*** mod by nguyen ***//////////////////
echo '<div class="mainblok"><div class="phdr"><table width="100%" cellpadding="0" cellspacing="0"><tr><td width="auto">• <a href="/myblog/" title="Một Blogs nhỏ của IT"><b>Nhật Ký Mới</b></a></td><td width="auto" align="right"><a href="/myblog/createblog.php" title="Viết blogs mới">[Viết</a></td></tr></table></div>';
$req = mysql_query("select * from `myblog` where `id` > '0' ORDER BY `id` DESC LIMIT 4;");
while ($res = mysql_fetch_array($req)) {
$re = mysql_query("select * from `users` where `id`='" . $res['user_id' . "';");
$ree = mysql_fetch_array($re);
echo is_integer($i / 2) ? '<div class="list1">' : '<div class="list2">';
if (file_exists(($rootpath.'files/users/avatar/' . $ree['id' . '.png'))) {
echo '<img src="../files/users/avatar/' . $ree['id' . '.png" width="14" height="14" alt="' . $ree['name' . '" /> ';
} else {
echo '<img src="../images/empty.png" width="14" height="14" alt="' . $ree['name' . '" /> ';
}
$vr = $res['date' + $set_user['sdvig' * 3600;
$vr = date("d.m.y ~ H:i", $vr);
echo $div;
echo ' <a href="/myblog/blog.php?pid=' . $res['id' . '&id=' . $res['user_id' . '" title="' . htmlentities($res['msz', ENT_QUOTES, 'UTF-8') . '">' . htmlentities($res['msz', ENT_QUOTES, 'UTF-8') . '</a> [' . $res['comcount' . ' [' . $ree['name' . '
';
echo '</div>';
+$i;
}
echo '</div>';?>
Copy code
///////////////////////////***nhat ky moi ra home*** mod by nguyen ***//////////////////
echo '<div class="mainblok"><div class="phdr"><table width="100%" cellpadding="0" cellspacing="0"><tr><td width="auto">• <a href="/myblog/" title="Một Blogs nhỏ của IT"><b>Nhật Ký Mới</b></a></td><td width="auto" align="right"><a href="/myblog/createblog.php" title="Viết blogs mới">[Viết</a></td></tr></table></div>';
$req = mysql_query("select * from `myblog` where `id` > '0' ORDER BY `id` DESC LIMIT 4;");
while ($res = mysql_fetch_array($req)) {
$re = mysql_query("select * from `users` where `id`='" . $res['user_id' . "';");
$ree = mysql_fetch_array($re);
echo is_integer($i / 2) ? '<div class="list1">' : '<div class="list2">';
if (file_exists(($rootpath.'files/users/avatar/' . $ree['id' . '.png'))) {
echo '<img src="../files/users/avatar/' . $ree['id' . '.png" width="14" height="14" alt="' . $ree['name' . '" /> ';
} else {
echo '<img src="../images/empty.png" width="14" height="14" alt="' . $ree['name' . '" /> ';
}
$vr = $res['date' + $set_user['sdvig' * 3600;
$vr = date("d.m.y ~ H:i", $vr);
echo $div;
echo ' <a href="/myblog/blog.php?pid=' . $res['id' . '&id=' . $res['user_id' . '" title="' . htmlentities($res['msz', ENT_QUOTES, 'UTF-8') . '">' . htmlentities($res['msz', ENT_QUOTES, 'UTF-8') . '</a> [' . $res['comcount' . ' [' . $ree['name' . '
';
echo '</div>';
+$i;
}
echo '</div>';?>
Copy code
Nguồn: Phía trên:::::

Trực Tuyến:
Khách: 1