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 - ضى العرب

Pages: [1]
1
Discussion & Troubleshooting / Re: Category view / Category bit
« on: May 19, 2010, 11:58:36 PM »
i have same problem .....

2
من مجلد includes افتح ملف page_header.php
قبل السطر الأخير حيث
 
?>

أضف الكود التالي




Code: [Select]
//------------------------------------
//------- Random Images --------------
//------------------------------------


$imgtable_width = ceil(intval($config['image_table_width']) / $config['image_cells']);
if ((substr($config['image_table_width'], -1)) == "%") {
  $imgtable_width .= "%";
}

$additional_sql = "";
if (!empty($additional_image_fields)) {
  foreach ($additional_image_fields as $key => $val) {
    $additional_sql .= ", i.".$key;
  }
}
$sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits".$additional_sql.", c.cat_name".get_user_table_field(", u.", "user_name")."
        FROM (".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c)
        LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id)
        WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id IN (".get_auth_cat_sql("auth_viewcat").")
        ORDER BY RAND()
        LIMIT 6";
// end new
$result = $site_db->query($sql);
$num_rows = $site_db->get_numrows($result);

if (!$num_rows)  {
  $random_images = "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\"><tr><td>";
//  $random_images .= $lang['no_new_images'];
  $random_images .= "</td></tr></table>";
}
else  {
  $random_images = "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">";
  $count = 0;
  $bgcounter = 0;
  $image_backup = $site_template->val_cache['image'];
  while ($image_row = $site_db->fetch_array($result)){
    if ($count == 0) {
      $row_bg_number = ($bgcounter++ % 2 == 0) ? 1 : 2;
      $random_images .= "<tr>\n";
    }
    $random_images .= "<td width=\"".$imgtable_width."\" valign=\"top\">\n";

    show_image($image_row);
    $random_images .= $site_template->parse_template("thumbnail_bit");
    $random_images .= "\n</td>\n";
    $count++;
    if ($count == 6) {
      $random_images .= "</tr>\n";
      $count = 0;
    }
  } // end while
  $site_template->val_cache['image'] = $image_backup;
  unset($image_backup);

  if ($count > 0)  {
    $leftover = ($config['image_cells'] - $count);
    if ($leftover >= 1) {
      for ($f = 0; $f < $leftover; $f++) {
        $random_images .= "<td width=\"".$imgtable_width."\">\n&nbsp;\n</td>\n";
      }
      $random_images .= "</tr>\n";
    }
  }
  $random_images .= "</table>\n";
} // end else


$site_template->register_vars("random_images", $random_images);
unset($random_images);

//----- End Random Images--------- 

افتح ملف details من مجلد templates حيث التملبت الإفتراضي واضف
وممكن ملف الهوم
او الهيدر حيثوا يزهر فى جميع الاسكربت

Code: [Select]
{random_images}
يمكن ان ترا ميثل هنا
http://www.diarab.com/games

3
Is there random pictures of the same section
I want to add images displayed under more random pictures of the same section and be
Number of images at least 6 photos
Be of the same section and sections is not complete

4
يمكن تحميل مكتبه فيديو من هنا

http://www.diarab.com/vb/showthread.php?t=8189

5
استفسار بسيط لو ممكن

كيف يمكن تغيير صورة رقم 1



الى شكل الصوره رقم 2






للتعديل ارجوا اخوه لا تبخلوا عليه هذا التعديل

السكربت المرد تطبيق عليه هذه الحركه اهوت اسكربت العاب
xxx: xxx: diarabxxx: /games


مع اعلم انى استخدمت هذه الحركه ولكن بدون جدوا

بسم الله الرحمن الرحيم

السلام عليكم ورحمة الله وبركاته

الاخوة , الاخوات

اقدم لكم اليوم هذا الشرح البسيط والهام في نفس الوقت وهو بعنوان

شرح اظهار الصور المصغرة في rss

ونبدأ على بركة الله


الخطوة الاولى

افتح ملف rss.php الموجود داخل المجلد الرئيسي للسكربت

ابحث عن


كود:
'title' => format_rss_text($row['image_name']),اضف تحته مباشرة


كود:
 
'image' => get_thumbnail_code($row['image_media_file'], $row['image_thumb_file'], $row['image_id'], $row['cat_id'], format_rss_text($row['image_name']), ((isset($mode) && !empty($mode)) ? $mode : ""), 1),في نفس الملف ايضا
ابحث عن


كود:
 
'item_title' => $item['title'],اضف اسفله


كود:
 
'item_image' => $item['image'],احفظ الملف واعده مكانه

الخطوة الثانية
افتح مجلد القالب الذي تستخدمه في موقعك

ومنه افتح قالب rss_item.xml

ابحث عن


كود:
 
<title>{item_title}</title>اضف اسفله


كود:
 
<image>{item_image}</image>واحفظ العمل واعده لمكانه

ومن ثم شاهد النتيجة

اتمنى لكم الاستفادة ان شاء الله

ملاحظة :- خذ نسخة احتياطية للملفات قبل البدء بالعمل

يسمح بالنقل مع ذكر المصدر

xxx: forum. orbitdesign. net/showthread. php?p=52513&posted=1#post52513

Pages: [1]