+ الرد على الموضوع
النتائج 1 إلى 3 من 3
  1. #1
    مجنون غندور is a jewel in the rough مجنون غندور is a jewel in the rough مجنون غندور is a jewel in the rough الصورة الرمزية مجنون غندور
    تاريخ التسجيل
    02 / 07 / 2006
    الدولة
    السعودية
    العمر
    41
    المشاركات
    166
    معدل تقييم المستوى
    413

    افتراضي مافائده هذه الملفات

    [align=center]بسم الله الرحمن الرحيم


    سأدخل بالموضوع مباشره

    يوجد لدي كثير من الاستايلات

    وهذه الاستايلات يوجد معها بعض الملفات اريد ان استفسر
    عن عملها وماهي فائدها


    مثلا شرح تركيب احد الاستايلات



    ثانياً : انقل الملفان last10rose.php و last10config.php
    إلى مجلد منتداك الرئيسي مع مراعاة تعديل الروابط في ملف last10config.php
    من allulu.org إلى اسم موقعك


    الكود الموجود بالملف last10rose.php
    كود PHP:
    <style>
    <!--
    A:link {text-decoration: none ; color : #7B2839}
    A:visited {text-decoration: none ; color : #7B2839}
    A:active {text-decoration: none ; color : #7B2839}
    A:hover {text-decoration: none ; color : #FF0000}
    //-->
    </style>
    <script language='JavaScript'>
    <!--

    function stopError() {
    return true;
    }

    window.onerror = stopError;

    // -->
    </script>
    </head>
    <body bgcolor="#FFFDFD">
    <body  text="#2B4663" id="all" rightmargin="0" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" link="#2B4663" vlink="#2B4663" alink="#FF4400">


    <?
    require("last10config.php");
    require(
    "includes/config.php");
    echo 
    "<FONT color=$tc ><marquee dir=\"rtl\" direction=\"right\" scrolldelay=\"200\">";
    $db=mysql_connect($servername,$dbusername,$dbpassword) or die("Can't open connection to MySQL");
    mysql_select_db($dbname) or die("Can't select database");
    $hfs $fs+2;
    $fs .= "pt";
    $hfs .= "pt";
    // the base WHERE statement
    $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;
    }
    // otherwise figure out which one we're using
    // include forums
    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]'";
        }
    }
    // or exclude forums
    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;
        }
    }

    // ooh a query!
    $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";
    // let's get the info
    $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);


    // let's display the info
    while ($threads mysql_fetch_array($tr)) {

        echo 
    " <FONT SIZE=\"1\" FACE=\"ms sans serif,arial,verdana,helvetica\"><a href=\"$url/showthread.php?=$session[sessionhash]&threadid=$threads[threadid]&goto=newpost\" title=\"$threads[title]\" target=_blank>$threads[title]  [ آخر مشاركة : $threads[lastposter] ] &nbsp</a></font> <FONT SIZE=\"3\" FACE=\"arial,verdana,helvetica\"> :: </font> ";
    }
    // close it all up
    // bye!

    ?></marquee>
    والكود الموجود بالملف last10config.php

    كود PHP:
    <?



    /////////////// CONFIG ///////////////
    // 
    $path "http://www.gndor.com/vb/includes"// path to your config.php file (usually in the /admin directory) - NO TRAILING SLASH! Do not include "config.php"
    $url "http://www.gndor.com/vb"// URL to your board - NO TRAILING SLASH!
    $urlimg "http://www.gndor.com/vb/images"// URL to your board's images - NO TRAILING SLASH!
    $maxthreads "10"// max threads to show. will show less if $last24 or $last7 limits it to less results than this number
    $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!
    $last24 "0"// 1 = last 24 hours; 0 = all (must set this to 0 if $last7 is set to 1)
    $last7 "0"// 1 = last 7 days; 0 = all (must set this to 0 if $last24 is set to 1)
    $bc1 "#696969"// first alt color
    $bc2 "#5c5c5c"// second alt color
    $hc "#999999"// head background color
    $lc "#EEEEEE"// link color
    $tc "#FFFFFF"// text color
    $f "Verdana"// font face
    $fs "8"// font size in points - 8 is normal, 6 is on the small side, 10 on the large side. play around with it. :)
    $lastposter "0"// show last poster? 1 = yes; 0 = no
    $views "0"// show view count? 1 = yes; 0 = no
    $replies "0"// show reply count? 1 = yes; 0 = no
    $lastpostdate "1"// 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
    $showmessages "0"// show the text of the last post too? 1 = yes; 0 = no
    $lplen "300"// character length of last post text (if $showmessages is set to 0 this won't do anything).
    $tw ""// width of the table that shows the info, in either a percent ( e.g. 95% ) or in pixels ( e.g. 300 ). leave blank if you want the table to be sized naturally
    $showdate "0"// show the date, as well as the time? if the posts that show up in the list are likely to all be from today (or you set $last24 to "1"), you can set this to 0. if the posts are spread over multiple days, you probably want this set to 1.
    $cs "0"// this is the cellspacing. 1 makes a thin line around the cells. 0 makes no line.
    $showicon "1"// shows the posts' icon next to the post
    $showforumtitle "0"// shows the forum title (linked to that forum) next to the thread title
    $nb "0"// do you want breaks in text to appear as such? this may cause problems if there are large breaks in the text
    //
    ///////////// END CONFIG /////////////

    ?>

    ارجوا من الاخوه الافاضل والذين لهم خبره في مجال المنتدى

    ايضاح مافائده هذه الملفات وماهو عملها

    هذا ودمتم بوود
    [/align]

     
  2. #2
    المودة has a reputation beyond repute المودة has a reputation beyond repute المودة has a reputation beyond repute المودة has a reputation beyond repute المودة has a reputation beyond repute المودة has a reputation beyond repute المودة has a reputation beyond repute المودة has a reputation beyond repute المودة has a reputation beyond repute المودة has a reputation beyond repute المودة has a reputation beyond repute الصورة الرمزية المودة
    تاريخ التسجيل
    17 / 08 / 2004
    العمر
    32
    المشاركات
    20,806
    معدل تقييم المستوى
    26159

    افتراضي رد: مافائده هذه الملفات

    هذين الملفين خاصة بشريط آخر المواضيع ولا انصح بإستخدامها ... وابحث عن شريط يعمل بنظام المنتجات أفضل وآمن ... تحياتي .

     
  3. #3
    مجنون غندور is a jewel in the rough مجنون غندور is a jewel in the rough مجنون غندور is a jewel in the rough الصورة الرمزية مجنون غندور
    تاريخ التسجيل
    02 / 07 / 2006
    الدولة
    السعودية
    العمر
    41
    المشاركات
    166
    معدل تقييم المستوى
    413

    افتراضي رد: مافائده هذه الملفات

    جزاك الله خيرا يابو رااشد

    على التوضيح

    لكن ماشد انتباهي انه لما وضعت الملفات بمجلد المنتدى الرئيسي

    لاحظت دخول عدد كبير من محركات البحث

    عشان كذا قلت لازم بالاول استفسر من اصحاب الخبره

    ومشكور مره ثانيه يابو راشد

    تقبل خالص تحياتي

     

 
+ الرد على الموضوع

معلومات الموضوع

الأعضاء الذين يشاهدون هذا الموضوع

الذين يشاهدون الموضوع الآن: 1 (0 من الأعضاء و 1 زائر)

     

مواقع النشر (المفضلة)

مواقع النشر (المفضلة)

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

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