اخرین ارسالهای ویبولتین در وردپرس

n_dambelog

تازه وارد
سلام

من این کد و در text در سایدبار قرار دادم و اخرین ارسالهای ویبولتین در وردپرس نمایش داده شد فقط یه مشکل این که بین اخرین تاپیکها خطی وجود نداره که اونا رو از هم جدا کنه کسی بلده این کدو جوری درست کنه که بین ارسالها یه خط جدا کننده به وجود بیاره

با تشکر

اینم عکس مشکل من



اینم کد

<?php

$db_host = "localhost";

$db_name = "******";

$db_user = "*******";

$db_pw = "******";

$forum_url = "http://sciencefa.com/forum/forum.php";

$forum_id = "";

$limit = "10";

$txtlimit = "100";

mysql_connect($db_host, $db_user, $db_pw)

OR die ("Cannot connect to your database");

mysql_select_db($db_name) OR die("Cannot connect to your database");

if ($forum_id) {

$forumid = "AND forumid=$forum_id";

}

if ($limit) {

$limited = "LIMIT $limit";

}

$thread_sql = mysql_query("SELECT threadid,title,lastpost,lastposter,replycount,views FROM thread WHERE visible=1 AND open=1 $forumid ORDER BY lastpost DESC $limited");

while($thread_get=mysql_fetch_array($thread_sql))

{

$replycount = $thread_get['replycount'];

$views = $thread_get['views'];

$lastpost = $thread_get['lastpost'];

$poster = $thread_get['lastposter'];

$tid = $thread_get['threadid'];

$psql = mysql_query("SELECT postid FROM post WHERE threadid=$tid ORDER BY postid DESC");

$getp=mysql_fetch_array($psql);

$pid = $getp['postid'];

$title = $thread_get['title'];

$title = substr($title,0,$txtlimit);

echo "

<div id=\"link\"><a href=\"".$forum_url."showthread.php?t=$tid&p=$pid\">$title</a></div>

";

}

?>

مرسی

 

Mohammad

مدیر انجمن
پرسنل مدیریت
به انتهای این کد:


کد:
 <div id=\"link\"><a href=\"".$forum_url."showthread.php?t=$tid&p=$pid\  ">$title</a></div>
این رو اضافه کنید


کد:
<hr>
یا میتونید به این قسمت یک استایل بدید...

به جای این کد:


کد:
 <div id=\"link\"><a href=\"".$forum_url."showthread.php?t=$tid&p=$pid\  ">$title</a></div>
اینو جایگزین کنید:


کد:
<div style=\"border-bottom:1px solid #000\"><a href=\"".$forum_url."showthread.php?t=$tid&p=$pid\ ">$title</a></div>
 
بالا