المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : هاك آخر عشر مواضيع


COMENDAN
05-08-2009, 05:00 PM
انا بعطيكم اليوم هاك حلو ورائع وانشاءالله يعجبكم
الشرح :

أولاً قم بفتح ملف index.php

وأبحث عن

eval("dooutput(\"".gettemplate('forumhome')."\");");


وقبله مباشرة اضف :

latest threads by rouad
if (!isset($action) or $action == "getactive") {
// active topics
$result = $DB_site->query("select threadid,forumid,title,postuser****,lastposter,rep
lycount from thread WHERE visible order by lastpost desc limit 5");

if (!mysql_num_rows($result)) {
eval("\$threadbits = \"".gettemplate('home_nothreads')."\";");
} else {

while ($latest_array = $DB_site->fetch_array($result)) {
$result_thread_**** = $DB_site->query("select postid,dateline,page**** from post where threadid='$latest_array[threadid]' order by dateline desc limit 1");
$result_thread_array = $DB_site->fetch_array($result_thread_****);

$title = $latest_array['title'];
$startedby = $latest_array['postuser****'];
$numreplies = $latest_array['replycount'];
$lastposter = $latest_array['lastposter'];
$mpostid= $result_thread_array['postid'];
$atpostdate=vbdate($dateformat,$result_thread_arra
y[dateline]);
$atposttime=vbdate($timeformat,$result_thread_arra
y[dateline]);

$gothreadid = $latest_array["threadid"];
if (($counter++ % 2) != 0) {
$threadbg="#D8DCD8";
} else {
$threadbg="#E9EBE9";
}

eval("\$threadbits .= \"".gettemplate('home_threadbits')."\";");
}
}
}

if ($action == "getnew") {
// new posts by rouad
$result = $DB_site->query("select threadid,forumid,title,postuser****,lastposter from thread WHERE visible AND thread.lastpost>=".$bbuserinfo[lastvisit]." AND thread.open<>10 order by lastpost desc limit 5");

if (!mysql_num_rows($result)) {
eval("\$threadbits = \"".gettemplate('home_nothreads')."\";");
} else {
while ($latest_array = $DB_site->fetch_array($result)) {
$result_thread_**** = $DB_site->query("select postid,dateline,page**** from post where threadid='$latest_array[threadid]' order by dateline desc limit 1");
$result_thread_array = $DB_site->fetch_array($result_thread_****);

$title = $latest_array["title"];
$startedby = $latest_array["postuser****"];
$lastposter = $latest_array["lastposter"];
$mpostid= $result_thread_array["postid"];
$atpostdate=vbdate($dateformat,$result_thread_arra
y[dateline]);
$atposttime=vbdate($timeformat,$result_thread_arra
y[dateline]);

$gothreadid = $latest_array["threadid"];
if (($counter++ % 2) != 0) {
$threadbg="#D8DCD8";
} else {
$threadbg="#E9EBE9";
}

eval("\$threadbits .= \"".gettemplate('home_threadbits')."\";");
}
}
}

eval("\$threads = \"".gettemplate('home_threads')."\";");

احفظ الملف وارفعه الى منتداك



احفظ الملف وارفعه الى منتداك
-----------------


-----------------
الآن من لوحة التحكم اضف تمبلت باسم home_threads
وضع بداخله هذا الكود

<!-- rouad.com -->
<table bgcolor="#808080" cellpadding="0" cellspacing="0" border="0" *****="100%">
<tr>
<td>
<table cellpadding="2" cellspacing="1" border="0" *****="100%">

<tr>
<td bgcolor="#B8BEB8" colspan="4">
<table *****="100%" border=0 cellspacing=0 cellpadding=0><tr><td>
<smallfont>آخر مواضيع المنتدى</smallfont>
</td><td align=center>
<form style="margin-bottom:-2;" action="index.php" method="get">
<select ****="action" onchange="****************=('index.php?s=$session[sessionhash]&action='+this.options[this.selectedIndex].value+'')">
<option>اعرض...</option>
<option>-----------------</option>
<option value="getactive">المواضيع النشطه</option>
<option value="getnew">المواضيع الجديده</option>
</select>
</form>
</td></tr></table>
</td></tr><tr><td bgcolor="#E9EBE9">
<!-- rouad.com -->
<MARQUEE onmouseover=this.stop() onmouseout=this.start() scrollAmount=1
scrollDelay=50 direction=up *****="100%" ******=60>
$threadbits
</marquee>

</table>
</td></tr></table>


اضف ايضاً تمبلت آخر باسم home_threadbits
واضف بداخله هذا الك

<!-- rouad.com -->
<table bgcolor="#808080" cellpadding="0" cellspacing="0" border="0" *****="100%">
<tr>
<td>
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td bgcolor="#B8BEB8"><smallfont>الموضوع</smallfont></td>
<td bgcolor="#B8BEB8" *****="20%" align="center"><smallfont>كاتب الموضوع</smallfont></td>
<td bgcolor="#B8BEB8" *****="5%" align="center"><smallfont>الردود</smallfont></td>
<td bgcolor="#B8BEB8" *****="22%" align="center"><smallfont>اخر مشاركه</smallfont></td>
</tr>
<tr>
<td bgcolor="$threadbg" align="right">
<p><smallfont><b><a href="showthread.php?s=$session[sessionhash]&goto=newpost&threadid=$gothreadid"> $title</a></b></smallfont></p>
</td>
<td bgcolor="$threadbg" align="center">
<p><smallfont><a href="member.php?s=$session[sessionhash]&action=getinfo&user****=$startedby">$startedby</a></smallfont></p>
</td>
<td bgcolor="$threadbg" align="center">
<p><smallfont>$numreplies</smallfont></p>
</td>
<td bgcolor="$threadbg" align="left">
<smallfont>
<table cellpadding="0" cellspacing="0" border="0" *****="100%" id="ltlink"><tr align="right">
<td nowrap><smallfont>$atpostdate <font color="#DF7901">$atposttime</font><br>بواسطة <a href="member.php?s=$session[sessionhash]&action=getinfo&user****=$lastposter">$lastposter</a></smallfont></td>
<td nowrap> <a href="showthread.php?s=$session[sessionhash]&goto=newpost&threadid=$gothreadid"><img src="images/rouad/lastpost.gif" border="0" alt="اذهب لآخر مشاركة"></a></td>
</tr></table>
</td>
</tr></table>
</td></tr></table>
<br>




افتح تمبلت forumhome
واضف فيه هذا الكود
$threads
طبعا بالمكان الذي يناسبك

..................


تحياتي