pragmaMx Support Forum pragmaMx Support Forum

Coppermine Photo Gallery lightbox nasil eklenir ?

0 Mitglieder und 1 Gast betrachten dieses Thema.

Offline Albay

  • ***
  • 105
  • +1/-0
  • Geschlecht: Männlich
Coppermine Photo Gallery lightbox nasil eklenir ?
« am: 04 Oktober 2007, 10:27:42 »
Coppermine Photo Gallery lightbox nasil eklenir ?

http://www.pragmamx.org/Forum-topic-18709-start-msg129227.html#msg129227

Burada anlatilmis anlayamadim.

Saygilar

Offline Sitki

  • ******
  • 3.747
  • +0/-0
  • Geschlecht: Männlich
Re: Coppermine Photo Gallery lightbox nasil eklenir ?
« Antwort #1 am: 04 Oktober 2007, 13:05:17 »
Merhaba :),
orijinal talimata istinaden (http://coppermine-gallery.net/forum/index.php?topic=35539.0) ve (http://www.pragmamx.org/Forum-topic-18709-start-msg129227.html#msg129227) burada küçük bir uygulama yönergesi - sadece ufak tefek de?i?iklikler yap?lm?? ?ekliyle - Türkçe olarak bulabilirsin.

Ad?m 1:
LightBox JS v2.04 skriptini bu linkten http://www.huddletogether.com/projects/lightbox2/ indiriyorsun.

Ad?m 2:
 "js" ve "images" dosyalar?n? CPG de kulland???n teman?n (modules/Gallery/themes/kulland???n tema) içine at?yorsun; "prev.gif" ve "next.gif" temlik etmiyorsun yani bu resimleri yazd?rm?yorsun.

Ad?m 3:
css/lightbox.css dosyas?n?n içeri?ini kopyalay?p kulland???n teman?n style.css dosyas?n?n sonuna ekliyorsun.

Ad?m 4:
Lightbox.js dosyas?n? ac?yorsun ve resimlerin images/bild.gif dizin yolunu a?a??daki ?ekilde de?i?tiriyorsun.
fileLoadingImage = "images/loading.gif"; fileBottomNavCloseImage = "images/closelabel.gif";
modules/Gallery/themes/kullandigin_tema/images/loading.gif ve
modules/Gallery/themes/kullandigin_tema/images/closelabel.gif

Ad?m 5:
Kulland???n CPG teman?n theme.php nin en sonuna ("?>" önüne) a?a??daki function theme_html_picture() kodunu ekliyorsun.
// Displays a picture
function theme_html_picture()
{
    global $CONFIG, $CURRENT_PIC_DATA, $CURRENT_ALBUM_DATA, $USER;
    global $album, $comment_date_fmt, $template_display_media;
    global $lang_display_image_php, $lang_picinfo;

    $pid = $CURRENT_PIC_DATA['pid'];
    $pic_title = '';

    if (!isset($USER['liv']) || !is_array($USER['liv'])) {
        $USER['liv'] = array();
    }
    // Add 1 to hit counter
    if (!USER_IS_ADMIN && !in_array($pid, $USER['liv']) && isset($_COOKIE[$CONFIG['cookie_name'] . '_data'])) {
        add_hit($pid);
        if (count($USER['liv']) > 4) array_shift($USER['liv']);
        array_push($USER['liv'], $pid);
    }

    if($CONFIG['thumb_use']=='ht' && $CURRENT_PIC_DATA['pheight'] > $CONFIG['picture_width'] ){ // The wierd comparision is because only picture_width is stored
      $condition = true;
    }elseif($CONFIG['thumb_use']=='wd' && $CURRENT_PIC_DATA['pwidth'] > $CONFIG['picture_width']){
      $condition = true;
    }elseif($CONFIG['thumb_use']=='any' && max($CURRENT_PIC_DATA['pwidth'], $CURRENT_PIC_DATA['pheight']) > $CONFIG['picture_width']){
      $condition = true;
    }else{
     $condition = false;
    }

    if ($CURRENT_PIC_DATA['title'] != '') {
        $pic_title .= $CURRENT_PIC_DATA['title'] . "\n";
    }
    if ($CURRENT_PIC_DATA['caption'] != '') {
        $pic_title .= $CURRENT_PIC_DATA['caption'] . "\n";
    }
    if ($CURRENT_PIC_DATA['keywords'] != '') {
        $pic_title .= $lang_picinfo['Keywords'] . ": " . $CURRENT_PIC_DATA['keywords'];
    }

    if (!$CURRENT_PIC_DATA['title'] && !$CURRENT_PIC_DATA['caption']) {
        template_extract_block($template_display_media, 'img_desc');
    } else {
        if (!$CURRENT_PIC_DATA['title']) {
            template_extract_block($template_display_media, 'title');
        }
        if (!$CURRENT_PIC_DATA['caption']) {
            template_extract_block($template_display_media, 'caption');
        }
    }

    $CURRENT_PIC_DATA['menu'] = html_picture_menu(); //((USER_ADMIN_MODE && $CURRENT_ALBUM_DATA['category'] == FIRST_USER_CAT + USER_ID) || ($CONFIG['users_can_edit_pics'] && $CURRENT_PIC_DATA['owner_id'] == USER_ID && USER_ID != 0) || GALLERY_ADMIN_MODE) ? html_picture_menu($pid) : '';

    if ($CONFIG['make_intermediate'] && $condition ) {
        $picture_url = get_pic_url($CURRENT_PIC_DATA, 'normal');
    } else {
        $picture_url = get_pic_url($CURRENT_PIC_DATA, 'fullsize');
    }

    $image_size = compute_img_size($CURRENT_PIC_DATA['pwidth'], $CURRENT_PIC_DATA['pheight'], $CONFIG['picture_width']);

    $pic_title = '';
    $mime_content = cpg_get_type($CURRENT_PIC_DATA['filename']);


    if ($mime_content['content']=='movie' || $mime_content['content']=='audio') {

        if ($CURRENT_PIC_DATA['pwidth']==0 || $CURRENT_PIC_DATA['pheight']==0) {
            $CURRENT_PIC_DATA['pwidth']  = 320; // Default width

            // Set default height; if file is a movie
            if ($mime_content['content']=='movie') {
                $CURRENT_PIC_DATA['pheight'] = 240; // Default height
            }
        }

        $ctrl_offset['mov']=15;
        $ctrl_offset['wmv']=45;
        $ctrl_offset['swf']=0;
        $ctrl_offset['rm']=0;
        $ctrl_offset_default=45;
        $ctrl_height = (isset($ctrl_offset[$mime_content['extension']]))?($ctrl_offset[$mime_content['extension']]):$ctrl_offset_default;
        $image_size['whole']='width="'.$CURRENT_PIC_DATA['pwidth'].'" height="'.($CURRENT_PIC_DATA['pheight']+$ctrl_height).'"';
    }

    if ($mime_content['content']=='image') {
        if (isset($image_size['reduced'])) {
        $picfull_url = get_pic_url($CURRENT_PIC_DATA, 'fullsize');
        $pic_title = $CURRENT_PIC_DATA['title'];
            $winsizeX = $CURRENT_PIC_DATA['pwidth']+5;  //the +'s are the mysterious FF and IE paddings
            $winsizeY = $CURRENT_PIC_DATA['pheight']+3; //the +'s are the mysterious FF and IE paddings
            $pic_html = "<a href=\"$picfull_url\" rel=\"lightbox\" title=\"$pic_title\">";
            $pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
            $pic_html .= "</a>\n";
        } else {
            $pic_html = "<img src=\"" . $picture_url . "\" {$image_size['geom']} class=\"image\" border=\"0\" alt=\"\" /><br />\n";
        }
    } elseif ($mime_content['content']=='document') {
        $pic_thumb_url = get_pic_url($CURRENT_PIC_DATA,'thumb');
        $pic_html = "<a href=\"{$picture_url}\" target=\"_blank\" class=\"document_link\"><img src=\"".$pic_thumb_url."\" border=\"0\" class=\"image\" /></a>\n<br />";
    } else {
        $autostart = ($CONFIG['media_autostart']) ? ('true'):('false');

        $players['WMP'] = array('id' => 'MediaPlayer',
                                'clsid' => 'classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" ',
                                'codebase' => 'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" ',
                                'mime' => 'type="application/x-mplayer2" ',
                               );
        $players['RMP'] = array('id' => 'RealPlayer',
                                'clsid' => 'classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" ',
                                'codebase' => '',
                                'mime' => 'type="audio/x-pn-realaudio-plugin" '
                               );
        $players['QT']  = array('id' => 'QuickTime',
                                'clsid' => 'classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" ',
                                'codebase' => 'codebase="http://www.apple.com/qtactivex/qtplugin.cab" ',
                                'mime' => 'type="video/x-quicktime" '
                               );
        $players['SWF'] = array('id' => 'SWFlash',
                                'clsid' => ' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ',
                                'codebase' => 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ',
                                'mime' => 'type="application/x-shockwave-flash" '
                               );
        $players['UNK'] = array('id' => 'DefaultPlayer',
                                'clsid' => '',
                                'codebase' => '',
                                'mime' => ''
                               );

        if (isset($_COOKIE[$CONFIG['cookie_name'].'_'.$mime_content['extension'].'player'])) {
            $user_player = $_COOKIE[$CONFIG['cookie_name'].'_'.$mime_content['extension'].'player'];
        } else {
            $user_player = $mime_content['player'];
        }

                // There isn't a player selected or user wants client-side control
        if (!$user_player) {
            $user_player = 'UNK';
        }

        $player = $players[$user_player];

        $pic_html  = '<object id="'.$player['id'].'" '.$player['classid'].$player['codebase'].$player['mime'].$image_size['whole'].'>';
        $pic_html .= "<param name=\"autostart\" value=\"$autostart\" /><param name=\"src\" value=\"". $picture_url . "\" />";
        $pic_html .= '<embed '.$image_size['whole'].' src="'. $picture_url . '" autostart="'.$autostart.'" '.$player['mime'].'></embed>';
        $pic_html .= "</object><br />\n";
    }

    $CURRENT_PIC_DATA['html'] = $pic_html;
    $CURRENT_PIC_DATA['header'] = '';
    $CURRENT_PIC_DATA['footer'] = '';

    $CURRENT_PIC_DATA = CPGPluginAPI::filter('file_data',$CURRENT_PIC_DATA);

    $params = array('{CELL_HEIGHT}' => '100',
        '{IMAGE}' => $CURRENT_PIC_DATA['header'].$CURRENT_PIC_DATA['html'].$CURRENT_PIC_DATA['footer'],
        '{ADMIN_MENU}' => $CURRENT_PIC_DATA['menu'],
        '{TITLE}' => bb_decode($CURRENT_PIC_DATA['title']),
        '{CAPTION}' => bb_decode($CURRENT_PIC_DATA['caption']),
        );

    return template_eval($template_display_media, $params);
}

E?er zaten theme_html_picture() kullan?yorsan, a?a??da gösterildi?i gibi ilgili kodu de?i?tireceksin:
Orijinal-Kod:
if ($mime_content['content']=='image') {
        if (isset($image_size['reduced'])) {
            $winsizeX = $CURRENT_PIC_DATA['pwidth']+5;  //the +'s are the mysterious FF and IE paddings
            $winsizeY = $CURRENT_PIC_DATA['pheight']+3; //the +'s are the mysterious FF and IE paddings
            $pic_html = "<a href=\"javascript:;\" onclick=\"MM_openBrWindow('displayimage.php?pid=$pid&amp;fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
            $pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title;
            $pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
            $pic_html .= "</a>\n";
        } else {
            $pic_html = "<img src=\"" . $picture_url . "\" {$image_size['geom']} class=\"image\" border=\"0\" alt=\"\" /><br />\n";
        }

Bu kod ile de?i?tir:
if ($mime_content['content']=='image') {
        if (isset($image_size['reduced'])) {
    $picfull_url = get_pic_url($CURRENT_PIC_DATA, 'fullsize');
    $pic_title = $CURRENT_PIC_DATA['title'];
            $winsizeX = $CURRENT_PIC_DATA['pwidth']+5;  //the +'s are the mysterious FF and IE paddings
            $winsizeY = $CURRENT_PIC_DATA['pheight']+3; //the +'s are the mysterious FF and IE paddings
            $pic_html = "<a href=\"$picfull_url\" rel=\"lightbox\" title=\"$pic_title\">";
            $pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
            $pic_html .= "</a>\n";
        } else {
            $pic_html = "<img src=\"" . $picture_url . "\" {$image_size['geom']} class=\"image\" border=\"0\" alt=\"\" /><br />\n";
        }

Ad?m 6:
CPG de kulland???n teman?n template.html dosyas?n? aç?p, <head> ve </head> aras?na sonraki eklemeleri yap?yorsun:
<script type="text/javascript" src="modules/Gallery/themes/your_theme_folder/js/prototype.js"></script>
<script type="text/javascript" src="modules/Gallery/themes/your_theme_folder/js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="modules/Gallery/themes/your_theme_folder/js/lightbox.js"></script>

your_theme_folder senin kulland???n CPG teman?n adi ile de?i?tirmen laz?m tabi.

Not: ?ndirdi?in paketin içinde birde index.html dosyas? olmas? laz?m. Bunu kulland???n teman?n içine atacaks?n.
« Letzte Änderung: 24 Juli 2008, 11:53:03 von navruz »
viele Grüße
Kein Support über PN, Mail oder Messenger!
Bitte die Fragen im Forum stellen, nur so helfen die Antworten auch den anderen Usern.
Bitte auch die Boardsuche nicht vergessen, oft ist genau dein Problem schon an anderer Stelle gelöst worden!

Offline Albay

  • ***
  • 105
  • +1/-0
  • Geschlecht: Männlich
Re: Coppermine Photo Gallery lightbox nasil eklenir ?
« Antwort #2 am: 04 Oktober 2007, 16:11:29 »
Ustam ellerine saglik görev basariyla tamamlanmistir.

Saygilar

Offline Albay

  • ***
  • 105
  • +1/-0
  • Geschlecht: Männlich
Re: Coppermine Photo Gallery lightbox nasil eklenir ?
« Antwort #3 am: 06 Oktober 2007, 02:23:35 »
Usta bir problem var kullanicilar resmi büyütmeye tiklayinca resim acilmiyor beyaz bir sayfa aciliyor fakat admin olarak giris yaptigimda hersey normal lightbox calisiyor acaba sorun nerede.


Offline Sitki

  • ******
  • 3.747
  • +0/-0
  • Geschlecht: Männlich
Re: Coppermine Photo Gallery lightbox nasil eklenir ?
« Antwort #4 am: 06 Oktober 2007, 11:02:56 »
Yukarıdaki adımları aynen uygulamışsan bir sorun olmaması lazım. Tekrar adımları kontrol et. Bunun yani sıra Admin olarak çıkış yap ve kullanıcı olarak sen de bir dene, problem oluyor mu diye. Eğer herhangi bir sorun bulamıyorsan, bu kullanıcıların örneğin kendi browserlerinden kaynaklanan bir problem de olabilir. Buna ilave edebilecek başka bir şey yoktur.
viele Grüße
Kein Support über PN, Mail oder Messenger!
Bitte die Fragen im Forum stellen, nur so helfen die Antworten auch den anderen Usern.
Bitte auch die Boardsuche nicht vergessen, oft ist genau dein Problem schon an anderer Stelle gelöst worden!

Offline Albay

  • ***
  • 105
  • +1/-0
  • Geschlecht: Männlich
Re: Coppermine Photo Gallery lightbox nasil eklenir ?
« Antwort #5 am: 07 Oktober 2007, 04:41:17 »
Usta yeniden denedim yine aynisi bir kac tane thema da uyguladim yine ayni admin olarak girdigimde hersey normal kullanici olarak girdigimde kücük resme tikladigimda büyütmek icin beyaz sayfa aciliyor Firefox da denedim ve windows internet explorer de sonuc yine ayni .

Offline Sitki

  • ******
  • 3.747
  • +0/-0
  • Geschlecht: Männlich
Re: Coppermine Photo Gallery lightbox nasil eklenir ?
« Antwort #6 am: 07 Oktober 2007, 10:34:27 »
İndirdiğin paketin içinde birde index.html dosyası olması lazım. Bunu kullandığın temanın içine atacaksın.

Ayrıca template.html dosyasındaki reel dizin yolunu su şekilde değiştir ve tekrar dene.

<script type="text/javascript" src="http://www.seninsiten.com/modules/Gallery/themes/your_theme_folder/js/prototype.js"></script>
<script type="text/javascript" src="http://www.seninsiten.com/modules/Gallery/themes/your_theme_folder/js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="http://www.seninsiten.com/modules/Gallery/themes/your_theme_folder/js/lightbox.js"></script>

Adım 5:
Kullandığın CPG temanın theme.php nin sonuna ("?>" önüne)...
« Letzte Änderung: 07 Oktober 2007, 10:43:57 von Atahan »
viele Grüße
Kein Support über PN, Mail oder Messenger!
Bitte die Fragen im Forum stellen, nur so helfen die Antworten auch den anderen Usern.
Bitte auch die Boardsuche nicht vergessen, oft ist genau dein Problem schon an anderer Stelle gelöst worden!

Offline Albay

  • ***
  • 105
  • +1/-0
  • Geschlecht: Männlich
Re: Coppermine Photo Gallery lightbox nasil eklenir ?
« Antwort #7 am: 09 Oktober 2007, 03:00:58 »
yazmis oldugunuz degisikleri yaptim sonuc yine ayni acaba kullanicilara verilen izin ayarlarindan olabilirmi diyecem ama lightbox u kaldirinca calisiyor resmi büyütme oluyor ve büyük resme tiklayinca popup pencerede oluyor acaba  theme.php de admin ve user ayari varmi bendeki sadce admine izin veriyor olabilirmi ?

Offline Albay

  • ***
  • 105
  • +1/-0
  • Geschlecht: Männlich
Re: Coppermine Photo Gallery lightbox nasil eklenir ?
« Antwort #8 am: 09 Oktober 2007, 13:42:38 »
Usta olayı cözdüm kodlarda bir hata var galiba

http://www.pragmamx.org/Forum-topic-18709-start-25.html

bu adresde Subspekt arkadasin sumus oldugu mx-port-black.zip icindeki theme.php deki kodlari kopyalayip benim kullandigim theme.php e ekledim sorun cözüldü.



// Displays a picture
function theme_html_picture()
{
    global $CONFIG, $CURRENT_PIC_DATA, $CURRENT_ALBUM_DATA, $USER;
    global $album, $comment_date_fmt, $template_display_media;
    global $lang_display_image_php, $lang_picinfo;

    $pid = $CURRENT_PIC_DATA['pid'];
    $pic_title = '';

    if (!isset($USER['liv']) || !is_array($USER['liv'])) {
        $USER['liv'] = array();
    }
    // Add 1 to hit counter
    if (!USER_IS_ADMIN && !in_array($pid, $USER['liv']) && isset($_COOKIE[$CONFIG['cookie_name'] . '_data'])) {
        add_hit($pid);
        if (count($USER['liv']) > 4) array_shift($USER['liv']);
        array_push($USER['liv'], $pid);
    }

    if($CONFIG['thumb_use']=='ht' && $CURRENT_PIC_DATA['pheight'] > $CONFIG['picture_width'] ){ // The wierd comparision is because only picture_width is stored
      $condition = true;
    }elseif($CONFIG['thumb_use']=='wd' && $CURRENT_PIC_DATA['pwidth'] > $CONFIG['picture_width']){
      $condition = true;
    }elseif($CONFIG['thumb_use']=='any' && max($CURRENT_PIC_DATA['pwidth'], $CURRENT_PIC_DATA['pheight']) > $CONFIG['picture_width']){
      $condition = true;
    }else{
     $condition = false;
    }

    if ($CURRENT_PIC_DATA['title'] != '') {
        $pic_title .= $CURRENT_PIC_DATA['title'] . "\n";
    }
    if ($CURRENT_PIC_DATA['caption'] != '') {
        $pic_title .= $CURRENT_PIC_DATA['caption'] . "\n";
    }
    if ($CURRENT_PIC_DATA['keywords'] != '') {
        $pic_title .= $lang_picinfo['Keywords'] . ": " . $CURRENT_PIC_DATA['keywords'];
    }

    if (!$CURRENT_PIC_DATA['title'] && !$CURRENT_PIC_DATA['caption']) {
        template_extract_block($template_display_media, 'img_desc');
    } else {
        if (!$CURRENT_PIC_DATA['title']) {
            template_extract_block($template_display_media, 'title');
        }
        if (!$CURRENT_PIC_DATA['caption']) {
            template_extract_block($template_display_media, 'caption');
        }
    }

    $CURRENT_PIC_DATA['menu'] = html_picture_menu(); //((USER_ADMIN_MODE && $CURRENT_ALBUM_DATA['category'] == FIRST_USER_CAT + USER_ID) || ($CONFIG['users_can_edit_pics'] && $CURRENT_PIC_DATA['owner_id'] == USER_ID && USER_ID != 0) || GALLERY_ADMIN_MODE) ? html_picture_menu($pid) : '';

    if ($CONFIG['make_intermediate'] && $condition ) {
        $picture_url = get_pic_url($CURRENT_PIC_DATA, 'normal');
    } else {
        $picture_url = get_pic_url($CURRENT_PIC_DATA, 'fullsize');
    }

    $image_size = compute_img_size($CURRENT_PIC_DATA['pwidth'], $CURRENT_PIC_DATA['pheight'], $CONFIG['picture_width']);

    $pic_title = '';
    $mime_content = cpg_get_type($CURRENT_PIC_DATA['filename']);


    if ($mime_content['content']=='movie' || $mime_content['content']=='audio') {

        if ($CURRENT_PIC_DATA['pwidth']==0 || $CURRENT_PIC_DATA['pheight']==0) {
            $CURRENT_PIC_DATA['pwidth']  = 320; // Default width

            // Set default height; if file is a movie
            if ($mime_content['content']=='movie') {
                $CURRENT_PIC_DATA['pheight'] = 240; // Default height
            }
        }

        $ctrl_offset['mov']=15;
        $ctrl_offset['wmv']=45;
        $ctrl_offset['swf']=0;
        $ctrl_offset['rm']=0;
        $ctrl_offset_default=45;
        $ctrl_height = (isset($ctrl_offset[$mime_content['extension']]))?($ctrl_offset[$mime_content['extension']]):$ctrl_offset_default;
        $image_size['whole']='width="'.$CURRENT_PIC_DATA['pwidth'].'" height="'.($CURRENT_PIC_DATA['pheight']+$ctrl_height).'"';
    }

    if ($mime_content['content']=='image') {
        if (isset($image_size['reduced'])) {
        $picfull_url = get_pic_url($CURRENT_PIC_DATA, 'fullsize');
        $pic_title = $CURRENT_PIC_DATA['title'];
            $winsizeX = $CURRENT_PIC_DATA['pwidth']+5;  //the +'s are the mysterious FF and IE paddings
            $winsizeY = $CURRENT_PIC_DATA['pheight']+3; //the +'s are the mysterious FF and IE paddings
            $pic_html = "<a href=\"$picfull_url\" rel=\"lightbox\" title=\"$pic_title\">";
            $pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
            $pic_html .= "</a>\n";
        } else {
            $pic_html = "<img src=\"" . $picture_url . "\" {$image_size['geom']} class=\"image\" border=\"0\" alt=\"\" /><br />\n";
        }
    } elseif ($mime_content['content']=='document') {
        $pic_thumb_url = get_pic_url($CURRENT_PIC_DATA,'thumb');
        $pic_html = "<a href=\"{$picture_url}\" target=\"_blank\" class=\"document_link\"><img src=\"".$pic_thumb_url."\" border=\"0\" class=\"image\" /></a>\n<br />";
    } else {
        $autostart = ($CONFIG['media_autostart']) ? ('true'):('false');

        $players['WMP'] = array('id' => 'MediaPlayer',
                                'clsid' => 'classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" ',
                                'codebase' => 'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" ',
                                'mime' => 'type="application/x-mplayer2" ',
                               );
        $players['RMP'] = array('id' => 'RealPlayer',
                                'clsid' => 'classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" ',
                                'codebase' => '',
                                'mime' => 'type="audio/x-pn-realaudio-plugin" '
                               );
        $players['QT']  = array('id' => 'QuickTime',
                                'clsid' => 'classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" ',
                                'codebase' => 'codebase="http://www.apple.com/qtactivex/qtplugin.cab" ',
                                'mime' => 'type="video/x-quicktime" '
                               );
        $players['SWF'] = array('id' => 'SWFlash',
                                'clsid' => ' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ',
                                'codebase' => 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ',
                                'mime' => 'type="application/x-shockwave-flash" '
                               );
        $players['UNK'] = array('id' => 'DefaultPlayer',
                                'clsid' => '',
                                'codebase' => '',
                                'mime' => ''
                               );

        if (isset($_COOKIE[$CONFIG['cookie_name'].'_'.$mime_content['extension'].'player'])) {
            $user_player = $_COOKIE[$CONFIG['cookie_name'].'_'.$mime_content['extension'].'player'];
        } else {
            $user_player = $mime_content['player'];
        }

                // There isn't a player selected or user wants client-side control
        if (!$user_player) {
            $user_player = 'UNK';
        }

        $player = $players[$user_player];

        $pic_html  = '<object id="'.$player['id'].'" '.$player['classid'].$player['codebase'].$player['mime'].$image_size['whole'].'>';
        $pic_html .= "<param name=\"autostart\" value=\"$autostart\" /><param name=\"src\" value=\"". $picture_url . "\" />";
        $pic_html .= '<embed '.$image_size['whole'].' src="'. $picture_url . '" autostart="'.$autostart.'" '.$player['mime'].'></embed>';
        $pic_html .= "</object><br />\n";
    }

    $CURRENT_PIC_DATA['html'] = $pic_html;
    $CURRENT_PIC_DATA['header'] = '';
    $CURRENT_PIC_DATA['footer'] = '';

    $CURRENT_PIC_DATA = CPGPluginAPI::filter('file_data',$CURRENT_PIC_DATA);

    $params = array('{CELL_HEIGHT}' => '100',
        '{IMAGE}' => $CURRENT_PIC_DATA['header'].$CURRENT_PIC_DATA['html'].$CURRENT_PIC_DATA['footer'],
        '{ADMIN_MENU}' => $CURRENT_PIC_DATA['menu'],
        '{TITLE}' => bb_decode($CURRENT_PIC_DATA['title']),
        '{CAPTION}' => bb_decode($CURRENT_PIC_DATA['caption']),
        );

    return template_eval($template_display_media, $params);
}



Offline Sitki

  • ******
  • 3.747
  • +0/-0
  • Geschlecht: Männlich
Re: Coppermine Photo Gallery lightbox nasil eklenir ?
« Antwort #9 am: 09 Oktober 2007, 14:03:23 »
Evet, kodların kopyalama esnasında istenmeyen birkaç aralamalar yapılmış, üstteki kodları şimdi düzelttim.
viele Grüße
Kein Support über PN, Mail oder Messenger!
Bitte die Fragen im Forum stellen, nur so helfen die Antworten auch den anderen Usern.
Bitte auch die Boardsuche nicht vergessen, oft ist genau dein Problem schon an anderer Stelle gelöst worden!

Offline xorte_kobani

  • **
  • 42
  • +0/-0
Re: Coppermine Photo Gallery lightbox nasil eklenir ?
« Antwort #10 am: 29 Oktober 2007, 22:00:09 »
Lightbox.js dosyasını acıyorsun ve resimlerin images/bild.gif dizin yolunu aşağıdaki şekilde değiştiriyorsun.
images/bild.gif bu kodu ariyorum icinde yok  exporlerde acildi ama firefoxta hat averdi
« Letzte Änderung: 29 Oktober 2007, 22:12:21 von xorte_kobani »
Azadi u Asiti Freiheitsstatue

Offline Sitki

  • ******
  • 3.747
  • +0/-0
  • Geschlecht: Männlich
Re: Coppermine Photo Gallery lightbox nasil eklenir ?
« Antwort #11 am: 30 Oktober 2007, 09:19:36 »
lightbox.js dosyasını aç

bul
var fileLoadingImage = "images/loading.gif";
var fileBottomNavCloseImage = "images/closelabel.gif";

bu şekilde değiştir
var fileLoadingImage = "modules/Gallery/themes/kullandigin_tema/images/loading.gif";
var fileBottomNavCloseImage = "modules/Gallery/themes/kullandigin_tema/images/closelabel.gif";
viele Grüße
Kein Support über PN, Mail oder Messenger!
Bitte die Fragen im Forum stellen, nur so helfen die Antworten auch den anderen Usern.
Bitte auch die Boardsuche nicht vergessen, oft ist genau dein Problem schon an anderer Stelle gelöst worden!

Offline xorte_kobani

  • **
  • 42
  • +0/-0
Re: Coppermine Photo Gallery lightbox nasil eklenir ?
« Antwort #12 am: 23 November 2007, 17:11:25 »
evet varmis atakan dostum sagol benn ne diyeiyim 10 senedir tasarim isi yapyiorum kafam bazen samalasiyor
Azadi u Asiti Freiheitsstatue