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

الموضوع: كيفية تغيير الروابط في مجلة 4images

  1. #1
    عضو نشيط
    تاريخ التسجيل
    Jun 2008
    المشاركات
    238

    Lightbulb كيفية تغيير الروابط في مجلة 4images



    أهلا بكم جميعا

    أولا

    كيف يتم تغيير رابط القسم من صفحة إلى مجلد مثال :

    التحويل من :

    http://www.x.com/cat2.html

    إلى :

    http://www.x.com/cat2

    ==============================

    السؤال الثاني :

    كيف يتم تغيير إيم القسم في مجلة 4images :

    http://www.x.com/cat2

    إلى : أي شيء آخر بدل cat ...

    التغيير في أكثر من ملف ولم أعرف كيف يكون بالضبط

    أتمنى أن أرى حلول وافية وكافية ... موضوع مختصر على أساس







  2. #2
    عضو نشيط
    تاريخ التسجيل
    Jun 2008
    المشاركات
    238


    27 مشاهدة ... بدون رد واحد ...

    أرجو الرد ... فلا خير في كاتم العلم ...






  3. #3


    التغيير بملفين فقط بواسطة .htaccess و التعديل على ملف sessions.php

    بالنسبه لسوالك الثاني ابحث عن cat في sessions.php

    وعدل ع اي شي تبغاه

    وفي ملف htaccess. عدل ايظا

    وبس

    بالنسبه لالغاء الـ html تجد بجانب cat في ملف sessions.php وعدل بملف hta....





    __________________
    #للـبـيـع :

    All Domains for Sale: 64.vc - 6b6.net - m3y.net - hostb.net - names.im - z5z.net - ksa.vc - الخدمات : saudi.im

  4. #4
    عضو نشيط
    تاريخ التسجيل
    Jun 2008
    المشاركات
    238


    أخي الكريم أولا اشكرك على ردك وتوضيحك ...

    ولكن مع الأسف لم تعمل معي طريقتك ... فقد طبقت كل من الحلّين اللذان تكرمت بكتابتهما ... ولكن مع الأسف لم أنجح في التغيير

    1- تغيير القسم من صفحة إلى مجلد .

    2- تغيير إسم القسم .

    فلو تتفضل بالتوضيح أكثر او أرفق لك الملفان وتعدلهم لي ..






  5. #5
    ينتظر رسالة التوكيد
    تاريخ التسجيل
    Sep 2006
    المشاركات
    18


    -----------------------في ملف ----------------sessions.php---------
    /* ORIGINAL CODE
    function url($url, $amp = "&") {
    global $l;
    $dummy_array = explode("#", $url);
    $url = $dummy_array[0];

    if ($this->mode == "get" && !preg_match("/".SESSION_NAME."=/i", $url)) {
    $url .= preg_match("/\?/", $url) ? "$amp" : "?";
    $url .= SESSION_NAME."=".$this->session_id;
    }

    if (!empty($l)) {
    $url .= preg_match("/\?/", $url) ? "$amp" : "?";
    $url .= "l=".$l;
    }

    $url .= (isset($dummy_array[1])) ? "#".$dummy_array[1] : "";
    return $url;
    }
    */
    function url($url, $amp = "&") {
    global $l, $user_info;
    $dummy_array = explode("#", $url);
    $url = $dummy_array[0];
    $url = str_replace('&', '&', $url);
    if (!defined('IN_CP')) {
    if (strstr($url, 'index.php')) {
    $url = str_replace('index.php', './', $url);
    }
    elseif (strstr($url, 'search.php')) {
    if (strstr($url, 'page=')) {
    preg_match('#page=([0-9]+)&?#', $url, $matches);
    if (isset($matches[1])) {
    $split = explode('?', $url);
    $url = $split[0];
    $query = @$split[1];
    $url = str_replace('search.php', 'search.'.$matches[1].'.htm', $url);
    $query = str_replace('page='.$matches[1].'&', '', $query);
    $query = str_replace('&page='.$matches[1], '', $query);
    $query = str_replace('page='.$matches[1], '', $query);
    if (!empty($query)) {
    $url .= '?' . $query;
    }
    }
    }
    else {
    $url = str_replace('search.php', 'search.htm', $url);
    }
    }
    elseif (strstr($url, 'lightbox.php')) {
    if (strstr($url, 'page=')) {
    preg_match('#page=([0-9]+)&?#', $url, $matches);
    if (isset($matches[1])) {
    $split = explode('?', $url);
    $url = $split[0];
    $query = @$split[1];
    $url = str_replace('lightbox.php', 'lightbox.'.$matches[1].'.htm', $url);
    $query = str_replace('page='.$matches[1].'&', '', $query);
    $query = str_replace('&page='.$matches[1], '', $query);
    $query = str_replace('page='.$matches[1], '', $query);
    if (!empty($query)) {
    $url .= '?' . $query;
    }
    }
    }
    else {
    $url = str_replace('lightbox.php', 'lightbox.htm', $url);
    }
    }
    elseif (strstr($url, 'categories.php')) {
    if (strstr($url, 'cat_id=') && strstr($url, 'page=')) {
    preg_match('#cat_id=([0-9]+)&?#', $url, $matches1);
    preg_match('#page=([0-9]+)&?#', $url, $matches2);
    if (isset($matches1[1]) && isset($matches2[1])) {
    $split = explode('?', $url);
    $url = $split[0];
    $query = @$split[1];
    $url = str_replace('categories.php', 'cat'.$matches1[1].'.'.$matches2[1].'.htm', $url);
    $query = str_replace('cat_id='.$matches1[1].'&', '', $query);
    $query = str_replace('&cat_id='.$matches1[1], '', $query);
    $query = str_replace('cat_id='.$matches1[1], '', $query);
    $query = str_replace('page='.$matches2[1].'&', '', $query);
    $query = str_replace('&page='.$matches2[1], '', $query);
    $query = str_replace('page='.$matches2[1], '', $query);
    if (!empty($query)) {
    $url .= '?' . $query;
    }
    }
    }
    elseif (strstr($url, 'cat_id=')) {
    preg_match('#cat_id=([0-9]+)&?#', $url, $matches);
    if (isset($matches[1])) {
    $split = explode('?', $url);
    $url = $split[0];
    $query = @$split[1];
    $url = str_replace('categories.php', 'cat'.$matches[1].'.htm', $url);
    $query = str_replace('cat_id='.$matches[1].'&', '', $query);
    $query = str_replace('&cat_id='.$matches[1], '', $query);
    $query = str_replace('cat_id='.$matches[1], '', $query);
    if (!empty($query)) {
    $url .= '?' . $query;
    }
    }
    }
    else {
    $url = str_replace('categories.php', 'cat.htm', $url);
    }
    }
    elseif (strstr($url, 'details.php?image_id=')) {
    if (strstr($url, 'image_id=') && strstr($url, 'mode=')) {
    preg_match('#image_id=([0-9]+)&?#', $url, $matches1);
    preg_match('#mode=([a-zA-Z0-9]+)&?#', $url, $matches2);
    if (isset($matches1[1]) && isset($matches2[1])) {
    $split = explode('?', $url);
    $url = $split[0];
    $query = @$split[1];
    $url = str_replace('details.php', 'img'.$matches1[1].'.'.$matches2[1].'.htm', $url);
    $query = str_replace('image_id='.$matches1[1].'&', '', $query);
    $query = str_replace('&image_id='.$matches1[1], '', $query);
    $query = str_replace('image_id='.$matches1[1], '', $query);
    $query = str_replace('mode='.$matches2[1].'&', '', $query);
    $query = str_replace('&mode='.$matches2[1], '', $query);
    $query = str_replace('mode='.$matches2[1], '', $query);
    if (!empty($query)) {
    $url .= '?' . $query;
    }
    }
    }
    else {
    preg_match('#image_id=([0-9]+)&?#', $url, $matches);
    if (isset($matches[1])) {
    $split = explode('?', $url);
    $url = $split[0];
    $query = @$split[1];
    $url = str_replace('details.php', 'img'.$matches[1].'.htm', $url);
    $query = str_replace('image_id='.$matches[1].'&', '', $query);
    $query = str_replace('&image_id='.$matches[1], '', $query);
    $query = str_replace('image_id='.$matches[1], '', $query);
    if (!empty($query)) {
    $url .= '?' . $query;
    }
    }
    }
    }
    elseif (strstr($url, 'postcards.php?image_id=')) {
    preg_match('#image_id=([0-9]+)&?#', $url, $matches);
    if (isset($matches[1])) {
    $split = explode('?', $url);
    $url = $split[0];
    $query = @$split[1];
    $url = str_replace('postcards.php', 'postcard.img'.$matches[1].'.htm', $url);
    $query = str_replace('image_id='.$matches[1].'&', '', $query);
    $query = str_replace('&image_id='.$matches[1], '', $query);
    $query = str_replace('image_id='.$matches[1], '', $query);
    if (!empty($query)) {
    $url .= '?' . $query;
    }
    }
    }
    }
    if ($this->mode == "get" && strstr($url, $this->session_id)) {
    $url .= strpos($url, '?') !== false ? '&' : '?';
    $url .= SESSION_NAME."=".$this->session_id;
    }
    if (!empty($l)) {
    $url .= strpos($url, '?') ? '&' : '?';
    $url .= "l=".$l;
    }
    $url = str_replace('&', $amp, $url);
    $url .= isset($dummy_array[1]) ? "#".$dummy_array[1] : "";
    return $url;
    }
    ---------------------------------------------
    الاسم الذي تضعة في الملف فوق ضعه في الملف الذي تحت
    -----------------------في ملف ----------------htaccess.---------
    # Begin search engine friendly links code
    RewriteEngine On
    #RewriteBase /
    RewriteRule ^lightbox\.htm$ lightbox.php?%{QUERY_STRING}
    RewriteRule ^lightbox\.([0-9]+)\.htm$ lightbox.php?page=$1&%{QUERY_STRING}

    RewriteRule ^search\.htm$ search.php?%{QUERY_STRING}
    RewriteRule ^search\.([0-9]+)\.htm$ search.php?page=$1&%{QUERY_STRING}

    RewriteRule ^cat\.htm$ categories.php?%{QUERY_STRING}
    RewriteRule ^cat([0-9]+)\.([0-9]+)\.htm$ categories.php?cat_id=$1&page=$2&%{QUERY_STRING}
    RewriteRule ^cat([0-9]+)\.htm$ categories.php?cat_id=$1&%{QUERY_STRING}

    RewriteRule ^img([0-9]+)\.htm$ details.php?image_id=$1&%{QUERY_STRING}
    RewriteRule ^img([0-9]+)\.([a-zA-Z0-9]+)\.htm$ details.php?image_id=$1&mode=$2&%{QUERY_STRING}

    RewriteRule ^postcard([a-zA-Z0-9]+)\.htm$ postcards.php?postcard_id=$1&%{QUERY_STRING}
    RewriteRule ^postcard\.img([0-9]+)\.htm$ postcards.php?image_id=$1&%{QUERY_STRING}

    # End search engine friendly links code










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

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

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