[align=center]التعريف
هاك اخترنا لك هذا الموضوع يقوم باختيار موضوع بشكل عشوائي عند تحديث الصفحة
مع معلومات الموضوع كامله اسفلة على حسب تنسيق الستايل الافتراضي للعضو
الهاك موجود فوق قالب النيف بار مباشرة وقم بتحديث الصفحة ولاحط تغير الموضوع باللون الاحمر
أفتح ملف
كود PHP:
vb/global.php
أبحث عن
كود PHP:
// parse some global templates
واضف اسفله بسطر
مع مراعاة اضافة رقم القسم الادارية والعبارة التي تريد ظهورها عند اغلاق هذه الخاصية
كود PHP:
//////////////////////////////////////////////////////////////////////////////////
// ADD FORUM ID - BY TAEEH
//////////////////////////////////////////////////////////////////////////////////
$excludeforums = "99";
$bbtitle = ".::||[ فضلاً قم بتحدث الصفحة حتى تتمكّن من الدخول ]||::.";
include "./includes/config.php";
$Connect= mysql_connect("$servername","$dbusername","$dbpassword") or die (mysql_error());
mysql_select_db($dbname) or die (mysql_error());
$wheresql = "WHERE thread.lastposter=user.username"; $includeforums = "";
if ($excludeforums != "" && $includeforums != "") {
print("<title>دخول خاطئ - منتديات قلبي</title><font face='ms sans serif' size='1'>
<body><center><br><br><br><br>$bbtitle</center></body></font>");exit;}
if ($includeforums == "" or $includeforums <= "0") {$quarter = "no";} else {
$incfid = explode(",",$includeforums); $i = 0; $a = count($incfid);if ($a > 1) {
$wheresql .= " AND (thread.forumid='$incfid[0]'";++$i;while ($i < $a) {
$wheresql .= " OR thread.forumid='$incfid[$i]'"; ++$i;}
$wheresql .= ")";} else {$wheresql .= " AND thread.forumid='$incfid[$i]'";}}
if ($excludeforums == "" or $excludeforums <= "0") {$quarter = "no"; } else {
$excfid = explode(",",$excludeforums); $i = 0; $a = count($excfid); while ($i < $a) {
$wheresql .= " AND thread.forumid!='$excfid[$i]'"; ++$i;}}
$rafiemg = $db->query_first("SELECT thread.postusername, thread.lastpost,thread.title,thread.lastposter,thread.replycount,thread.views,user.userid,thread.thr eadid,thread.forumid,thread.iconid FROM thread,user $wheresql ORDER BY RAND() LIMIT 1");
$rafiemgtitle = $rafiemg[title];
$rafiemgname = $rafiemg[postusername];
$rafiemgid = $rafiemg[postuserid];
$rafiemgthreadid = $rafiemg[threadid];
$rafiemgreplycount = $rafiemg[replycount];
$rafiemglastposter = $rafiemg[lastposter];
$rafiemgviews = $rafiemg[views];
eval('$rafiemg = "' . fetch_template('rafiemg') . '";');
//////////////////////////////////////////////////////////////////////////////////
// BY TAEEH
//////////////////////////////////////////////////////////////////////////////////
أضف قالب جديد بإسم
كود PHP:
rafiemg
وأضف بداخله
كود PHP:
<center><table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"><tr><td class="thead">
<!-- EDIT BY TAEEH -->
<div class="smallfont"><span class="smallfont">إخترنا لك هذا الموضوع ..
<a title="كتب الموضوع : $rafiemgname" href="showthread.php?p=$rafiemgfirstpostid&threadid=$rafiemgthreadid&goto=newpost">
<font color="#FF0000">$rafiemgtitle</a></font><br>
.::||[ بواسطة .. $rafiemgname .. المشاركات .. $rafiemgreplycount .. آخر رد .. $rafiemglastposter .. عدد الزيارات .. $rafiemgviews ]||::.</span></div>
<!-- EDIT BY TAEEH -->
</td></tr></center>
أفتح قالب
كود PHP:
navbar
واضف في اعلاه ( اول سطر ) الكود هذا
كود PHP:
<!-- EDIT BY TAEEH -->
<center>$rafiemg</center>
<br>
<!-- EDIT BY TAEEH -->