هاك اخر 10 مشاركات
3 مشترك
:: اقسام التطوير :: :: قسم تطوير المواقع
صفحة 1 من اصل 1
هاك اخر 10 مشاركات
السلام وعليكم
نقدم لكم اليوم هاك اخر 10 مشاركات لمنتديات في بي
<?xml version="1.0" encoding="ISO-8859-1" ?>
- <product productid="last10byalshehi" active="1">
<title>Last10</title>
<description>last10_by_alshehi</description>
<version>v.4</version>
<url />
<versioncheckurl />
<dependencies />
<codes />
- <templates>
- <template name="last10_thread" templatetype="template" date="1123667588" username="alshehi" version="v.4">
- <![CDATA[ <a href="showthread.php?$session[sessionurl]goto=newpost&t=$last_thread[threadid]">
<strong style="font-weight: 400">$last_thread[title]</strong></a> (ÇÎÑ
ãÔÇÑßÉ : $last_thread[lastposter] - ÚÏÏÇáÑÏæÏ : $last_thread[replycount] - ÚÏÏÇáÒæÇÑ : $last_thread[views] ) </a> »
]]>
</template>
</templates>
- <plugins>
- <plugin active="1" executionorder="5">
<title>last10_threads_by_alshehi</title>
<hookname>global_start</hookname>
- <phpcode>
- <![CDATA[ $displayrecords = "10"; // ÚÏÏ ÇáãÔÇÑßÇÊ
$excludedforums = "42,15,26,39"; // ÇáÇÞÓÇã ÇáãÎÝíÉ ..ÇÝÕá Èíä ßá ÑÞã ÞÓã ÈÝÇÕáÉ
$threadchars = "70"; // ÚÏÏ ÍÑæÝ ÚäæÇä ÇáãÔÇÑßÉ
// filter out deletion notices if can't be seen
$forumperms = fetch_permissions($forumid);
$last_threads = $db->query_read("
SELECT thread.threadid, thread.title, thread.lastpost, thread.forumid, thread.replycount, thread.lastposter, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, thread.visible, user.username, user.userid
$delquery
FROM " . TABLE_PREFIX . "thread AS thread
LEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.username = thread.lastposter)
$deljoin
WHERE thread.forumid NOT IN ($excludedforums)
$delthreadlimit
ORDER BY thread.lastpost DESC LIMIT 0, $displayrecords");
while ($last_thread = $db->fetch_array($last_threads))
{
$last_thread[title] = unhtmlspecialchars($last_thread[title]);
if (strlen($last_thread[title]) > $threadchars)
{
$last_thread[titletrimmed] = substr($last_thread[title], 0, strrpos(substr($last_thread[title], 0, $threadchars), ' ')) . '...';
}
eval('$last10_threads .= "' . fetch_template('last10_thread') . '";');
}
]]>
</phpcode>
</plugin>
</plugins>
<phrases />
<options />
<helptopics />
<cronentries />
<faqentries />
</product>
وشكرا وبالتوفيق لكم
مع التحيات : ادارة معهد اوربت نت
رد: هاك اخر 10 مشاركات
شكراااا لك اخي الغالي على الكود
اسد الابداع- الجنس :
عدد المشاركات : 269
تاريخ الانصمـآم : 20/12/2011
رد: هاك اخر 10 مشاركات
شكرا لك♥3♥33
ahmed blas- الجنس :
عدد المشاركات : 12
تاريخ الانصمـآم : 20/11/2013
:: اقسام التطوير :: :: قسم تطوير المواقع
صفحة 1 من اصل 1
صلاحيات هذا المنتدى:
لاتستطيع الرد على المواضيع في هذا المنتدى