النتائج 1 إلى 10 من 10

الموضوع: من لها كود معين مطلوب في منتدى

  1. #1
    عضو نشيط جدا
    تاريخ التسجيل
    Sep 2006
    المشاركات
    320

    من لها كود معين مطلوب في منتدى



    سلام عليكم
    كيف الحال
    ياريت
    لو بقدر أطلع كل قسم عندي
    أخر أضافات
    يعني
    هلأ
    عندي قسم الرياضة
    وقسم البرمجة

    بدي أخر المواضيع في قسم الرياضة
    وأخر المواضيع في قسم البرمجة
    كيف بقدر أطلعها لحالها
    مو مع بعض
    زي شريط أخر مواضيع المنتدى
    وشكرا
    إلكم





    __________________
    Mohammed Basha
    bashaclick@hotmail.com

    London - Canada
    www.24-dev.com


  2. #2
    عضو نشيط جدا
    تاريخ التسجيل
    Sep 2006
    المشاركات
    320


    ياريت فهمته علي
    مابدي ياه يكون داخل منتدى
    خارج المنتدى

    كود
    مو برودكت
    وشكرا





    __________________
    Mohammed Basha
    bashaclick@hotmail.com

    London - Canada
    www.24-dev.com

  3. #3


    اذا كان تقصد مثل الموجود في الصورة المرفقة فالطريقة كالتالي

    افتح تمبلت :
    forumhome_forumbit_level1_nopost


    ابحث عن :
    <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><center>$forum[title]</a></center>

    اضف بعده مباشرة

    <if condition="$lastpostinfo[lastthreadid] != 0"> :
    &nbsp; <font color="#0000FF">آخر مواضيع هذا القسم&nbsp;</font> » </a>&nbsp;
    <span class="smallfont"><a href="showthread.php?$session[sessionurl]t=$lastpostinfo[lastthreadid]" title="$thread[preview]">$lastpostinfo[trimthread]</a> : <phrase 1="member.php?$session[sessionurl]find=lastposter&amp;f=$lastpostinfo[forumid]" 2="$lastpostinfo[lastposter]">$vbphrase[by_x]</phrase>
    </if>


    انتهى , وبالتوفيق





    الصور المرفقة الصور المرفقة  

  4. #4
    عضو نشيط جدا
    تاريخ التسجيل
    Sep 2006
    المشاركات
    320


    أخوي تمام
    بس في شي
    هاد كود بحطه جو المنتدى
    أنا عندي صفحة HTML
    وفي قسم الاداب
    يجي جنبها شريط متحرك لاخر مواضيع في قسم الاداب
    لما يكبس عليها
    يروح على منتدى
    فهمت علي
    وشكرا للمروك





    __________________
    Mohammed Basha
    bashaclick@hotmail.com

    London - Canada
    www.24-dev.com

  5. #5
    __________________
    حسابي فيسبوك
    https://www.facebook.com/ahmedo.vip/

    المبرمج
    http://www.almprmg.com/

    شركة اوريكو لتكنولوجيا المعلومات - استضافة وبرمجة المواقع | خدمات السوشيال ميديا
    http://www.orico.com.eg

  6. #6
    عضو نشيط جدا
    تاريخ التسجيل
    Sep 2006
    المشاركات
    320


    أخوي أحمد سمارة
    ياريت بخير
    مو هاد الإدور عليه
    هاد لكل الاقسام في منتدى العام والرياضة
    أنا بدي أخصصها فقط للمنتدى العام مثلا
    أخر أخبار المنتدى العام فقط
    بدون دخول الرياضة وووو
    ياريت وضحت صورة





    __________________
    Mohammed Basha
    bashaclick@hotmail.com

    London - Canada
    www.24-dev.com

  7. #7


    سهله في نفس الموضوع ادخل ارقام الاقسام التي تريد حجبها

    حدد من الملف منتدي معين

    $includeforums = "";





    __________________
    حسابي فيسبوك
    https://www.facebook.com/ahmedo.vip/

    المبرمج
    http://www.almprmg.com/

    شركة اوريكو لتكنولوجيا المعلومات - استضافة وبرمجة المواقع | خدمات السوشيال ميديا
    http://www.orico.com.eg

  8. #8
    عضو نشيط جدا
    تاريخ التسجيل
    Sep 2006
    المشاركات
    320


    هلا أخوي أحمد
    وين أحط كود منع ضهور هاد منتدى
    هاد كود عندي
    وشكرا

    كود PHP:
    <? 
    require("includes/config.php"); 

    $path "includes"// مسار ملف config.php في مجلد المنتدى 
    $url "http://www.swalif.net"// مسار موقع المنتدى 
    $maxthreads "10"// العدد الذي تريد عرضه من المواضيع في آخر المشاركات 
    $ob "lastpost"// set to one of the following: replycount , views , lastposter , title , lastpost (lastpost is most popular. it's the thread most recently replied to, then the second-to-last most recent, etc.) 
    $obdir "desc"// المجلد الذي يتم فيه الترتيب which direction to sort? "desc" goes from bottom to top (9 to 1, z to a, etc.). "asc" goes top to bottom (1 to 9, a to z, etc.). if you use lastpost for $ob, leave this set to desc or it will not work correctly! 
    $lastposter "1"// عرض آخر كاتبshow last poster? 1 = yes; 0 = no 
    $replies "0"// عرض إحصاء الرد show reply count? 1 = yes; 0 = no 
    $lastpostdate "0"// عرض تاريخ ووقت آخر رد show last post date and time? 1 = yes; 0 = no 
    $len 25 // أقصى عدد من الاحرف لعرضها في الموضوع maximum number of characters of the title to show. e.g. if the title is 60 characters and this is set to 25, only the first 25 characters of the title will be shown (followed by ...) 
    $excludeforums ""// if you want to exclude a forum, put it's ID here. more than one, seperate them with commas, NO SPACES! e.g. 1,2,3,4 
    $includeforums ""// إذا تريد تحديد منتدى معين ضع رقمه هنا if you only want to include certain forums, put their ids here. separate more than one with commas, NO SPACES! e.g. 1,2,3,4 

    $db mysql_connect($config['MasterServer']['servername'], $config['MasterServer']['username'], $config['MasterServer']['password']) or die("Could not connect"); 
        
    mysql_select_db($config['Database']['dbname'], $db) or die("غير قادر على الاتصال بقاعدة البيانات"); 

    $hfs $fs+2
    $fs .= "pt"
    $hfs .= "pt"

    $wheresql "WHERE thread.lastposter=user.username AND thread.open!='10'"

    // we can't have both the last 24 hours *and* the last 7 days, so error out if needed 
    if ($last24 == "1" && $last7 == "1") { 
            print(
    "Error: \$last24 and \$last7 are both set to 1. Please change one of them to 0."); 
            exit; 

    // otherwise we're gonna find out which one it is 
    // last 24 
    if ($last24 == "1") { 
            
    $time time()-86400
            
    $wheresql .= " AND thread.lastpost>'$time'"

    // last 7 
    if ($last7 == "1") { 
            
    $time time()-604800
            
    $wheresql .= " AND thread.lastpost>'$time'"

    // are we trying to exclude *and* include forums? if so, error out 
    if ($excludeforums != "" && $includeforums != "") { 
            print(
    "Error: \$includeforums and \$excludeforums are both set with numbers. Please remove the numbers from <b>one</b> of these two to proceed."); 
            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
            } 


    $query "SELECT thread.lastpost,thread.title,thread.lastposter,thread.replycount,thread.views,user.userid,thread.threadid,thread.forumid,thread.iconid FROM thread,user $wheresql ORDER BY thread.$ob $obdir LIMIT $maxthreads"

    $tr mysql_query($query) or die("MySQL reported this error while trying to retreive the info: ".mysql_error()); 
    $dtf mysql_query("SELECT value FROM setting WHERE varname='dateformat' OR varname='timeformat' OR varname='timeoffset' ORDER BY varname"); 
    $df mysql_result($dtf,0,0); 
    $tf mysql_result($dtf,1,0); 
    $tof mysql_result($dtf,2,0); 

    while (
    $threads mysql_fetch_array($tr)) { 

            echo 
    " <a href=\"$url/showthread.php?=$session[sessionhash]&threadid=$threads[threadid]&goto=newpost\" title=\"$threads[title]\" target=_blank><font color=\"#000000\">$threads[title]</font></a>"
             echo 
    "<br/>"



    ?>






    __________________
    Mohammed Basha
    bashaclick@hotmail.com

    London - Canada
    www.24-dev.com

  9. #9


    افتح الملف
    وابحث عن
    كود PHP:
    $includeforums ""
    واستبدلها :
    كود PHP:
    $includeforums "1,2"
    تغير رقم 1 ورقم 2 الى الاقسام التي تريد عرضها ...





    __________________
    حسابي فيسبوك
    https://www.facebook.com/ahmedo.vip/

    المبرمج
    http://www.almprmg.com/

    شركة اوريكو لتكنولوجيا المعلومات - استضافة وبرمجة المواقع | خدمات السوشيال ميديا
    http://www.orico.com.eg

  10. #10
    عضو نشيط جدا
    تاريخ التسجيل
    Sep 2006
    المشاركات
    320


    شكر أخوي أحمد
    ما نتهبتلها هيها فوق وشكرا إ لك كتيير وبارك الله فيك





    __________________
    Mohammed Basha
    bashaclick@hotmail.com

    London - Canada
    www.24-dev.com





ضوابط المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك
  •  

أضف موقعك هنا| اخبار السيارات | حراج | شقق للايجار في الكويت | بيوت للبيع في الكويت | دليل الكويت العقاري | مقروء | شركة كشف تسربات المياه | شركة عزل اسطح بالرياض | عزل فوم بالرياض| عزل اسطح بالرياض | كشف تسربات المياة بالرياض | شركة عزل اسطح بالرياض