Forumda Afişli Sinema, Film, Dizi Bölümü

Started by Eshsiz, December 03, 2009, 06:13:08 AM

Previous topic - Next topic

Eshsiz

SMF Gallery üstünde ufak tefek editler yaparak bu hale getirdim.






Modifikasyon Adı: SMF Gallery
Yazar: vbgamer45
Tür: New Feature
Gönderildiği Tarih: Eylül 16, 2006, 07:12:59 ÖS
Son Düzenleme: Kasım 18, 2009, 12:40:04 ÖÖ
Güncel Sürüm:  2.0.9
Uyumluluk: 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.0.10, 1.1 RC3, 1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, 1.1.7, 1.1.8, 1.1.9, 1.1.10, 2.0 Beta 4, 2.0 RC1, 2.0 RC1-1, 2.0 RC2

./index.php

Bul

'help' => array('Help.php', 'ShowHelp'),

Sonrasına Ekle

'gallery' => array('Gallery2.php', 'GalleryMain'),

./Sources/Admin.php

Bul

'current_theme' => array(
'label' => $txt['theme_current_settings'],


Öncesine Ekle

'gallery' => array(
'label' => $txt['smfgallery_admin'],
'file' => 'Gallery2.php',
'function' => 'GalleryMain',
'custom_url' => $scripturl . '?action=admin;area=gallery;sa=adminset;sesc=' . $sc,
'icon' => 'server.gif',
'subsections' => array(
'adminset' => array($txt['gallery_text_settings']),
'admincat' => array($txt['gallery_form_managecats']),
'reportlist' => array($txt['gallery_form_reportimages']),
'approvelist' => array($txt['gallery_form_approveimages']),
),
),



./Sources/Subs.php

Bul

$context['allow_calendar'] = allowedTo('calendar_view') && !empty($modSettings['cal_enabled']);

Sonrasına Ekle

$context['allow_smfgallery_view'] = allowedTo('smfgallery_view');



Bul

'mlist' => array(
'title' => $txt['members_title'],
'href' => $scripturl . '?action=mlist',
'show' => $context['allow_memberlist'],
'sub_buttons' => array(
'mlist_view' => array(
'title' => $txt['mlist_menu_view'],
'href' => $scripturl . '?action=mlist',
'show' => true,
),
'mlist_search' => array(
'title' => $txt['mlist_search'],
'href' => $scripturl . '?action=mlist;sa=search',
'show' => true,
),
),
),


Sonrasına Ekle
// [SMF Gallery] button
'gallery' => array(
'title' => $txt['smfgallery_menu'],
'href' => $scripturl . '?action=gallery',
'show' => $context['allow_smfgallery_view'],
'icon' => '',
),


./Sources/ManagePermissions.php

Bul
$groupLevels['global']['standard'] = array_merge($groupLevels['global']['restrict'], array(

Sonrasına Ekle


'smfgallery_view',
'smfgallery_add',
'smfgallery_edit',
'smfgallery_delete',
'smfgallery_comment',
'smfgallery_report',
'smfgallery_autoapprove',
'smfgallery_manage',


Bul
$permissionList = array(
'membergroup' => array(

Sonrasına Ekle

'smfgallery_view' => array(false, 'smfgallery', 'smfgallery'),
'smfgallery_add' => array(false, 'smfgallery', 'smfgallery'),
'smfgallery_edit' => array(false, 'smfgallery', 'smfgallery'),
'smfgallery_delete' => array(false, 'smfgallery', 'smfgallery'),
'smfgallery_comment' => array(false, 'smfgallery', 'smfgallery'),
'smfgallery_report' => array(false, 'smfgallery', 'smfgallery'),
'smfgallery_autoapprove' => array(false, 'smfgallery', 'smfgallery'),
'smfgallery_manage' => array(false, 'smfgallery', 'smfgallery'),


Şekerlinkler Kullanıyorsanız.
./Sources/PrettyUrls-Filters.php

Bul (Dosyanın en sonunda):
?>
Öncesine Ekle

// Filter SMF Gallery Lite
function pretty_smf_gallery_lite_filter($urls)
{
global $boardurl, $scripturl;


// Do Gallery Index replacement
/*
$pattern = '~' . $scripturl . '(.*)page=([^;]+)~S';
$replacement = $boardurl . '/index.php?action=gallery';
foreach ($urls as $url_id => $url)
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url']))
$urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);
*/

// Do Gallery Category Replacement
$pattern = '~' . $scripturl . '(.*)action=gallery;cat=([^;]+)~S';
$replacement = $boardurl . '/gallery/category/$2';
foreach ($urls as $url_id => $url)
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url']))
$urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);


// Do Gallery Picture Replacement
$pattern = '~' . $scripturl . '(.*)sa=view;id=([^;]+)~S';
$replacement = $boardurl . '/gallery/picture/$2/';
foreach ($urls as $url_id => $url)
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url']))
$urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);




return $urls;
}


./Themes/default/languages/Who.turkish.php

Bul (Dosyanın en sonunda):

?>

Öncesine Ekle


// Begin SMF Gallery
$txt['whoall_gallery'] = '<a href="' . $scripturl . '?action=gallery">Sinemada </a>';
// END SMF Gallery Strings


./Themes/default/languages/Modifications.turkish.php

Bul (Dosyanın en sonunda):

?>
Öncesine Ekle

//Begin SMF Gallery Text Strings
$txt['smfgallery_title'] = 'Cinema';
$txt['smfgallery_menu'] = 'Sinema';
$txt['smfgallery_version'] = '1.0 Lite';
$txt['smfgallery_admin'] = 'Sinema Ayarlari';

//Permissions
$txt['permissiongroup_smfgallery'] = 'Sinema';

$txt['permissionname_smfgallery_view'] = 'Sinema Görebilme';
$txt['permissionhelp_smfgallery_view'] = 'Kategorileri Görebilsin';
$txt['cannot_smfgallery_view'] = 'Kategorileri Göremesin';

$txt['permissionname_smfgallery_add'] = 'Film Ekleme';
$txt['permissionhelp_smfgallery_add'] = 'Film Ekleyebilsin';
$txt['cannot_smfgallery_add'] = 'Film Ekleyemesin.';

$txt['permissionname_smfgallery_edit'] = 'Kendi Filmini Düzenleme';
$txt['permissionhelp_smfgallery_edit'] = 'Kendi Filmini Düzenleyebilsin';
$txt['cannot_smfgallery_edit'] = 'Kendi Filmini Düzenleyemesin';

$txt['permissionname_smfgallery_delete'] = 'Kendi Filmini Silme';
$txt['permissionhelp_smfgallery_delete'] = 'Kendi Filmini Silebilsin';
$txt['cannot_smfgallery_delete'] = 'Kendi Filmini Silemesin';

$txt['permissionname_smfgallery_comment'] = 'Yorum Ekleme';
$txt['permissionhelp_smfgallery_comment'] = 'Filmlere Yorum Ekleyebilir';
$txt['cannot_smfgallery_comment'] = 'Filmlere Yorum Ekleyemez';

$txt['permissionname_smfgallery_report'] = 'Yetkiliye Bildirme';
$txt['permissionhelp_smfgallery_report'] = 'Filmleri Yetkiliye Bildirebilir';
$txt['cannot_smfgallery_report'] = 'Filmleri Yetkiliye Bildiremez';

$txt['permissionname_smfgallery_autoapprove'] = 'Filmleri Otomatik Onayla';
$txt['permissionhelp_smfgallery_autoapprove'] = 'Filmlerin Onaylanmadan Önce Beklemesine Gerek Yok';

$txt['permissionname_smfgallery_manage'] = 'Kisisel Film Galerisi';
$txt['permissionhelp_smfgallery_manage'] = 'Kisisel Film Galerisi Olusturabilir Düzenleyebilir Silebilir';
$txt['cannot_smfgallery_manage'] = 'Kisisel Film Galerisi Olusturamaz';

$txt['gallery_form_managecats'] = 'Manage Categories';
$txt['gallery_form_approveimages'] = 'Approve Images';
$txt['gallery_form_reportimages'] = 'Reported Images';
$txt['gallery_text_settings'] = 'Settings';


//END SMF Gallery Text Strings


Pakette bulunan "Gallery2.php" dosyasını "./Sources" dizinine kopyalayın.
Pakette bulunan "Gallery2.template.php" dosyasını "./Themes/default" dizinine kopyalayın.
Pakette bulunan "gallery" dizinini " forum ana (kök) dizini" dizinine kopyalayın. 777 yapın
Pakette bulunan "Gallery.turkish.php" dosyasını "./Themes/default/languages" dizinine kopyalayın.

Pakette bulunan "galleryinstall2.php" forum ana (kök) dizini" dizinine kopyalayın ve çalıştırın.
site.com/galleryinstall2.php
veya
site.com/forum/galleryinstall2.php

Sonra phpmyadminde sql çalıştırın


ALTER TABLE smf_gallery_pic ADD yonetmen varchar(100);
ALTER TABLE smf_gallery_pic ADD senaryo varchar(100);
ALTER TABLE smf_gallery_pic ADD oyuncu varchar(500);
ALTER TABLE smf_gallery_pic ADD konu varchar(500);
ALTER TABLE smf_gallery_pic ADD yapim varchar(100);
ALTER TABLE smf_gallery_pic ADD orjidil varchar(100);
ALTER TABLE smf_gallery_pic ADD dublajdil varchar(100);
ALTER TABLE smf_gallery_pic ADD suresi varchar(100);
ALTER TABLE smf_gallery_pic ADD senesi varchar(100);
ALTER TABLE smf_gallery_pic ADD altyazi text;
ALTER TABLE smf_gallery_pic ADD ekrangrn text;
ALTER TABLE smf_gallery_pic ADD httpfilmlink text;
ALTER TABLE smf_gallery_pic ADD ED2Kfilmlink text;
ALTER TABLE smf_gallery_pic ADD IMDb varchar(100);
ALTER TABLE smf_gallery_pic ADD IMDbpuan varchar(100);
ALTER TABLE smf_gallery_pic ADD internetsayfasi varchar(100);



SMF Media Gallery`yi de editlemeye çalışıyorum. Bitirebilirsem eklicem :)

romaryu

phpmayadin hatta verdi  şöyle 

Hata

SQL sorgusu:

ALTER TABLE smf_gallery_pic ADD yonetmen varchar( 100 ) ;

MySQL çıktısı: Yardım
#1146 - Table 'muradiyeforum.smf_gallery_pic' doesn't exist


artı pakete galleriinstal2.php yok

Eshsiz

Buyrun. Pakete dahil etmeyi unutmuşum. Forum anadizinine atın ve çalıştırın. Sonra tekrar sql sorgusunu çalıştırın.


romaryu

yina hata veriyor film yukle dediğimde şu hattayı alıyorum

Unknown column 'httpfilmlink' in 'field list'
Dosya: /var/www/vhosts/sildim/httpdocs/Sources/Gallery2.php
Satır: 851

Eshsiz

Kusura bakma eklemeyi unutmuşum.

Phpmayadminden altak sorguyu çalıştır ;)

ALTER TABLE smf_gallery_pic ADD httpfilmlink text;

ßarLas-

galleryinstall2.php Dosyası Paketin İçinde Yok Nasil Yapacaz

Eshsiz

Buradakini deneyin. Daha sağlıklı...

http://www.simplemachines.org/community/index.php?topic=353554.0;topicseen

Yok illa bu diyorsanız. ilk önce smf gallery modülünü indirin ordan edinin install dosyasını

sepla

kurdum kurmasinada yöneticide cikmadi butonu  ve  film koymaya calisirken su hatayi veriyor

Unknown column 'yonetmen' in 'field list'
Dosya: /htdocs/forum/Sources/Subs-MGallery.php
Satır: 2137
http://www.gurbetforum.de Bekleriz Banner Takas Yapmak Icin

Eshsiz

Diğer konuda cevap verdim. Bu farklı bir mod. Hangisini kullanmak istediğinize karar vermelisiniz öncelikle.

Advertisement: