Kodu açıp alabilirsiniz.
Eklentide de mevcut aynı zamanda
Kod: Tümünü seç
#################################################################
## Title: ezPortal for phpBB 2.0.x
## Version: 2.1.8b
## Author: Smartor <smartor_*******> - http://smartor.is-root.com
## Description: This Mod explains you how to create a portal for phpBB2 as simple as possible
## This MOD is not exactly a full functional portal system (content management system)
## but it looks like a portal. You should customize/modify/improve it to fit your fantasy ;)
## It is very EASY to install and very HANDY to modify
##
## Installation Level: Easy
## Installation Time: 10 Minutes
##
## Files To Edit: 4
## login.php
## includes/page_header.php
## language/lang_english/lang_main.php
## templates/subSilver/overall_header.tpl
##
## Included Files: 4
## portal.php
## fetchposts.php
## templates/subSilver/portal_body.tpl
## images/smartorsite_logo.gif
##
#################################################################
##
## Author Note:
##
## Copyright © Smartor, 2002-2004
##
## For any concerns please contact me at http://smartor.is-root.com
##
#################################################################
## This MOD is released under the GPL License.
## Intellectual Property is retained by the MOD Author(s) listed above
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################
##
## Revision History:
##
## v2.1.8b
## - fixed my mistakes in portal_body.tpl :(
## v2.1.8a
## - updated instructions for phpBB 2.0.10
## - fixed some HTML code (small changes)
## v2.1.8
## - fixed a bug: disappear 'Read Full'
## v2.1.7
## - removed 'Read Full' link on short announcements
## - added a new option 'Exceptional Forums' for Recent Topics Block
## - added poster name and posted time for Recent Topics Block
## - added scrolling effect for Recent Topics Block
## - changed the link on Recent Topics Block to the last post
## v2.1.6
## - solved some small issues: log in/out, stats, date/time, etc.
## - made phpBB 2.0.4 compatibled
## v2.1.5
## - improved some HTML code :P
## - fixed a serious security bug in Change Style Block
## v2.1.4
## - fixed Shadow Topic bug (for both News and Recent Topics)
## - added Search Block: it's very cool, included both phpBB Search and Google
## v2.1.3
## - just update ChatBox Block instruction file
## v2.1.2
## - due to some users are not familiar with HTML coding, i provide a new bordered template -looks much better in subSilver- for portal (only HTML thing, no new PHP code)
## v2.1.1
## - added a missing language entry for Recent Topics Block
## v2.1
## - added some blocks: Moreover.com Newsfeed, Recent Topics
## - removed some un-needed HTML codes
## - fixed some bugs
## - added "I forgot my password" link
## - fixed some language hardcode
## v2.0.2
## - fixed some template problems
## v2.0.1
## - added a lost language entry
## v2.0.0
## - completed News Feature
## v1.0.4a
## - fixed a JavaScript problem in this file
## v1.0.4
## - updated some blocks
## v1.0.3
## - Fixed some typos
## v1.0.0
## - Initial Release
##
#################################################################
## Demo/Discussion Forum: http://smartor.is-root.com
#################################################################
#
#------[ KOPYALA ]-------------------------------------------------------------
#
phpbb_root/images/ ----> forumun bulunduğu ana dizin
phpbb_root/fetchposts.php ----> forumun bulundugu ana dizin
phpbb_root/portal.php ----> forumun bulundugu ana dizin
phpbb_root/templates/subSilver/portal_body.tpl ----> templates/kullanıdıgın template/
#
#------[ AÇ ]-------------------------------------------------------------
#
login.php
#
#------[ BUL ]-------------------------------------------------------------
#
redirect(append_sid("index.$phpEx", true));
#
#------[ BUNUNLA DEĞİŞTİR ]-----------------------------------------------------
#
redirect(append_sid("portal.$phpEx", true));
#
#------[ BUL ]-------------------------------------------------------------
#
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx";
#
#------[ BUNUNLA DEĞİŞTİR ]-----------------------------------------------------
#
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "portal.$phpEx";
#
#------[ BUL ]-------------------------------------------------------------
#
redirect(append_sid("index.$phpEx", true));
#
#------[ BUNUNLA DEĞİŞTİR ]-----------------------------------------------------
#
redirect(append_sid("portal.$phpEx", true));
#
#------[ BUL ]-------------------------------------------------------------
#
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx";
#
#------[ BUNUNLA DEĞİŞTİR ]-----------------------------------------------------
#
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "portal.$phpEx";
#
#------[ BUL ]-------------------------------------------------------------
#
redirect(append_sid("index.$phpEx", true));
#
#------[ BUNUNLA DEĞİŞTİR ]-----------------------------------------------------
#
redirect(append_sid("portal.$phpEx", true));
#
#-----[ AÇ ]------------------------------------------
#
includes/page_header.php
#
#-----[ BUL ]----------------------------------------
#
'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),
#
#-----[ SONRA EKLE ]-----------------------------------
#
// ezPortal
'U_PORTAL' => append_sid('portal.'.$phpEx),
'L_HOME' => $lang['Home'],
#
#-----[ AÇ ]----------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ BUL ]----------------------------------------
#
<td><a href="{U_INDEX}"><img src="templates/subSilver/images/logo_phpBB.gif" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
#
#-----[ BUNUNLA DEĞİŞTİR ]--------------------------------
#
<td><a href="{U_PORTAL}"><img src="templates/subSilver/images/logo_phpBB.gif" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
#
#-----[ BUL ]----------------------------------------
#
<a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a>
#
#-----[ TAM ÖNÜNE EKLE ]--------------------------
#
<a href="{U_PORTAL}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{L_HOME}" hspace="3" />{L_HOME}</a>
#
#-----[ AÇ ]----------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ BUL ]----------------------------------------
#
//
// That's all Folks!
// -------------------------------------------------
#
#-----[ ÖNCE EKLE ]----------------------------------
#
//
// Smartor's ezPortal
//
$lang['Home'] = 'Portal';
$lang['Board_navigation'] = 'Menü';
$lang['Statistics'] = 'İstatistik';
$lang['total_topics'] = ' <b>%s</b> konu içinde'; // added in v2.1.6
$lang['Comments'] = 'Cevaplar';
$lang['Read_Full'] = 'Hepsini Oku';
$lang['View_comments'] = 'Cevaplara Bak';
$lang['Post_your_comment'] = 'Cevap Gönder';
$lang['Welcome'] = 'Hoşgeldiniz';
$lang['Register_new_account'] = 'Üye değilseniz şimdi kayıt olmak için %sburaya%s tıklayın.';
$lang['Remember_me'] = 'Beni hatırla';
$lang['View_complete_list'] = 'Tüm Liste';
$lang['Poll'] = 'Anket';
$lang['Login_to_vote'] = 'Oylamak için giriş yapmalısınız';
$lang['Vote'] = 'Oyla';
$lang['No_poll'] = 'Şu anda anket yok';
#
#-----[ TÜM DOSYALARI KAYDET/KAPAT ]------------------------------------------
#
#-----[ PORTALA YÖNLENDIRMEK ICIN ]------------------------------------------
#ya bir .htaccess dosyası oluşturun ve içinde
DirectoryIndex index.html index.htm portal.php index.php
#olsun ya da bir index.html atın içinde
<html>
<head>
<title>Yönlendiriliyorsunuz...</title>
<meta http-equiv="refresh" content="0;url=portal.php">
</head>
<body>
</body>
</html>
#olsun.. Eğerki forumum bulundugu klasör ana dizinde değilde /forum gibi bir dizinde yer alıyorsa
<meta http-equiv="refresh" content="0;url=forum/portal.php">
#şeklinde yazın..
#--------------------------------------------------------------------
# ezPortal Ayarları
#
# AÇ: portal.php
#
# BUL:
//
// Set configuration for ezPortal
//
#--------------------------------------------------------------------
## Yukarıdakini bulduktan sonra aşağıdaki yazıları göreceksindir. Türkçe ne yapman gerekiyor ben yazdım
// Welcome Text: note that we are in PHP file, so use \' instead of ' and use \\ instead of \ (HTML kodlarını kullanabilirsin)
$CFG['welcome_text'] = '<b>websiten.com</b> forum sayfalarına hoşgeldiniz.<br /><br />Forumda mesaj atmak için kayıt olmalısınız';
#Not: Yukarıdaki ayarla panoya girdiğinde en üstteki blok olan hoşgeldin mesajını değiştirebilirsin (Benim yazdıgım sadece bir örnektir.)
// Number of news on portal
$CFG['number_of_news'] = '5';
#Not: Yukarıdaki ayarla portalda yayınlanması istediğin haber sayısını değiştirebilirsin.(Varsayılan 5 tir.)
// Length of news
$CFG['news_length'] = '200';
#Not: Yukarıdaki ayarla portalda yayınlanması istediğin haberin uzunluğunu ayarlayabilirsin(Varsayılan 200 )
// News Forum ID: separate by comma for multi-forums, eg. '1,2,5'
$CFG['news_forum'] = '1';
#Not: Yukarıdaki ayarla portalda yayınlanması istediğin haber yazdıgın forum id'lerini ayarlayabilirsin.
# Portaldaki haberler duyuru olarak eklenenlerdir. (Varsayılan 1 olarak gösterilmiş.)
# Yani forum id'si 1 olan forumun duyuruları yayınlanacak demektir.
# Yani forum id'si 1 olan forumun duyuruları yayınlanacak demektir.
# Bunların arasına virgül koyarak belirteceğiniz farklı forumlardaki duyurularıda portalda gösterebilirsiniz
// Poll Forum ID: separate by comma for multi-forums, eg. '3,8,14'
$CFG['poll_forum'] = '1';
//
#Not: Yukarıdaki ayarla portalda yayınlanması istediğin anketlerin bulundukları forum idlerini değiştirebilirsin
# Portaldaki yayınlanacak anketeler yukarda belirtildiğine göre 1 olarak ayarlanmış. Bu forum id'si 1 olan forumdaki anketler yayınlancak demektir.
// Ayarlar Bitti
// --------------------------------------------------------
#--------------------------------------------------------------------
#
# EoM