+ الرد على الموضوع
صفحة 1 من 3 1 2 3 الأخيرةالأخيرة
النتائج 1 إلى 5 من 15
  1. #1
    سجدة is on a distinguished road الصورة الرمزية سجدة
    تاريخ التسجيل
    26 / 01 / 2008
    الدولة
    مصر
    العمر
    44
    المشاركات
    180
    معدل تقييم المستوى
    0

    Exll كود تحويل php الى html

    بسم الله الرحمن الرحيم
    الله اكبر بسم الله
    اخوانى الان كود تحويل php الى html تم التجربه على النسخه 4.1.2
    الشرح
    افتح ملف includes/functions.php
    ابحث عن
    كود PHP:
    function print_output($vartext$sendheader 
    انا بسهل عليك الموضوع البحث ولكن
    هنحط الكود بعد الكود التالى:
    كود PHP:
    function print_output($vartext$sendheader true)
    {
    global 
    $querytime$vbulletin$show$vbphrase;
     
    if (
    VB_API)
    {
    $template vB_Template::create('response');
    $template->register('response'$vartext);
    $vartext $template->render(truetrue);

    ضع الكود بعد الكود للفوق
    ضع فى السطر 6886 ضع الكود التالى

    كود 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="forum\2-\3-\4-\5-\6-\7.html"',
    '<a \1href="forum\2-\7-\5-\4-\6-\3.html"',
    '<a \1href="forum\2-\3-\4-\5.html"',
    '<a \1href="forum\2-\3.html"',
    '<a \1href="forum\2-\3.html"',
    '<a \1href="forum\2.html"',
    '<a \1href="thread\2-\3.html"',
    '<a \1href="thread\2-\3.html"',
    '<a \1href="thread\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="thread\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); 
    احفظ العمل وارفع الملف
    فى الملف المرفق ملف .htaccess
    ارفعو دخل مجلد منتداك
    الافضل انسخ الكود من الموفق

    والف مبروك عليك
    مع تحياتى اختكم سجدة المصرية
    الملفات المرفقة

     
  2. #2
    هاوي الشوق is on a distinguished road
    تاريخ التسجيل
    22 / 08 / 2010
    الدولة
    مجهولة
    المشاركات
    2
    معدل تقييم المستوى
    172

    افتراضي رد: كود تحويل php الى html

    يعطيك العافيه اخوي

     
  3. #3
    القلب الفضي is on a distinguished road
    تاريخ التسجيل
    19 / 08 / 2008
    الدولة
    مجهولة
    المشاركات
    8
    معدل تقييم المستوى
    202

    افتراضي رد: كود تحويل php الى html

    مثال + المصدر ,, وشكرا لك

     
  4. #4
    ابو مالك 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 الصورة الرمزية ابو مالك
    تاريخ التسجيل
    20 / 03 / 2007
    الدولة
    الأردن
    العمر
    50
    المشاركات
    6,574
    معدل تقييم المستوى
    7060

    افتراضي رد: كود تحويل php الى html



     
  5. #5
    الروضي is on a distinguished road الصورة الرمزية الروضي
    تاريخ التسجيل
    04 / 04 / 2010
    الدولة
    المغرب
    العمر
    34
    المشاركات
    13
    معدل تقييم المستوى
    188

    افتراضي رد: كود تحويل php الى html



     

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

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

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

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

     

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

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

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

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