System Administrator
Yönetici
İleti: 4153
Teşekkür Sayısı: 339
Çevrimdışı
Cinsiyet: 
|
 |
« : 28 Ocak 2011, 22:09:03 » |
|
Paket kurulum konusu;Linkleri goruntulemenize izin verilmiyor.
Kayit olun veya Giris yapinCaps;
Tema/Display.template.php bul; if ($attachment['thumbnail']['has_thumb']) echo ' <a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" onclick="', $attachment['thumbnail']['javascript'], '"><img src="', $attachment['thumbnail']['href'], '" alt="" id="thumb_', $attachment['id'], '" border="0" /></a><br />';değiştir; if ($attachment['thumbnail']['has_thumb']) // Attachments Cloud Zoom if (!empty($modSettings['attachments_cloud_zoom']) && !empty($modSettings['attachmentEnable']) && allowedTo('view_attachments')) { switch ($modSettings['attachments_cloud_zoom_effect']) { // Standart case '0': $style = 'useZoom: \'zoom' . $attachment['id'] . '\', showTitle: ' . $modSettings['attachments_cloud_zoom_titles'] . ', zoomWidth: ' . $modSettings['attachments_cloud_zoom_width'] . ', zoomHeight: ' . $modSettings['attachments_cloud_zoom_height'] . ', smallImage: \'' . $attachment['thumbnail']['href'] . '\''; break; // Tints case '1': $style = 'tint: \'' . $modSettings['attachments_cloud_zoom_tints_color'] . '\', tintOpacity: ' . $modSettings['attachments_cloud_zoom_tints_intensity']*0.01 . ', smoothMove: 5, zoomWidth: ' . $modSettings['attachments_cloud_zoom_width'] . ', zoomHeight: ' . $modSettings['attachments_cloud_zoom_height'] . ', showTitle: ' . $modSettings['attachments_cloud_zoom_titles'] . ', adjustY: -4, adjustX: 10'; break; // Inner Zoom case '2': $style = 'position: \'inside\', showTitle: false, adjustX: -4, adjustY: -4'; break; // Soft Focus case '3': $style = 'softFocus: true, zoomWidth: ' . $modSettings['attachments_cloud_zoom_width'] . ', zoomHeight: ' . $modSettings['attachments_cloud_zoom_height'] . ', showTitle: ' . $modSettings['attachments_cloud_zoom_titles'] . ', smoothMove: 2'; break; } echo ' <a href="', $attachment['href'], ';image" class="cloud-zoom" rel="', $style ,'"><img src="', $attachment['thumbnail']['href'], '" alt="', $attachment['name'], '" title="', $attachment['name'], '" /></a><br />'; } else echo ' <a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" onclick="', $attachment['thumbnail']['javascript'], '"><img src="', $attachment['thumbnail']['href'], '" alt="', $attachment['name'], '" id="thumb_', $attachment['id'], '" border="0" /></a><br />';bul; if ($attachment['thumbnail']['has_thumb']) echo ' <a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" onclick="', $attachment['thumbnail']['javascript'], '"><img src="', $attachment['thumbnail']['href'], '" alt="" id="thumb_', $attachment['id'], '" /></a><br />';değiştir; if ($attachment['thumbnail']['has_thumb']) // Attachments Cloud Zoom if (!empty($modSettings['attachments_cloud_zoom']) && !empty($modSettings['attachmentEnable']) && allowedTo('view_attachments')) { switch ($modSettings['attachments_cloud_zoom_effect']) { // Standart case '0': $style = 'useZoom: \'zoom' . $attachment['id'] . '\', showTitle: ' . $modSettings['attachments_cloud_zoom_titles'] . ', zoomWidth: ' . $modSettings['attachments_cloud_zoom_width'] . ', zoomHeight: ' . $modSettings['attachments_cloud_zoom_height'] . ', smallImage: \'' . $attachment['thumbnail']['href'] . '\''; break; // Tints case '1': $style = 'tint: \'' . $modSettings['attachments_cloud_zoom_tints_color'] . '\', tintOpacity: ' . $modSettings['attachments_cloud_zoom_tints_intensity']*0.01 . ', smoothMove: 5, zoomWidth: ' . $modSettings['attachments_cloud_zoom_width'] . ', zoomHeight: ' . $modSettings['attachments_cloud_zoom_height'] . ', showTitle: ' . $modSettings['attachments_cloud_zoom_titles'] . ', adjustY: -4, adjustX: 10'; break; // Inner Zoom case '2': $style = 'position: \'inside\', showTitle: false, adjustX: -4, adjustY: -4'; break; // Soft Focus case '3': $style = 'softFocus: true, zoomWidth: ' . $modSettings['attachments_cloud_zoom_width'] . ', zoomHeight: ' . $modSettings['attachments_cloud_zoom_height'] . ', showTitle: ' . $modSettings['attachments_cloud_zoom_titles'] . ', smoothMove: 2'; break; } echo ' <a href="', $attachment['href'], ';image" class="cloud-zoom" rel="', $style ,'"><img src="', $attachment['thumbnail']['href'], '" alt="', $attachment['name'], '" title="', $attachment['name'], '" /></a><br />'; } else echo ' <a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" onclick="', $attachment['thumbnail']['javascript'], '"><img src="', $attachment['thumbnail']['href'], '" alt="', $attachment['name'], '" id="thumb_', $attachment['id'], '" /></a><br />';./Sources/Admin.php bul; // Mod Authors for a "ADD AFTER" on this line. Ensure you end your change with a comma. For example:sonrasına ekle; // Attachments Cloud Zoom 'cloud_zoom' => array($txt['attachments_cloud_zoom_title']),./Sources/Display.php bul; // What are you gonna display if these are empty?!öncesine ekle; // Attachments Cloud Zoom if (!empty($modSettings['attachments_cloud_zoom']) && !empty($modSettings['attachmentEnable']) && allowedTo('view_attachments')) { $context['html_headers'] .= ' <link rel="stylesheet" type="text/css" href="' . $settings['default_theme_url'] . '/css/cloud-zoom.css" />'; if (!strpos($context['html_headers'],'jquery.min.js')) $context['html_headers'] .= ' <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>'; $context['html_headers'] .= ' <script type="text/javascript" src="' . $settings['default_theme_url'] . '/scripts/cloud-zoom.1.0.2.min.js"></script>'; }
./Sources/ManageSettings.php bul; // Mod authors, once again, if you have a whole section to add do it AFTER this line, and keep a comma at the end.sonrasına ekle; 'cloud_zoom' => 'Cloud_Zoom',bul; 'description' => $txt['modification_settings_desc'], 'tabs' => array( 'general' => array( ),sonrasına ekle; 'cloud_zoom' => array( 'description' => $txt['attachments_cloud_zoom_desc'], ),bul (dosyanın en sonudur); ?>öncesine ekle; function Cloud_Zoom($return_config = false) { global $txt, $scripturl, $context, $settings, $sc, $modSettings; if ($return_config) return $config_vars; $context['page_title'] = $txt['attachments_cloud_zoom_title']; $config_vars = array( array('check', 'attachments_cloud_zoom') ); if ($modSettings['attachments_cloud_zoom_effect'] != '2') { $config_vars[] = array('check', 'attachments_cloud_zoom_titles'); $config_vars[] = array('int', 'attachments_cloud_zoom_width', 'postinput' => 'px'); $config_vars[] = array('int', 'attachments_cloud_zoom_height', 'postinput' => 'px'); } $config_vars[] = array('select', 'attachments_cloud_zoom_effect', explode('|', $txt['attachments_cloud_zoom_effect_type'])); if ($modSettings['attachments_cloud_zoom_effect'] == '1') { $config_vars[] = array('text', 'attachments_cloud_zoom_tints_color'); $config_vars[] = array('int', 'attachments_cloud_zoom_tints_intensity', 'postinput' => '%'); } // Saving? if (isset($_GET['save'])) { checkSession(); $save_vars = $config_vars; saveDBSettings($save_vars); redirectexit('action=admin;area=modsettings;sa=cloud_zoom'); } $context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=cloud_zoom'; $context['settings_title'] = $txt['attachments_cloud_zoom_title']; prepareDBSettingContext($config_vars);
}Dil dosyası eklemesilanguages/Modifications.turkish.php de bul; ?>üstüne ekle; // Attachments Cloud Zoom - TR ww.simpleturk.com $txt['attachments_cloud_zoom_title'] = 'Attachments Cloud Zoom'; $txt['attachments_cloud_zoom_desc'] = 'Burada eklenen resimler icin 4 güzel efektlerden birini secebilirsiniz.'; $txt['attachments_cloud_zoom'] = 'Eklenen resimler icin Cloud Zoom Etkisi izin ver'; $txt['attachments_cloud_zoom_titles'] = 'Onizleme baslikları kutusu'; $txt['attachments_cloud_zoom_width'] = 'Onizleme width'; $txt['attachments_cloud_zoom_height'] = 'Onizleme height'; $txt['attachments_cloud_zoom_effect'] = 'Efekt turu'; $txt['attachments_cloud_zoom_effect_type'] = 'Standart|Tints|Inner Zoom|Soft Focus'; $txt['attachments_cloud_zoom_tints_color'] = 'Tint of any colour'; $txt['attachments_cloud_zoom_tints_intensity'] = 'Renk yogunlugu';
Not 1: Ekte verdiğim zip'in içinden çıkan install.php dosyasını 1 kez olmak üzere forum anadizinine atıp çalıştırın. Not 2: Zip'te bulunan "default/css" dizinini "./Themes/default" dizinine kopyalayın. Zip'te bulunan "default/scripts" dizinini "./Themes/default" dizinine kopyalayın.
|