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

الموضوع: بلوك معرض الصور coppermine لمجلة النيوك

  1. بلوك معرض الصور coppermine لمجلة النيوك



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

    أخوانى الكرام اعضاء منتدى سوالف سوفت
    عندى مشكلة بسيطة فى موديلز coppermine
    محتاج بلوك block-Gallery_center-Last_pictures_thumb.php
    يعرض اخر الصور التى أوضيفت فى الموقع..
    بس يكون البلوك مثل هذا الشكل وهو يوجد فى موقع www.juventusmania.net

    يعنى البلوك يكون صفين ثلاثة صور فى الاعلى وثلاثة صور فى الاسفل..

    ولكم خالص الشكر..










  2. اين الردود اخواني الكرام








  3. أين الحل ... أين عمالقة سوالف !!








  4. اخواني هذا هو البلوك ارجو المساعدة
    في كيفية جعل الصور تظهر في صفين كل صف اربع صور

    كود PHP:
    <?php 
    // ------------------------------------------------------------------------- // 
    // Coppermine Photo Gallery 1.2.2a for CMS                                   // 
    // ------------------------------------------------------------------------- // 
    // Copyright (C) 2002,2003  Grégory DEMAR <gdemar@wanadoo.fr>               // 
    // [url]http://www.chezgreg.net/coppermine/[/url]                                      // 
    // ------------------------------------------------------------------------- // 
    // Updated by the Coppermine Dev Team                                        // 
    // ([url]http://coppermine.sf.net/team/[/url])                                          // 
    // see /docs/credits.html for details                                        // 
    // ------------------------------------------------------------------------- // 
    // New Port by GoldenTroll                                                  // 
    // [url]http://coppermine.findhere.org/[/url]                                          // 
    // Based on coppermine 1.1d by Surf  [url]http://www.surf4all.net/[/url]               // 
    // ------------------------------------------------------------------------- // 
    // This program is free software; you can redistribute it and/or modify     // 
    // it under the terms of the GNU General Public License as published by     // 
    // the Free Software Foundation; either version 2 of the License, or        // 
    // (at your option) any later version.                                      // 
    // ------------------------------------------------------------------------- // 
    if (eregi("block-CPG"$_SERVER['PHP_SELF'])) {
        
    Header("Location: index.php");
        die(); 

    define('NO_HEADER'true); 
    global 
    $prefix$db$CONFIG$Version_Num$cpg_dir
    //global $ALBUM_SET; 

    $cpg_dir "coppermine"

    $cpg_block true
    require(
    "modules/" $cpg_dir "/include/load.inc.php"); 
    $cpg_block false
    //get_private_album_set(); 
    $numberpic $CONFIG['thumbcols']; //number of thumbs 
    $numberpic=4//number of thumbs 
    $limit $numberpic
    $albnum 1// Number of album to show 
    $content ""
    $content .= '<table width="50%" border="0" align="center" cols="2" cellpadding="2" cellspacing="2"><tr>'

    // modified by DJMaze 
    $result $db->sql_query("SELECT COUNT(*) FROM ".$cpg_prefix."pictures AS p INNER JOIN ".$cpg_prefix."albums AS a ON (p.aid = a.aid AND ".VIS_GROUPS.") WHERE approved='YES' GROUP BY pid"); 
    //$result = $db->sql_query("SELECT COUNT(*) from " . $cpg_prefix . "pictures WHERE approved = 'YES' $ALBUM_SET"); 

    $nbEnr $db->sql_fetchrow($result); 
    $pic_count $nbEnr[0]; 
    // if we have more than 1000 pictures, we limit the number of picture returned 
    // by the SELECT statement as ORDER BY RAND() is time consuming 
    if ($pic_count 1000) { 
        
    $result $db->sql_query("SELECT COUNT(*) from " $cpg_prefix "pictures WHERE approved = 'YES'"); 
        
    $nbEnr $db->sql_fetchrow($result); 
        
    $total_count $nbEnr[0]; 

        
    $granularity floor($total_count 1000); 
        
    $cor_gran ceil($total_count $pic_count); 
        
    srand(time()); 
        for (
    $i 1$i <= $cor_gran$i++) $random_num_set rand(0$granularity) . ', '
        
    $random_num_set substr($random_num_set0, -2); 

    $result $db->sql_query("SELECT pid, filepath, filename, p.aid FROM ".$cpg_prefix."pictures AS p INNER JOIN ".$cpg_prefix."albums AS a ON (p.aid = a.aid AND ".VIS_GROUPS.") WHERE randpos IN ($random_num_set) AND approved='YES' AND p.aid='$albnum' GROUP BY pid ORDER BY RAND() DESC LIMIT $limit"); 
        
    //$result = $db->sql_query("SELECT pid, aid, filepath, filename FROM " . $cpg_prefix . "pictures WHERE  randpos IN ($random_num_set) AND approved = 'YES' $ALBUM_SET ORDER BY RAND() LIMIT $limit"); 
    } else { 
        
    // modified by DJMaze 
        
    $result $db->sql_query("SELECT pid, filepath, filename, p.aid FROM ".$cpg_prefix."pictures AS p INNER JOIN ".$cpg_prefix."albums AS a ON (p.aid = a.aid AND ".VIS_GROUPS.") WHERE approved='YES' AND p.aid='$albnum' GROUP BY pid ORDER BY RAND() DESC LIMIT $limit"); 
       } 

    while (
    $row $db->sql_fetchrow($result)) { 
        if (
    $CONFIG['seo_alts'] == 0) { 
            
    $thumb_title $row['filename']; 
        } else { 
            if (
    $row['title'] != '') { 
                
    $thumb_title $row['title']; 
            } else { 
                
    $thumb_title substr($row['filename'], 0, -4); 
            } 
        } 
        
    stripslashes($thumb_title); 
       
    $content .= '<td align="center" valign="baseline"><a href="' $CPG_M_URL '&file=displayimage&pos=-' $row["pid"] . '"><img src="' $row["filepath"] . $CONFIG["thumb_pfx"] . $row["filename"] . '" border="1"</a></td>'

    $content .= '</tr><tr align="center"><td colspan="' $limit2 '" valign="baseline"></center></td></tr></table>'

    ?>











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

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

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