MKPortal'ı birkaç adımda kurma:1. The installation package (zip file) contains the "upload" folder. You should transfer the content of "upload" folder on your webspace (for example
http://www.yoursite.com/) according to this scheme:
/forum (or any other name of the folder containing the board installed)
/mkportal (containing the content of "upload" folder)
/index.php (included in mkportal package)
You should obtain this structure (it's the only structure to make mkportal work correctly) :
http://www.yoursite.com/forum http://www.yoursite.com/mkportal http://www.yoursite.com/index.php (mkportal main index)
If you have the board index on your website root you should move it in a subfolder (as shown in the example above).
2. Now you can start installation typing the url:
http://www.yoursite.com/mkportal/mk_install.php Just follow instructions and it's done
3. Give the writing permissions (chmod 777) to the following files and directories and to their content:
mkportal/conf_mk.php
mkportal/cache
mkportal/blog
mkportal/blog/images
mkportal/templates/*
mkportal/lang/*
mkportal/modules/downloads/file
mkportal/modules/gallery/album
mkportal/modules/reviews/images
4. Remove the file mk_install.php file from server
5.
forum dosyası olan "login.php" dosyasını açınAşağıdaki diziyi bulun:
- Kod: Tümünü seç
redirect(append_sid($url, true));
Dikkat! bu dizi login.php içersinde 3 defa tekrarlanmaktadır. 3'ünüde tek tek bulup aşağıdaki satırlarla değiştirmelisiniz.- Kod: Tümünü seç
if ($url == "portalhome") {
Header("Location: ../");
exit;
} else {
redirect(append_sid($url, true));
}
Kurulum Tamamlandı. Artık bir portalınız var.---------------------------------------------------------------------------
Eğer forumunuzun MKPortal içersinde görüntülenmesini istiyorsanız aşağıdaki adımları yapın :
* Mkportal Portal Kontrol Panelinde -> genel ayarlar kısmındaki "forumu portal içersinde göster" kısmını işaretleyin.
ve aşağıdaki 2 dosyayı (forum klasörünüzün içinde )değiştirin. (dosyalarda değişiklik yapmadan yedeklerini alın):
* includes/page_tail.php
* includes/template.php
* includes/page_header.php
* templates/xxxx/overall_header.tpl
forum dosyalarından " includes/page_header.php" dosyasını açınAşağıdaki diziyi bulun (around 460):
- Kod: Tümünü seç
$template->assign_block_vars('switch_enable_pm_popup', array());
Aşağıdaki ile değiştirin:
- Kod: Tümünü seç
//$template->assign_block_vars('switch_enable_pm_popup', array());
forum dosyalarından " includes/page_tail.php " dosyasını açın
Aşağıdaki diziyi bulun (around 48):
- Kod: Tümünü seç
$db->sql_close();
Altına aşağıdaki kodu ekleyin :
- Kod: Tümünü seç
//added from mkportal
global $Checkmkout, $ForumOut;
define ( 'IN_MKP', 1 );
$MK_PATH = "../";
require $MK_PATH."mkportal/conf_mk.php";
if($FORUM_VIEW == 1 && !$Checkmkout) {
require_once $MK_PATH."mkportal/include/boardmod/php_out.php";
mkportal_board_out();
}
if($FORUM_VIEW == 1 && $Checkmkout) {
echo $ForumOut;
}
//end added
forum dosyalarından " includes/template.php " dosyasını açın
Aşağıdaki diziyi bulun (around 127):
- Kod: Tümünü seç
eval($this->compiled_code[$handle]);
- Kod: Tümünü seç
// modificato da mkportal
global $ForumOut, $Checkmkout;
if ($handle == "smiliesbody" || $handle == "reviewbody") {
$Checkmkout = 1;
}
$MK_PATH = "./";
if (defined('IN_ADMIN')) {
$MK_PATH = "../";
}
require $MK_PATH."../mkportal/conf_mk.php";
if ( !defined('IN_ADMIN') && $FORUM_VIEW == 1) {
ob_start();
eval($this->compiled_code[$handle]);
$ForumOut .= ob_get_contents();
ob_end_clean();
} else {
eval($this->compiled_code[$handle]);
}
// fine modificato
isteğe bağlı olarak : bu değişiklik kullandığınız görünüm temasına bağlı olan header kısmını kaldırmak içindir.
forum dosyalarından " templates/subSilver/overall_header.tpl " dosyasını açınAşağıdaki kodu tamamen silin :
- Kod: Tümünü seç
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td><a href="{U_INDEX}"><img src="templates/subSilver/images/logo_phpBB.gif" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
<td align="center" width="100%" valign="middle"><span class="maintitle">{SITENAME}</span><br /><span class="gen">{SITE_DESCRIPTION}<br /> </span>
<table cellspacing="0" cellpadding="2" border="0">
<tr>
<td align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <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></span><span class="mainmenu"> <a href="{U_SEARCH}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a> <a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a> <a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>
<!-- BEGIN switch_user_logged_out -->
<a href="{U_REGISTER}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_register.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a></span>
<!-- END switch_user_logged_out -->
</td>
</tr>
<tr>
<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a> <a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a> <a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a> </span></td>
</tr>
</table></td>
</tr>
</table>