|
||||||
| أرشيف تطوير منتديات vb3.0.0 :: يمنع منعاً باتا ً .. كتابة أي موضوع يهتم بمشاكل المنتديات (( يمنع وضع نسخ vBulletin )) |
|
|
LinkBack | أدوات الموضوع | طرق العرض |
|
||||
|
السلام عليكم ورحمة الله
أخواني الغالين ..... -- نقدم لك شيء حصري ومميز هاك آخر المواضيع في المنتدى كما في رواد الشرح : أولاً قم بفتح ملف index.php وأبحث عن رمز Code:
eval("dooutput(\"".gettemplate('forumhome')."\");");
رمز Code:
// latest threads by rouad
if (!isset($action) or $action == "getactive") {
// active topics
$result = $DB_site->query("select threadid,forumid,title,postusername,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_text = $DB_site->query("select postid,dateline,pagetext from post where threadid='$latest_array[threadid]' order by dateline desc limit 1");
$result_thread_array = $DB_site->fetch_array($result_thread_text);
$title = $latest_array['title'];
$startedby = $latest_array['postusername'];
$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,postusername,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_text = $DB_site->query("select postid,dateline,pagetext from post where threadid='$latest_array[threadid]' order by dateline desc limit 1");
$result_thread_array = $DB_site->fetch_array($result_thread_text);
$title = $latest_array["title"];
$startedby = $latest_array["postusername"];
$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 وضع بداخله هذا الكود ----------------- رمز Code:
<!-- rouad.com -->
<table bgcolor="#808080" cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td>
<table cellpadding="2" cellspacing="1" border="0" width="100%">
<tr>
<td bgcolor="#B8BEB8" colspan="4">
<table width="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 name="action" onchange="window.location=('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 width="100%" height=60>
$threadbits
</marquee>
</table>
</td></tr></table>
اضف ايضاً تمبلت آخر باسم home_threadbits واضف بداخله هذا الك ---------------------------- رمز PHP:
افتح تمبلت forumhome واضف فيه هذا الكود $threads طبعا بالمكان الذي يناسبك وهذا مثال عليه :مثال على الهاكـ ( هنا ) :: ولا تنسون التقييم .. ( رجاءا ) :: |
|
:: عضو نشيط ::
![]() ![]() ![]() ![]() ![]() ![]() |
رمز PHP:
شو الحل؟ |
|
لأن النسخة اللي عندي 3.0.4 وفيها ثغرة والرابط اللي حاطه كمثال مافتح عندي ،،، كل الود |
|
|
:: عضو نشيط ::
![]() ![]() ![]() ![]() ![]() ![]() |
ولم نعرف لأي نسخة لانه ماوجدت الكود الكود اللي ذكره مع العلم ان نسختي 3.07 |
|
السلام عليكم اخواني الاعزاء
تفضلوا اخواني الامثله .. منتديات الرواد وفي الاخ الاصيل مركبه على منتدياته بيتا 7 منتديات الاصيل تحياتي لجميع من ردوا وشكرا خاص لآخوي تركي .. والف شكر للمرور .. أخوكم في الله . غريب الحلا |
|
| العلامات المرجعية |
| أدوات الموضوع | |
| طرق العرض | |
|
|