| |||||||
| المدوّنات | البحث | مشاركات اليوم | اجعل كافة المشاركات مقروءة |
|
| | LinkBack | أدوات الموضوع |
| |||||
![]() في البداية أحب أشكر أخوي سوالف على كل اللي سواه لنا في الفترة السابقة , وأحب اقول له اني الحمدلله نجحت في التعريب والتركيب واضافة سكربتات كثيرة للبرنامج ....كله بفضل الله ثم بفضلك ياسوالف وبفضل موقعك الأكثر من رائع.. هذي طريقة تركيب سكربت يظهر أخر من رد على الموضوع من الأعضاء ... والتي نجحت معي في نسخة 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(<A HREF="$CGIURL/ubbmisc.cgi?action=getbio&UserName=$threadinfo[8]" target=_blank> ); $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"> <FONT SIZE="$DateSize" FACE="$FontFace">$TheDate <FONT SIZE="$DateSize" FACE="$FontFace" COLOR="$TimeColor">$FormatTime</font></font> </font> </pre> </td> </tr> </table> </center> </div> </BLOCKQUOTE> اضف تحتها هذا الكود.. <BLOCKQUO | |||||
|
| |||||
|
شكرا لك اخي على هذه المعلومات واود الاستفسار عن الطريقة التي يمكنني بها ان اخصص قسم للمراقبين فقط مع العلم انني قمت بوضع باسوورد من خلال الكنترول في لقسم ولكنه لم يعمل وكيف يمكنني ان اعطي شخص ما صلاحية الاشراف على قسم معين واخيرا كيف يمكنني ان اغير الاسم الخاص بي الادمن وشكرا | |||||
|
| |||||
|
اخى فار الانترنت لكى تخصص قسم للمراقبين يجب ان يكون المنتدى على الانترنت لن يعمل اذا كان على جهازك ------------------ I love every bode mohammedeg@crosswinds.net http://galaxy2k.virtualave.net | |||||
|
![]() |
| أدوات الموضوع | |
| |