Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - asms

Pages: 1 ... 4 5 6 7 [8] 9 10 11
106
فيها طريقة تخلي صورت كل قسم تتغير
عشوائي من الصور الموجودة في القسم
--------------------------------------
في الثيم
في صفحة
category_bit.html
-------------------------------------
ابحث عن
<!-- {if random_cat_image_file}<a href="{cat_url}"><img src="{random_cat_image_file}" border="1"></a>{endif random_cat_image_file}  -->
احذف
-->
و
<!--

107
نعم
------------
الطريقة
افتح
/includes/sessions.php
ابحث
عن
Code: [Select]
  function url($url, $amp = "&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;
  }
استبدلة با
Code: [Select]
/* ORIGINAL CODE
  function url($url, $amp = "&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 = "&amp;") {
    global $l, $user_info;
    $dummy_array = explode("#", $url);
    $url = $dummy_array[0];
    $url = str_replace('&amp;', '&', $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
وضع فية
Code: [Select]
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}
اذ كان المواقع في مجلد
مثل
Code: [Select]
www.example.com/مجلد/اضف
في ملف
.htaccess
Code: [Select]
RewriteBase /مجلد/

108
Templates & Styles (Requests & Discussions) / Re: iPhone Template Ideas
« on: February 03, 2008, 09:06:38 PM »
 Example piece

109
في اي صفحة  طلعلك الخطاء :?:

110
قريبا

111
ارسال جميع الملفات
-----------------------
عدئ هذة الملفات
/data/
/data/thumbnails/
/data/thumbnails/
اذ تم اضافة ملفات

-----------------------
config.new.php
config.php
هام عدم الحذف او الاستبدال

-------------------
/templates/
اذ تم التعديل علي الثيم

-----------------

112
من
لوحة التحكم
شاهد الملفات والصور الجديدة

113
يمكنك
بعث الصور
بل
ftp
مسار
بعث
الصور المصغرة
/data/thumbnails/رقم القسم
الصور الكبيرة
/data/media/رقم القسم
رقم القسم
categories.php?cat_id=رقم القسم هناا

115
تدخل لوحة التحكم وتدخل الى الاعدادات الرئيسية
وتختار نظام برنامج التصغير ان كان
GD2
او
غيرها
والاكثر توفر بالسيرفرات هو
GD2
ومن ثم إذهب الى زر
تعديل حجم الصور تلقائياا
وهناك تعمل فحص للصور التي ليس لها مصغرات وتقوم بعمل المصغرات بشكل آلي
وتحدد المقاس وجودة الصور المصغرة
وطبعا جودة الصور هي
100

116
ضع هذا الكود في الوسط
Code: [Select]
{user_box}هذ في صفحة
user_loginform.html
Code: [Select]
<table cellpadding="0" cellspacing="0" width="753">
<!-- MSTableType="nolayout" -->
<tr>
<td height="54">
<p align="center"><font face="Arial">
<span style="text-decoration: none"><font size="2">{lang_register}</font></span></a>
</font><span dir="ltr"><font size="-1">for main or&nbsp; </font></span>
<font face="Arial" size="2"> <a href="{url_lost_password}">
<span style="text-decoration: none">{lang_lost_password}</span></a></font>
</td>
</tr>
</table>
<table width="99%" border="0" cellpadding="4" cellspacing="0">
<tr>
<td valign="middle" align="center">
<form action="{url_login}" method="post">
{lang_user_name}&nbsp;
<input type="text" size="10" name="user_name" class="logininput" />
&nbsp;
{lang_password}&nbsp;
<input type="password" size="10" name="user_password" class="logininput" />
&nbsp;
<input type="checkbox" name="auto_login" value="1" />&nbsp;
<span class="smalltext">{lang_auto_login}</span>&nbsp;
&nbsp;
<input type="submit" value="{lang_login}" class="button" /></form>
</td>
</tr>
</table>
------------------------------
هذ في صفحة
user_logininfo.html
Code: [Select]
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" align="center">{lang_loggedin_msg}&nbsp;
&raquo; <a href="{url_lightbox}">{lang_lightbox}</a>&nbsp; »<a href="http://www.xxxxxx.com/member.php?action=uploadform">اضف ملف</a>&nbsp;
&raquo; <a href="{url_control_panel}">{lang_control_panel}</a>&nbsp;
&raquo; <a href="{url_logout}">{lang_logout}</a></td>
</tr>
</table>
ارجو تعديل
xxxxxx
علي رابط المواقع

117
؟؟؟؟؟؟؟؟؟؟؟؟؟ :roll:

119
 من لوحة التحكم =>تعديلات رئيسية
خيارات الأقسام

120
الخطوة 1
افتح لوحة التحكم
 تعديلات رئيسية
اضف
Code: [Select]
,dcrفي
إمتدادات الصور والملفات المصرح بها
---------------------------------
الخطوة 2
ارسال صفحة
dcr.html
الي
templates/الثيم المسخدم/media/
----------------------------------------
ارجو ان يكون الدرس مفهوم
مثل
http://2game2.com/r-3d-games-18-risky_whisky-532.html

Pages: 1 ... 4 5 6 7 [8] 9 10 11