 |
[MOD] Video Album |
 |
1. July 2007, 04:03
|
#1 (permalink)
|
|
art. director
Üyelik tarihi: Jun 2007
Uye No: 1
Yaş: 29
Mesajlar: 1,068
Takım:
Seviye: 28 [   ] Aktiflik: 138 / 694 Güç: 356 / 2945 Deneyim: 77%
Ettiği Teşekkür: 61
100 Mesajına 158 Kere Teşekkür Edlidi
Tepki Sayısı: 7
28 Mesajına 32 Kere Tepki Gösterildi
Tecrübe Puanı: 20
|
[MOD] Video Album
Açıklama : Photo Albümünüze video eklemenizi sağlar..
* Aşağıdaki Resmi temanın /images klasörüne kopyalıyoruz..
Kod:
############################################################## ## MOD Title: Video Album ## MOD Author: slatfats < kennyhoward@gmail.com > (Ken Howard) N/A ## MOD Description: Adds ability to upload and view Quicktime movies in photo album ## MOD Version: 0.0.1 ## ## Installation Level: (Easy) ## Installation Time: 5 Minutes ## Files To Edit: ## album_showpage.php, ## album_upload.php, ## album_thumbnail.php, ## subSilver/album_showpage_body.tpl, ## subSilver/subSilver.cfg ## Included Files: templates/subSilver/images/movie_thumbnail.gif ## License: [Yalnızca Kayıtlı Üyeler Linkleri Görebilir. Ücretsiz Üye Olmak İçin Tıklayınız!] GNU General Public License v2 ############################################################## ## For security purposes, please check: [Yalnızca Kayıtlı Üyeler Linkleri Görebilir. Ücretsiz Üye Olmak İçin Tıklayınız!] ## for the latest version of this MOD. Although MODs are checked ## before being allowed in the MODs Database there is no guarantee ## that there are no security problems within the MOD. No support ## will be given for MODs not found within the MODs Database which ## can be found at [Yalnızca Kayıtlı Üyeler Linkleri Görebilir. Ücretsiz Üye Olmak İçin Tıklayınız!] ############################################################## ## Author Notes: This is an ALPHA mod. Please make sure to backup original files ## This mod requires Photo Album 2.0.53 and Volodymyr (CLowN) Skoryk's SP1 (Super Charged) ## Both available at [Yalnızca Kayıtlı Üyeler Linkleri Görebilir. Ücretsiz Üye Olmak İçin Tıklayınız!] ## ############################################################## ## MOD History: ## ## 2005-10-17 - Version 0.0.1a ## - First Release [ALPHA] ## ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ############################################################## copy movie_thumbnail.gif to subSilver/images/movie_thumbnail.gif # #-----[ OPEN album_showpage.php ]------------------------------------------ # # #-----[ FIND ]------------------------------------------ # $template->assign_vars(array( 'CAT_TITLE' => $thiscat['cat_title'], # #-----[ BEFORE ADD ]------------------------------------------ # $sql = "SELECT * FROM ". ALBUM_TABLE ." WHERE pic_id = '$pic_id'"; if( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Could not query pic information', '', __LINE__, __FILE__, $sql); } $thispic = $db->sql_fetchrow($result); $pic_filetype = substr($thispic['pic_filename'], strlen($thispic['pic_filename']) - 4, 4); $pic_filename = $thispic['pic_filename']; if ($pic_filetype == '.mov') { $file_url = append_sid("album_picm.$phpEx?pic_id=$pic_id"); $v_box = <<<EOBOX <EMBED SRC="album_mod/upload/$pic_filename" WIDTH="320" HEIGHT="256" AUTOPLAY="true" CONTROLLER="true" PLUGINSPAGE="http://www.apple.com/quicktime/download/"> EOBOX; $p_box = ''; $pic_message = '<a href="album_mod/upload/' . $pic_filename . '">Download Video [right-click - save as]</a>'; } else { $p_box = ( $picm ) ? '<img src="' . append_sid("album_pic.$phpEx?pic_id=$pic_id") . '" border="0" vspace="10" alt="' . $thispic['pic_title'] . '" title="' . $thispic['pic_title'] . '" />' : '<img src="' . append_sid("album_picm.$phpEx?pic_id=$pic_id") . '" border="0" vspace="10" alt="' . $thispic['pic_title'] . '" title="' . $thispic['pic_title'] . '" />'; $v_box = ''; $pic_message = 'Click on image to view larger image'; } # #-----[ FIND ]------------------------------------------ # 'U_PIC' => ( $picm ) ? '' : append_sid("album_pic.$phpEx?pic_id=$pic_id"), 'U_PIC_L1' => ( $picm ) ? '' : '<a href="album_showpage.php?full=&pic_id=' . $pic_id . '">', 'U_PIC_L2' => ( $picm ) ? '' : '</a>', 'U_PIC_CLICK' => ( $picm ) ? '' : 'Click on image to view larger image', # #-----[ REPLACE WITH ]------------------------------------------ # 'U_PIC' => $p_box, 'U_VID' => $v_box, 'U_PIC_L1' => ( $picm ) ? '' : '<a href="album_showpage.php?full=&pic_id=' . $pic_id . '">', 'U_PIC_L2' => ( $picm ) ? '' : '</a>', 'U_PIC_CLICK' => ( $picm ) ? '' : $pic_message, # #-----[ OPEN album_upload.php ]------------------------------------------ # # #-----[ FIND ]------------------------------------------ # case 'image/gif': if ($album_config['gif_allowed'] == 0) { message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); } $pic_filetype = '.gif'; break; # #-----[ AFTER ADD ]------------------------------------------ # case 'video/quicktime': if ($album_config['gif_allowed'] == 0) { message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); } $pic_filetype = '.mov'; break; # #-----[ FIND ]------------------------------------------ # // -------------------------------- // Well, it's an image. Check its image size // -------------------------------- # #-----[ BEFORE ADD ]------------------------------------------ # if ($pic_filetype != '.mov') { # #-----[ FIND ]------------------------------------------ # } // End Thumbnail Cache else if ($album_config['gd_version'] > 0) { $pic_thumbnail = ''; } # #-----[ AFTER ADD ]------------------------------------------ # } else { $pic_thumnail = ''; } # #-----[ OPEN album_thumbnail.php ]------------------------------------------ # # #-----[ FIND ]------------------------------------------ # header('Content-type: image/jpeg'); readfile($images['no_thumbnail']); exit; # #-----[ REPLACE WITH ]------------------------------------------ # if ($pic_filetype == '.mov') { header('Content-type: image/jpeg'); readfile($images['movie_thumbnail']); exit; } else { header('Content-type: image/jpeg'); readfile($images['no_thumbnail']); exit; } # #-----[ OPEN album_showpage.php ]------------------------------------------ # # #-----[ FIND ]------------------------------------------ # <td class="row1" align="center">{U_PIC_L1}<img src="{U_PIC}" border="0" vspace="10" alt="{PIC_TITLE}" title="{PIC_TITLE}" />{U_PIC_L2}<br /><span class="genmed">{U_PIC_CLICK}</span></td> # #-----[ IN-LINE FIND ]------------------------------------------ # <img src="{U_PIC}" border="0" vspace="10" alt="{PIC_TITLE}" title="{PIC_TITLE}" /> # #-----[ REPLACE WITH ]------------------------------------------ # {U_PIC}{U_VID} # #-----[ OPEN subSilver.cfg ]------------------------------------------ # # #-----[ FIND ]------------------------------------------ # ?> # #-----[ BEFORE ADD ]------------------------------------------ # $images['movie_thumbnail'] = "$current_template_images/movie_thumbnail.gif"; # #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM
[Yalnızca Kayıtlı Üyeler Linkleri Görebilir. Ücretsiz Üye Olmak İçin Tıklayınız!]
|
|
|
|
 |
