رفتن به مطلب

درخواست افزونه آخرین ارسال ها در انجمن ips


mostafashokri

پست های پیشنهاد شده

سلام و عرض ادب

 

دوستان ممنون میشم راهنمایی کنید من میخوام در انجمنم آخرین ارسالی ها رو نمایش بدم مثلا شبیه 20 اسکریپت میشه بگید باید چکار کنم یا افزونه ای اگر هست قرار بدید برای دانلود

بعد فونتی که الان 20 اسکریپت استفاده کرده اونم میخوام اگر امکان دارد با تشکر

لینک به دیدگاه
به اشتراک گذاری در سایت های دیگر

 نمایش آخرین ارسالیها 

<div class="post lastforum">
<div class="title">
<h3>آخرین ارسال های تالارگفتگو</h3>
</div>
<div class="body">
<ul>
<li>
<span class="top lftitle">عنوان</span>
<span class="top count">پاسخ</span>
<span class="top views">بازدید</span>
<span class="top send">آخرين ارسال</span>
</li>
<?php 
$db_host = "localhost"; // Change this if your MySQL database host is different.
$db_name = "dbname"; // Change this to the name of your database.
$db_user = "dbuser"; // Change this to your database username.
$db_pw = "password"; // Change this to your database password.
$forum_url = "http://forum.20script.ir/"; // Change this to reflect to your forum's URL.
$forum_id = ""; 
$limit = "10"; // Number of posts displayed.
$txtlimit = "90"; // This is the character limit.
$connectsho = 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"); 
mysql_set_charset('utf8',$connectsho);
$ipb_mysqlquery = mysql_query("SELECT tid,title,posts,pinned,starter_id,start_date,last_poster_id,last_post,starter_name,last_poster_name,views,title_seo FROM forums_topics ORDER BY last_post DESC LIMIT 10");
while($row = mysql_fetch_array($ipb_mysqlquery)) {
$manfinumber = 1;
$sum_total = $row['posts'] - $manfinumber;
echo '
<li>
<span class="lftitle pinned'.$row['pinned'].'"><a href="https://go.20script.ir/index.php?url='.$forum_url.'topic/'.$row['tid'].'-'.$row['title_seo'].'/" title="'.$row['title'].'" target="_blank">'.$row['title'].'</a></span>
<span class="count">'.$sum_total.' پاسخ</span>
<span class="views">'.$row['views'].' بازدید</span>
<span class="send"><a href="https://go.20script.ir/index.php?url='.$forum_url.'profile/'.$row['last_poster_id'].'-'.$row['last_poster_name'].'/" title="'.$row['last_poster_name'].'" target="_blank">'.$row['last_poster_name'].'</a></span>
</li>';
}?>
</ul>
</div><!-- body -->
</div><!-- post lastforum -->

نصب افزونه در ips برای تغییر فونت  لینک ها تنها برای اعضای سایت قابل نمایش است.

لینک به دیدگاه
به اشتراک گذاری در سایت های دیگر

  • 7 ماه پیش ...
در در 22 فروردین 1396 در 15:43، KINGERFAN گفته است :

 نمایش آخرین ارسالیها 


<div class="post lastforum">
<div class="title">
<h3>آخرین ارسال های تالارگفتگو</h3>
</div>
<div class="body">
<ul>
<li>
<span class="top lftitle">عنوان</span>
<span class="top count">پاسخ</span>
<span class="top views">بازدید</span>
<span class="top send">آخرين ارسال</span>
</li>
<?php 
$db_host = "localhost"; // Change this if your MySQL database host is different.
$db_name = "dbname"; // Change this to the name of your database.
$db_user = "dbuser"; // Change this to your database username.
$db_pw = "password"; // Change this to your database password.
$forum_url = "http://forum.20script.ir/"; // Change this to reflect to your forum's URL.
$forum_id = ""; 
$limit = "10"; // Number of posts displayed.
$txtlimit = "90"; // This is the character limit.
$connectsho = 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"); 
mysql_set_charset('utf8',$connectsho);
$ipb_mysqlquery = mysql_query("SELECT tid,title,posts,pinned,starter_id,start_date,last_poster_id,last_post,starter_name,last_poster_name,views,title_seo FROM forums_topics ORDER BY last_post DESC LIMIT 10");
while($row = mysql_fetch_array($ipb_mysqlquery)) {
$manfinumber = 1;
$sum_total = $row['posts'] - $manfinumber;
echo '
<li>
<span class="lftitle pinned'.$row['pinned'].'"><a href="https://go.20script.ir/index.php?url='.$forum_url.'topic/'.$row['tid'].'-'.$row['title_seo'].'/" title="'.$row['title'].'" target="_blank">'.$row['title'].'</a></span>
<span class="count">'.$sum_total.' پاسخ</span>
<span class="views">'.$row['views'].' بازدید</span>
<span class="send"><a href="https://go.20script.ir/index.php?url='.$forum_url.'profile/'.$row['last_poster_id'].'-'.$row['last_poster_name'].'/" title="'.$row['last_poster_name'].'" target="_blank">'.$row['last_poster_name'].'</a></span>
</li>';
}?>
</ul>
</div><!-- body -->
</div><!-- post lastforum -->

نصب افزونه در ips برای تغییر فونت  لینک ها تنها برای اعضای سایت قابل نمایش است.

سلام.

این کد رو باید در کجا قرار بدیم؟

لینک به دیدگاه
به اشتراک گذاری در سایت های دیگر

بایگانی شده

این موضوع بایگانی و قفل شده و دیگر امکان ارسال پاسخ نیست.

مهمان
این موضوع برای عدم ارسال قفل گردیده است.
×
×
  • اضافه کردن...