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

الموضوع: سوالف الف شكر لك ............تفضلو كيفية اضافة أخر رد

  1. #1
    فضلاً اكتب اسمك الحقيقي هنا
    زائر




    في البداية أحب أشكر أخوي سوالف على كل اللي سواه لنا في الفترة السابقة ,
    وأحب اقول له اني الحمدلله نجحت في التعريب والتركيب واضافة سكربتات كثيرة للبرنامج ....كله بفضل الله ثم بفضلك ياسوالف وبفضل موقعك الأكثر من رائع..

    هذي طريقة تركيب سكربت يظهر أخر من رد على الموضوع من الأعضاء ...
    والتي نجحت معي في نسخة UBB v5.40

    الملفات اللي راح نشتغل عليها هي :
    ubb_library.pl
    postings.cgi
    forumdisplay.cgi
    والله يفضل عمل نسخة من هالملفات احتياطا لأي طاريء ..

    في البداية نفتح ملف ubb_library.pl
    عند #check to see if thread is closed نبحث اسفلها عن هذا الكود

    <BLOCKQUOTE> <font> كود: </font> <div align="ltr"> <center> <table border="0" width="80%" dir="ltr" bgcolor=="#000000"> <tr> <td width="100%"> <pre> <font color="#ffffff">
    ($MonthOfMessage, $DayOfMessage, $YearOfMessage) = split(/\-/, $lastreply[3]);
    </font> </pre> </td> </tr> </table> </center> </div> </BLOCKQUOTE>
    وأسفلة مباشرة نضع هذا الكود
    <BLOCKQUOTE> <font> كود: </font> <div align="ltr"> <center> <table border="0" width="80%" dir="ltr" bgcolor=="#000000"> <tr> <td width="100%"> <pre> <font color="#ffffff"> $lastAuthor = $lastreply[2];
    $lastAuthor =~ tr/ /+/;
    chomp($lastAuthor); </font> </pre> </td> </tr> </table> </center> </div> </BLOCKQUOTE>

    بنفس الطريقة نبحث عن ..
    <BLOCKQUOTE> <font> كود: </font> <div align="ltr"> <center> <table border="0" width="80%" dir="ltr" bgcolor=="#000000"> <tr> <td width="100%"> <pre> <font color="#ffffff"> $itemline = "$PostJulianTime|^|$ThreadNumber|^|$Subject|^|$TotalReplies|^|$author|^|$DateTime|^|$closed|^|$MsgIc on "; </font> </pre> </td> </tr> </table> </center> </div> </BLOCKQUOTE>
    ونستبدلة بهذا الكود
    <BLOCKQUOTE> <font> كود: </font> <div align="ltr"> <center> <table border="0" width="80%" dir="ltr" bgcolor=="#000000"> <tr> <td width="100%"> <pre> <font color="#ffffff"> $itemline = "$PostJulianTime|^|$ThreadNumber|^|$Subject|^|$TotalReplies|^|$author|^|$DateTime|^|$closed|^|$MsgIc on|^|$lastAuthor"; </font> </pre> </td> </tr> </table> </center> </div> </BLOCKQUOTE>

    ثم نبحث عن هذا السطر
    <BLOCKQUOTE> <font> كود: </font> <div align="ltr"> <center> <table border="0" width="80%" dir="ltr" bgcolor=="#000000"> <tr> <td width="100%"> <pre> <font color="#ffffff"> $ThreadFile = shift; </font> </pre> </td> </tr> </table> </center> </div> </BLOCKQUOTE>
    ونضع اسفلة هذا الكود ..
    <BLOCKQUOTE> <font> كود: </font> <div align="ltr"> <center> <table border="0" width="80%" dir="ltr" bgcolor=="#000000"> <tr> <td width="100%"> <pre> <font color="#ffffff"> $lastAuthor = shift; #passed from DoPostTheTopic
    chomp($lastAuthor); </font> </pre> </td> </tr> </table> </center> </div> </BLOCKQUOTE>

    نبحث عن هذا الكود
    <BLOCKQUOTE> <font> كود: </font> <div align="ltr"> <center> <table border="0" width="80%" dir="ltr" bgcolor=="#000000"> <tr> <td width="100%"> <pre> <font color="#ffffff"> $newline = "$PostJulianTime|^|$threadnum|^|$TopicSubject|^|0|^|$UserName|^|$DateTime|^|no|^|$MsgIcon"; </font> </pre> </td> </tr> </table> </center> </div> </BLOCKQUOTE>
    ونستبدلة بهذا الكود ..
    <BLOCKQUOTE> <font> كود: </font> <div align="ltr"> <center> <table border="0" width="80%" dir="ltr" bgcolor=="#000000"> <tr> <td width="100%"> <pre> <font color="#ffffff"> $newline = "$PostJulianTime|^|$threadnum|^|$TopicSubject|^|0|^|$UserName|^|$DateTime|^|no|^|$MsgIcon|^|$lastAut hor"; </font> </pre> </td> </tr> </table> </center> </div> </BLOCKQUOTE>

    ثم نبحث عن هذا السطر
    <BLOCKQUOTE> <font> كود: </font> <div align="ltr"> <center> <table border="0" width="80%" dir="ltr" bgcolor=="#000000"> <tr> <td width="100%"> <pre> <font color="#ffffff"> my $ThisIcon = $statarray[6];
    chomp($ThisIcon); </font> </pre> </td> </tr> </table> </center> </div> </BLOCKQUOTE>
    ونضع أسفلة هذا الكود ..
    <BLOCKQUOTE> <font> كود: </font> <div align="ltr"> <center> <table border="0" width="80%" dir="ltr" bgcolor=="#000000"> <tr> <td width="100%"> <pre> <font color="#ffffff"> $lastAuthor = $lastreply[2];
    $lastAuthor =~ tr/ /+/;
    chomp($lastAuthor); </font> </pre> </td> </tr> </table> </center> </div> </BLOCKQUOTE>

    ثم نبحث عن هذا الكود
    <BLOCKQUOTE> <font> كود: </font> <div align="ltr"> <center> <table border="0" width="80%" dir="ltr" bgcolor=="#000000"> <tr> <td width="100%"> <pre> <font color="#ffffff"> $newline = "$PostJulianTime|^|$threadnum|^|$subject|^|$TotalReplies|^|$author|^|$DateTime|^|$Closed|^|$ThisIcon "; </font> </pre> </td> </tr> </table> </center> </div> </BLOCKQUOTE>
    ثم نستبدلة بهذا ..
    <BLOCKQUOTE> <font> كود: </font> <div align="ltr"> <center> <table border="0" width="80%" dir="ltr" bgcolor=="#000000"> <tr> <td width="100%"> <pre> <font color="#ffffff"> $newline = "$PostJulianTime|^|$threadnum|^|$subject|^|$TotalReplies|^|$author|^|$DateTime|^|$Closed|^|$ThisIcon |^|$lastAuthor"; </font> </pre> </td> </tr> </table> </center> </div> </BLOCKQUOTE>

    نبحث عن هذا السطر
    <BLOCKQUOTE> <font> كود: </font> <div align="ltr"> <center> <table border="0" width="80%" dir="ltr" bgcolor=="#000000"> <tr> <td width="100%"> <pre> <font color="#ffffff"> chomp($checkit[7]); </font> </pre> </td> </tr> </table> </center> </div> </BLOCKQUOTE>
    ونضع اسفلة هذا الكود ..
    <BLOCKQUOTE> <font> كود: </font> <div align="ltr"> <center> <table border="0" width="80%" dir="ltr" bgcolor=="#000000"> <tr> <td width="100%"> <pre> <font color="#ffffff"> chomp($checkit[8]); </font> </pre> </td> </tr> </table> </center> </div> </BLOCKQUOTE>

    الحين خلصنا من هالملف (عسى ماتعبتو ) نحفظ شغلنا
    ونفتح ملف postings.cgi الحين ..

    ندور (يقالي غيرتها بدال نبحث) عن هذا السطر ..
    <BLOCKQUOTE> <font> كود: </font> <div align="ltr"> <center> <table border="0" width="80%" dir="ltr" bgcolor=="#000000"> <tr> <td width="100%"> <pre> <font color="#ffffff"> &AppendForumSummary($number, $newtopicfile); </font> </pre> </td> </tr> </table> </center> </div> </BLOCKQUOTE>
    ونستبدلها بهالكود..
    <BLOCKQUOTE> <font> كود: </font> <div align="ltr"> <center> <table border="0" width="80%" dir="ltr" bgcolor=="#000000"> <tr> <td width="100%"> <pre> <font color="#ffffff"> &AppendForumSummary($number, $newtopicfile, $UserName); </font> </pre> </td> </tr> </table> </center> </div> </BLOCKQUOTE>
    أوكي نحفظ شغلنا ...
    نفتح ملف forumdisplay.cgi الحين ..

    ندور هذا السطر ..
    <BLOCKQUOTE> <font> كود: </font> <div align="ltr"> <center> <table border="0" width="80%" dir="ltr" bgcolor=="#000000"> <tr> <td width="100%"> <pre> <font color="#ffffff"> $ThisURL = qq($NonCGIURL/$ExactPath/HTML/$threadinfo[1].html); </font> </pre> </td> </tr> </table> </center> </div> </BLOCKQUOTE>
    ونحط هذا تحتة ...
    <BLOCKQUOTE> <font> كود: </font> <div align="ltr"> <center> <table border="0" width="80%" dir="ltr" bgcolor=="#000000"> <tr> <td width="100%"> <pre> <font color="#ffffff"> $lastAuthName = qq(&lt;A HREF="$CGIURL/ubbmisc.cgi?action=getbio&UserName=$threadinfo[8]" target=_blank&gt; );
    $lastName = $threadinfo[8];
    $lastName =~ tr/+/ /; </font> </pre> </td> </tr> </table> </center> </div> </BLOCKQUOTE>

    الحين طالع تحت شوي بتلقى هذا الكود ..
    <BLOCKQUOTE> <font> كود: </font> <div align="ltr"> <center> <table border="0" width="80%" dir="ltr" bgcolor=="#000000"> <tr> <td width="100%"> <pre> <font color="#ffffff"> &lt;FONT SIZE="$DateSize" FACE="$FontFace"&gt;$TheDate &lt;FONT SIZE="$DateSize" FACE="$FontFace" COLOR="$TimeColor"&gt;$FormatTime&lt;/font&gt;&lt;/font&gt; </font> </pre> </td> </tr> </table> </center> </div> </BLOCKQUOTE>
    اضف تحتها هذا الكود..
    <BLOCKQUO







  2. #2
    فضلاً اكتب اسمك الحقيقي هنا
    زائر









  3. #3


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





    فار الانترنت غير متواجد حالياً

  4. #4
    عضو نشيط
    تاريخ التسجيل
    Dec 1999
    المشاركات
    205


    اخى فار الانترنت
    لكى تخصص قسم للمراقبين يجب ان يكون المنتدى على الانترنت
    لن يعمل اذا كان على جهازك

    ------------------
    I love every bode
    mohammedeg@crosswinds.net
    http://galaxy2k.virtualave.net






    Superman غير متواجد حالياً





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

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

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