• 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 mod link sự kiện kèm theo trên tìm kiếm google cho johncms

Admin

Well-Known Member
Staff member
Administrator
Demo
n1z0.jpg

Đây là code hiển thị giống như hiển thị bài viết liên quan trong bài viết của johncms. Nhưng nó là hiển thị trên google.
PHP:
$req = mysql_query("SELECT * FROM `forum` WHERE `type`='t' AND `refid`='$type1[refid]' AND `id`!='$id' ORDER BY `vip` DESC, `time` DESC LIMIT 5");
$total = mysql_num_rows($req);
 
echo '<div class="phdr"><strong>Cùng chuyên mục</strong></div>';
while ($res = mysql_fetch_assoc($req)) {
echo ($i % 2) ? '<div class="l"><div class="vevent">' : '<div class="l"><div class="vevent">';
echo '+ <a class="url summary" href="'.$home.'/forum/index.php?id=' . $res['id'] . '">' . $res['text'] . '</a><span class="dtstart">
<span class="value-title" title="';
 
echo date("d-m-Y", $res['time']);
 
echo 'T19:00+07:00"></span>
</span></div>';
 
echo '</div>';
++$i;}

Dán vào file forum/index.php
 

Facebook Comments

New posts New threads New resources

Back
Top