+ الرد على الموضوع
صفحة 1 من 2 1 2 الأخيرةالأخيرة
النتائج 1 إلى 5 من 6
  1. #1
    الشريف الهاشمى is on a distinguished road
    تاريخ التسجيل
    08 / 12 / 2008
    الدولة
    السعودية
    المشاركات
    78
    معدل تقييم المستوى
    267

    افتراضي الحق يابو راشد كود تحويل الروابط مثل الفي بي سيو وبدون اي مشاكل للنسخ 3.8.5

    السلام عليكم



    اليوم جبتلكم طريقة تحويل الروابط مثل الفي بي سيو (للنسخ 3.8.5) رائعة جدا ولاتسبب لود على السيرفر ودون اي مشاكل إن شاء الله ،
    ويمكن استغلال هذه الطريقة لمن يريد حذف هاك الفي بي سيو دون فقدان الروابط لان عند تركيب هذا الكود ستلاحظ عدم وجود فرق عن الفي بي سيو

    سوى

    عدم تحويل روابط الاعضاء ولكن المهم لدينا هو المواضيع والمشاركات

    بصراحة الطريقة ليست من برمجتي وانما هي من تطويري لجعلها ملائمة لنسخة المنتديات الحديثة 3.8.5 حيث قمت بأجراء بعض التعديلات واتمنى ان تنال رضاكم ، وهايه الطريقة ما نزلتها الا ان تأكدت من سلامة الطريقة بشكل كامل لمدة في منتداي وبدون اي اخطاء بالعكس جمالية للروابط والمنتدى وارشفة ممتازة بعون الله

    كل ما عليكم فعله رفع الملف functions من خلال السي بنل الى مجلد includes
    وكذلك رفع ملف الهيتاكس الى مجلد المنتدى الرئيسي vb


    ملاحظة : عند تركيب هذا الكود وملاحظة عدم تحويل الروابط في هاك اخر احصائيات المنتدى ، عليكم تركيب هاك احصائيات المنتدى بعد اجراء عليه بعض التعديلات (الهاك مرفق ايضاً)

    جميع الحقوق محفوظة لمنتديات عراق اون لاين
    www.3raq-online.com/vb

    شباب لكي اكون صادقاً الطريقة ليست من برمجتي ولكن من تعديلي ، فأذا كان بها النفع فدعاء لي ولوالداي يكفيني

    ملاحظة : اذا قدر احدكم ان يعدل عليها ويقوم بتحويل روابط العضويات ايضاً سيكون النفع مضاعف ان شاء الله لانه سيصبح مثل الفي بي سيو بدون اي اختلاف ..
    فاتمنى من الخبرا ان يقومو بتحويل العضويات



    اليكم طريقة التركيب بصيغة اخرى :

    اولاً : نفتح ملف الـ function.php في مجلد الـ includes الرئيسي الموجود في المنتدى (اي ليس الذي ارفقته لكم) بواسطة notepad او اي محرر اخر

    ونبحث عن :

    كود PHP:
    global $vbphrase$stylevar

    ونضع تحتها مباشرة التالي :


    كود PHP:
    // do Dani's SEO optimization
    global $session;
     
    $search_array = array(
    '#<a ([^>]*)href' preg_quote("=\"forumdisplay.php?$session[sessionurl]f=") . '([0-9]+)' preg_quote("&amp;page=") . '([0-9]+)' preg_quote("&amp;sort=") . '([a-z]*)' preg_quote("&amp;order="). '([a-z]*)' preg_quote("&amp;pp=") . '([0-9]*)' preg_quote("&amp;daysprune="). '([^"]*)"#',
    '#<a ([^>]*)href' preg_quote("=\"forumdisplay.php?$session[sessionurl]f=") . '([0-9]+)' preg_quote("&amp;daysprune=") . '([^"]*)' preg_quote("&amp;order=") . '([a-z]*)' preg_quote("&amp;sort=") . '([a-z]*)' preg_quote("&amp;pp=") . '([0-9]*)' preg_quote("&amp;page=") . '([0-9]+)"#',
    '#<a ([^>]*)href' preg_quote("=\"forumdisplay.php?$session[sessionurl]f=") . '([0-9]+)' preg_quote("&amp;daysprune=") . '([^"^&]*)' preg_quote("&amp;order=") . '([a-z]*)' preg_quote("&amp;sort=") . '([a-z]*)"#',
    '#<a ([^>]*)href' preg_quote("=\"forumdisplay.php?$session[sessionurl]f=") . '([0-9]+)' preg_quote("&amp;daysprune="). '([^"^&]*)"#',
    '#<a ([^>]*)href' preg_quote("=\"forumdisplay.php?$session[sessionurl]f=") . '([0-9]+)' preg_quote("&amp;page=") . '([0-9]+)"#',
    '#<a ([^>]*)href' preg_quote("=\"forumdisplay.php?$session[sessionurl]f=") . '([0-9]+)"#',
    '#<a ([^>]*)href' preg_quote("=\"showthread.php?$session[sessionurl]t=") . '([0-9]+)' preg_quote("&amp;page=") . '([0-9]*)' preg_quote("&amp;pp=") . '([0-9]+)"#',
    '#<a ([^>]*)href' preg_quote("=\"showthread.php?$session[sessionurl]t=") . '([0-9]+)' preg_quote("&amp;page=") . '([0-9]+)"#',
    '#<a ([^>]*)href' preg_quote("=\"showthread.php?$session[sessionurl]t=") . '([0-9]+)"#',
    '#<a ([^>]*)href' preg_quote("=\"showthread.php?$session[sessionurl]goto=lastpost&amp;t=") . '([0-9]+)"#',
    '#<a ([^>]*)href' preg_quote("=\"showthread.php?$session[sessionurl]goto=newpost&amp;t=") . '([0-9]+)"#',
    '#<a ([^>]*)href' preg_quote("=\"printthread.php?$session[sessionurl]t=") . '([0-9]+)"#',
    '#<a ([^>]*)href' preg_quote("=\"sendmessage.php?$session[sessionurl]do=sendtofriend&amp;t=") . '([0-9]+)"#'
    '#<a ([^>]*)href' preg_quote("=\"showthread.php?$session[sessionurl]t=") . '([0-9]+)' preg_quote("&amp;goto=next"). '([a-z]+)"#',
    '#<a ([^>]*)href' preg_quote("=\"showthread.php?$session[sessionurl]p=") . '([0-9]+)"#',
    '#<a ([^>]*)href' preg_quote("=\"showthread.php?$session[sessionurl]p=") . '([0-9]+)' preg_quote("&amp;page=") . '([0-9]+)' preg_quote("&amp;pp=") . '([0-9]+)"#',
    '#<a ([^>]*)href' preg_quote("=\"showpost.php?$session[sessionurl]p=") . '([0-9]+)' preg_quote("&amp;postcount=") . '([0-9]+)"#'
    '#<a ([^>]*)href' preg_quote("=\"showthread.php?$session[sessionurl]mode=") . '([a-z]+)' preg_quote("&amp;t=") . '([0-9]+)"#',
    '#<a ([^>]*)href' preg_quote("=\"showthread.php?$session[sessionurl]p=") . '([0-9]+)' preg_quote("&amp;mode=") . '([a-z]+)\##'
     
    '#<a ([^>]*)href' preg_quote("=\"announcement.php?$session[sessionurl]f=") . '([0-9]+)' preg_quote("&amp;announcementid=") . '([0-9]+)"#',
    '#<a ([^>]*)href' preg_quote("=\"announcement.php?$session[sessionurl]f=") . '([0-9]+)"#',
     
    // sanitizing
    '#<a ([^>]*)href\=\"([^"]*)&amp;page=([^"]*).html"#',
    '#<a ([^>]*)href\=\"([^"]*)&amp;highlight=([^"]*).html"#',
     
    // other
    '#<a ([^>]*)href' preg_quote("=\"search.php?$session[sessionurl]do=getdaily&amp;f=") . '([0-9]*)"#',
    '#<a ([^>]*)href' preg_quote("=\"search.php?$session[sessionurl]do=getdaily") . '"#',
    '#<a ([^>]*)href' preg_quote("=\"search.php?$session[sessionurl]do=process&amp;replyless=1&amp;replylimit=0&amp;dontcache=1&amp;forumchoice=&amp;childforums=1") . '"#',
    '#<a ([^>]*)href' preg_quote("=\"search.php?$session[sessionurl]do=process&amp;replyless=1&amp;replylimit=0&amp;dontcache=1&amp;forumchoice=") . '([0-9]+)' preg_quote("&amp;childforums=1") . '"#'
     
    );
    $replace_array = array(
    '<a \1href="f\2-\3-\4-\5-\6-\7.html"',
    '<a \1href="f\2-\7-\5-\4-\6-\3.html"',
    '<a \1href="f\2-\3-\4-\5.html"',
    '<a \1href="f\2-\3.html"',
    '<a \1href="f\2-\3.html"',
    '<a \1href="f\2.html"',
    '<a \1href="t\2-\3.html"',
    '<a \1href="t\2-\3.html"',
    '<a \1href="t\2.html"',
    '<a \1href="lastpostinthread\2.html"',
    '<a \1href="newpostinthread\2.html"',
    '<a \1href="printthread\2.html"',
    '<a \1href="sendthread\2.html"',
    '<a \1href="next\3tothread\2.html"'
    '<a \1href="post\2.html"'
    '<a \1href="post\2-\3-\4.html"'
    '<a \1href="post\2-\3.html"'
    '<a \1href="t\3-\2.html"'
    '<a \1href="post\2-\3.html#'
     
    '<a \1href="announcement\2-\3.html"',
    '<a \1href="announcement\2.html"',
     
    // sanitizing
    '<a \1href="\2-\3.html"',
    '<a \1href="\2-\3.html"',
     
    // other
    '<a \1href="getdaily\2.html"',
    '<a \1href="getdaily.html"',
    '<a \1href="unanswered.html"',
    '<a \1href="unanswered\2.html"'
     
    );
    $vartext preg_replace($search_array$replace_array$vartext); 


    ثم نقوم برفع ملف الـ htacess المرفق

    وتأكدو ان الملف يشمل التالي :

    كود PHP:
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule 
    ^getdaily.htmlsearch.php?do=getdaily [L]
    RewriteRule ^getdaily([0-9]+).htmlsearch.php?do=getdaily&f=$[L]
    RewriteRule ^unanswered.htmlsearch.php?do=process&replyless=1&replylimit=0&dontcache=1     [L]
    RewriteRule ^unanswered([0-9]+).htmlsearch.php?do=process&replyless=1&replylimit=0&dontcache=1&forumchoice=$1&childforums=[L]
    RewriteRule ^f([0-9]+).html$        forumdisplay.php?f=$1         [L]
    RewriteRule ^f([0-9]+)-([0-9]+)-([a-z]+)-(.*)-([0-9]+)-(.*).htmlforumdisplay.php?f=$1&page=$2&sort=$3&order=$4&pp=$5&daysprune=$[L]
    RewriteRule ^f([0-9]+)-(.*)-([a-z]+)-([a-z]+).html$    forumdisplay.php?f=$1&daysprune=$2&order=$3&sort=$4     [L]
    RewriteRule ^announcement([0-9]+).html$     announcement.php?f=$1     [L]
    RewriteRule ^announcement([0-9]+)-([0-9]+).html$    announcement.php?f=$1&announcementid=$[L]
    RewriteRule ^t([0-9]+).html$     showthread.php?t=$1     [L]
    RewriteRule ^t([0-9]+)-([0-9]+).html$    showthread.php?t=$1&page=$2     [L]
    RewriteRule ^getnew.htmlsearch.php?do=getnew [L]
    RewriteRule ^getnew([0-9]+).htmlsearch.php?do=getnew&f=$[L]
    RewriteRule ^printthread([0-9]+).html$    printthread.php?t=$1     [L]
    RewriteRule ^sendthread([0-9]+).html$    sendmessage.php?do=sendtofriend&t=$[L]
    RewriteRule ^referthread([0-9]+)-([0-9]+).htmlshowthread.php?t=$1&referrerid=$2    [L]
    RewriteRule ^lastpostinthread([0-9]+).htmlshowthread.php?goto=lastpost&t=$[L]
    RewriteRule ^newpostinthread([0-9]+).htmlshowthread.php?goto=newpost&t=$[L]
    RewriteRule ^nextnewesttothread([0-9]+).html$    showthread.php?t=$1&goto=nextnewest    [L]
    RewriteRule ^nextoldesttothread([0-9]+).html$    showthread.php?t=$1&goto=nextoldest    [L]
    RewriteRule ^post([0-9]+).html$     showthread.php?p=$1     [L]
    RewriteRule ^post([0-9]+)-([0-9]+).html$    showpost.php?p=$1&postcount=$2    [L]
    RewriteRule ^post([0-9]+)-([0-9]+)-([0-9]+).htmlshowthread.php?p=$1&page=$2&pp=$3    [L]
    RewriteRule ^t([0-9]+)-([a-z]+).htmlshowthread.php?mode=$2&t=$1    [L]
    RewriteRule ^post([0-9]+)-([a-z]+).htmlshowthread.php?p=$1&mode=$2    [L
    تحياتي

    منقول لتعم الفائده وللبحت عن تطوير واخص اخي واستادنا ابو ىاشد جزاه الله خير
    الملفات المرفقة

     
  2. #2
    رومنسي نت is on a distinguished road الصورة الرمزية رومنسي نت
    تاريخ التسجيل
    21 / 04 / 2009
    الدولة
    مجهولة
    العمر
    35
    المشاركات
    72
    معدل تقييم المستوى
    257

    افتراضي

    وعليكم السلام

    مجهود واضح اخي الشريف

    شركرا لك على ماقدمت من فائده
    لتبادل الأعلاني اسم الموقع :منتديات تحبني الخليجية
    رابط الموقع: http://www.t7b3.com/vb

     
  3. #3
    الشريف الهاشمى is on a distinguished road
    تاريخ التسجيل
    08 / 12 / 2008
    الدولة
    السعودية
    المشاركات
    78
    معدل تقييم المستوى
    267

    افتراضي

    اقتباس المشاركة الأصلية كتبت بواسطة رومنسي نت مشاهدة المشاركة
    وعليكم السلام

    مجهود واضح اخي الشريف

    شركرا لك على ماقدمت من فائده
    شاكر مروركم اخي رومنسي

     
  4. #4
    مصراوي علطول is on a distinguished road
    تاريخ التسجيل
    23 / 04 / 2008
    الدولة
    مجهولة
    العمر
    39
    المشاركات
    26
    معدل تقييم المستوى
    223

    افتراضي

    مشكوووووووور اخي على المجهود الرائع ..

    انا مركب هذا الهاك وبصراحة رائع

    بس فيه مشكلة ياريت حد يعدلها

    ان الصفحة الرئيسية للمنتدى لم تتحول ل html !!!!!!!!!!!!!

     
  5. #5
    مصراوي علطول is on a distinguished road
    تاريخ التسجيل
    23 / 04 / 2008
    الدولة
    مجهولة
    العمر
    39
    المشاركات
    26
    معدل تقييم المستوى
    223

    افتراضي

    يا جماعة انا مركب هالسكربت

    المشكلة برضو ان روابط php شغالة لسة

    وجول يكتشفها على انها محتوى مكرر

    هل من طريقة لوقف روابط php بحيث يبقى html فقط

     

 
+ الرد على الموضوع
صفحة 1 من 2 1 2 الأخيرةالأخيرة

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

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

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

     

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

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

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

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