• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Share blog cho johncms haycuc.com

Admin

Well-Known Member
Staff member
Administrator
Mod vote bài viết
mod tạo mục riêng cho blog
up ảnh cho tiêu đề blog
thời gian blog hết hạn
code và data trong file zip
Up goblogs lên root và import data


Muốn hiển thị ngoài mainmenu thì chèn code sau
PHP:
echo '<div class="rmenu" style="font-variant:small-caps;"><b>Blogs mới</b></div>';
$total = mysql_result(mysql_query("SELECT COUNT(*) FROM `goblogs`"), 0);		if($total) {			$req = mysql_query("SELECT `id`,`user_id`, `name`, `count`, `text`, `time` FROM `goblogs` ORDER BY `id` DESC LIMIT 3 ");			$i = 1;			while (($row = mysql_fetch_assoc($req)) !== false) {				echo $i % 2 ? '<div class="list1">' : '<div class="list2">';				if(file_exists('files/goblogs/small_news_' . $row['id'] . '.jpg') !== false) {					echo '<table cellpadding="0" cellspacing="0" width="100%"><tr><td width="32">';					echo '<img style="margin: 0 0 -3px 0;border: 0px;" src="../files/goblogs/small_news_' . $row['id'] . '.jpg" alt="" width="32" height="32"/>*';					echo '</td><td>';					echo '<a href="../goblogs/index.php?act=view&amp;id=' . $row['id'] . '">' . htmlentities($row['name'], ENT_QUOTES, 'UTF-8') . '</a> <br />(' . date('d.m.o / H:i', $row['time'] + $sdvigclock * 3600) . ')<br />';					echo '</td></tr></table>';				} else {					echo '<a href="../goblogs/index.php?act=view&amp;id=' . $row['id'] . '">' . htmlentities($row['name'], ENT_QUOTES, 'UTF-8') . '</a> (' . date('d.m.o / H:i', $row['time'] + $sdvigclock * 3600) . ')<br />';				}
								echo '<a href="../goblogs/index.php?act=view&amp;id=' . $row['id'] . '">Bình luận:</a> (' . mysql_result(mysql_query("SELECT COUNT(*) FROM `goblogs_comments` WHERE `refid`= '".$row['id']."' "), 0) . ')';		        		        echo '</br>Lượt xem: '.$row['count'].'';				echo '</div>';								++$i;			}							echo '<div class="rmenu" style="font-variant:small-caps;"><a href="/goblogs">List Blogs</a></div>';			echo '<div class="phdr">' . $lng['total'] . ': ' . $total . '</div>';			}
Tải xuống BlogByHayCuc.zip (59.6kb)
 

Facebook Comments

New posts New threads New resources

Back
Top