+ الرد على الموضوع
صفحة 4 من 4 الأولىالأولى 1 2 3 4
النتائج 16 إلى 18 من 18
  1. #16
    الديحاني is on a distinguished road
    تاريخ التسجيل
    29 / 06 / 2005
    الدولة
    الكويت
    المشاركات
    9
    معدل تقييم المستوى
    240

    افتراضي رد: موديل صورة عشوائية من سكريبت 4image للفي بي أدفانسد بورتال ــ الإصدار الثاني

    السلام عليكم ورحمة الله وبركاته
    شكرا لك ... بارك الله فيك ...
    ولكن لا ارى المرفق؟

     
  2. #17
    مصر لكل العرب is on a distinguished road
    تاريخ التسجيل
    11 / 12 / 2007
    الدولة
    مجهولة
    المشاركات
    53
    معدل تقييم المستوى
    254

    افتراضي رد: موديل صورة عشوائية من سكريبت 4image للفي بي أدفانسد بورتال ــ الإصدار الثاني

    زي ما الشركه بتقول
    اولا خد نسخه من ملف global.php
    ده طبعا ملف تبع المنتدي

    ابحث عن
    كود:
     
    // check for IP ban on user
    verify_ip_ban();
    اضف بعدها
    كود:
     
     
    // START RANDOM PIC MOD
    /**************************************************************************
    *                                                                        *
    *    4images - A Web Based Image Gallery Management System               *
    *    ----------------------------------------------------------------    *
    *                                                                        *
    *             File: none                                                 *
    *        Copyright: (C) 2002 Jan Sorgalla                                *
    *            Email:  ( تم حذف البريد لأن عرضه مخالف لشروط المنتدى )                                     *
    *              Web: http://www.4homepages.de                             *
    *             MOD for 4images 1.7 & vBulletin 2.2.7                      *
    *                                                                        *
    *    Never released without support from: Nicky (http://www.nicky.net)   *
    *                                                                        *
    **************************************************************************
    *                                                                        *
    *    4images ist KEINE Freeware. Bitte lesen Sie die Lizenz-             *
    *    bedingungen (http://www.4homepages.de/4images/lizenz.php) für       *
    *    weitere Informationen.                                              *
    *    ---------------------------------------------------------------     *
    *    4images is NOT freeware! Please read the Copyright Notice           *
    *    (http://www.4homepages.de/4images/lizenz_e.php) for further         *
    *    information.                                                        *
    *                                                                        *
    *************************************************************************/
    
    // Set here the URL to your 4images Gallery. WITH trailing slash! 
    define('SCRIPT_URL', 'http://YOUR-URL-TO/4images/');
    
    // Set here your THUMBNAIL directory. Normally no need to change. WITHOUT trailing slash!
    define('THUMB_DIR', 'data/thumbnails');
    
    function is_remote($file_name) {
      return (preg_match('#^https?\\:\\/\\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+#i', $file_name)) ? 1 : 0;
    }
    
    // In following queries CHANGE 4images table PREFIX if it doesn't match (Standard "4images_")!
    $sql = "SELECT COUNT(*) AS total_images 
            FROM 4images_images 
            LEFT JOIN 4images_categories ON (4images_images.cat_id=4images_categories.cat_id) 
            WHERE 4images_images.image_active=1 
            AND 4images_categories.auth_viewcat=0 
            AND 4images_categories.auth_viewimage=0";
    $row = $DB_site->query_first($sql);
    $total_images = $row['total_images'];
    
    mt_srand((double)microtime() * 1000000);
    $number = ($total_images > 1) ? mt_rand(0, $total_images - 1) : 0;
    
    $sql = "SELECT 4images_images.image_id,4images_images.cat_id,4images_images.image_name, 
                   4images_images.image_active,4images_images.image_thumb_file,4images_images.image_comments 
            FROM 4images_images
            LEFT JOIN 4images_categories ON (4images_images.cat_id=4images_categories.cat_id) 
            WHERE 4images_images.image_active=1 
            AND 4images_categories.auth_viewcat=0 
            AND 4images_categories.auth_viewimage=0 
            LIMIT $number, 1";
    $row = $DB_site->query_first($sql);
    $image_id = $row['image_id'];
    $cat_id = $row['cat_id'];
    $image_name = $row['image_name'];
    $image_comments = $row['image_comments'];
    $thumb_src = (is_remote($row['image_thumb_file'])) ? $row['image_thumb_file'] : SCRIPT_URL.THUMB_DIR."/".$cat_id."/".$row['image_thumb_file'];
    
    $randompic = "<center><a href=\"".SCRIPT_URL."details.php?image_id=$image_id\"><img src=\"".$thumb_src."\" border=\"0\" alt=\"$image_name\"><br /><br /><smallfont><b>$image_name</b></a><br />$image_comments Comments</smallfont></center>\n";
    // HAVE FUN
    // END RANDOM PIC MOD
    وبعد كده تروح لخيارات الاستيلات وتضيف تمبلت جديد باسم
    adv_portal_gallerypic

    وتضع فيه الكوود ده


    كود:
     
    <table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
    <tr>
    <td class="tcat"><span class="smallfont"><strong>$vba_options[portal_blockbullet] <a href="http://YOUR-URL-TO/4images/">Random Gallery Pic</a></strong></span></td>
    </tr>
    <tr>
    <td class="$getbgrow" width="100%"><span class="smallfont">$randompic</span></td>
    </tr>
    </table>
    <br />
    http://YOUR-URL-TO/4images
    عدلها الي رابط الجالري الخاص بك

    بعد ذلك هتروح علي اضافة موديل جديد
    Module Title: Random Gallery Pic
    - Module Identifier: Leave this empty
    - OR Template to Include - gallerypic
    - Activate this module and then select the column you want it to appear in.
    - Save.

    اللي فهمته كتبه ليكم لان الطريقة المكتوبة غير الطريقة اللي كتبها ابوا راشد

    ياريت الي عنده معلومة زياده يكتبها
    وانا هجرب اركبه وارجع ققولكم ايه حصل
    شكرا لكم ..

     
  3. #18
    لمارا is on a distinguished road
    تاريخ التسجيل
    24 / 06 / 2008
    الدولة
    مجهولة
    المشاركات
    2
    معدل تقييم المستوى
    196

    افتراضي رد: موديل صورة عشوائية من سكريبت 4image للفي بي أدفانسد بورتال ــ الإصدار الثاني

    مشكور اخوي جاري التجربه

     

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

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

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

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

     

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

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

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

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