21. July 2007, 13:53
|
#2 (permalink)
|
|
Administrator
Üyelik tarihi: Jun 2007
Uye No: 16
Yaş: 16
Mesajlar: 1,408
Takım:
Seviye: 32 [ ] Aktiflik: 234 / 780 Güç: 469 / 3305 Deneyim: 21%
Ettiği Teşekkür: 25
44 Mesajına 57 Kere Teşekkür Edlidi
Tepki Sayısı: 1
10 Mesajına 12 Kere Tepki Gösterildi
Tecrübe Puanı: 20
|
bu kod foruma attığımız video dosyalarınız resmi mi olcak_?
|
|
|
|
| Seçenekler |
|
|
| Stil |
Konuyu değerlendir |
Normal
|
|
Yetkileriniz
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML-KodlarıKapalı
|
|
|
|
Bütün Zaman Ayarları WEZ +3 olarak düzenlenmiştir. Şu Anki Saat: 05:28 . |
|
|
|
173, 171, 172, 170, 8, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 249, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 259, 52, 53, 54, 56, 57, 58, 248, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 150, 151, 152, 153, 154, 155, 156, 157, 158, 237, 168, 183, 179, 160, 175, 178, 167, 162, 163, 164, 165, 166, 1, 176, 177, 180, 181, 182, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 201, 200, 199, 202, 203, 204, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 222, 219, 220, 221, 229, 230, 231, 232, 233, 234, 235, 236, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 250, 251, 252, 253, 254, 255, 256, 257, 258, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 276, 277, 278,
|
|