Forumun Portal İçine Alınması
Portal kp den Forumu portalın içinde göster diyerek forumu içeri alınız.Daha sonra forumunuza göre alttaki işlemleri eksiksiz yapınız.
Ipb 2.1.x İçin
-------------------------------------------------------------------------------------------------------------
Yedek al / aç : forum_dizini/sources/classes/class_display.php
Bul {Find}
function do_output($output_array)
{
global $Debug;Altına ekle{add below}
//added from MKportal
define ( 'IN_MKP', 1 );
$MK_PATH = "../";
require $MK_PATH."mkportal/conf_mk.php";
//end addedBul {find}
$output_array['MEMBER_BAR'] = $this->ipsclass->compiled_templates['skin_global']->member_bar($msg_data);Bununla değiştir {replace all}
//Mkportal edited
if(!$FORUM_VIEW) {
$output_array['MEMBER_BAR'] = $this->ipsclass->compiled_templates['skin_global']->member_bar($msg_data);
}
//end editedBul {find}
if ( $this->ipsclass->vars['ipb_img_url'] )
{
$this->ipsclass->skin['_wrapper'] = preg_replace( "#img\s+?src=[\"']style_(images|avatars|emoticons)(.+?)[\"'](.+?)?".">#is", "img src=\"".$this->ipsclass->vars['ipb_img_url']."style_\\1\\2\"\\3>", $this->ipsclass->skin['_wrapper'] );
}Altına ekle {add below}
//added from MKportal
if($FORUM_VIEW == 1) {
require_once $MK_PATH."mkportal/include/IPB/ipb_out.php";
$this->ipsclass->skin['_wrapper'] = mkportal_board_out($this->ipsclass->skin['_wrapper']);
}
//end addedkaydedip eskisiyle değiştirerek upload ediniz.
-------------------------------------------------------------------------------------------------------------
Ipb 1.3 için
-------------------------------------------------------------------------------------------------------------
Yedek al ve aç ;
forum_dizini/sources/functions.php
Bul {find}
//---------------------------------------
// Close this DB connection
//---------------------------------------Altına ekle {add below}
//added from MKportal
define ( 'IN_MKP', 1 );
require_once "../mkportal/include/IPB13/ipb13_out.php";
$ibforums->skin['template'] = mkportal_board_out($ibforums->skin['template']);
//end addedKaydedin ve eskisiyle değiştirerek upload edin.
-------------------------------------------------------------------------------------------------------------
SMF İçin
-------------------------------------------------------------------------------------------------------------
Yedek al ve aç ;
forum_dizini/Sources/Subs.php
bul {find}
// For session check verfication.... don't switch browsers...
$_SESSION['USER_AGENT'] = $_SERVER['HTTP_USER_AGENT'];Altına ekle {add below
//added from MKportal
if ($header !== false && in_array('main', $context['template_layers'])) {
define ( 'IN_MKP', 1 );
require_once "../mkportal/include/SMF/smf_out.php";
mkportal_board_out();
}
//end addedKaydedin ve eskisiyle değiştirerek upload edin.
-------------------------------------------------------------------------------------------------------------
VBulletin İçin
-------------------------------------------------------------------------------------------------------------
Yedek al ve aç ;
forum_dizini/includes/functions.php
Bul {find}
if (!is_demo_mode())
{
($hook = vBulletinHook::fetch_hook('global_complete')) ? eval($hook) : false;
}Altına ekle {add below}
//added from MKportal
define ( 'IN_MKP', 1 );
require_once "../mkportal/include/VB/vb_out.php";
$output = mkportal_board_out($output);
//end added------------------------------------------
Phpbb İçin ( işlem yapmadan önce, işlem yapılacak dosyaların yedeğini alın.)
-------------------------------
forum_dizini/login.php dosyasını açın.
Aşağıdaki kodu bulun
redirect(append_sid($url, true));Bununla değiştirin
//$template->assign_block_vars('switch_enable_pm_popup', array());kaydedip siteye yükleyin.
forum_dizini/includes/page_tail.php dosyasını açın ;
Aşağıdaki kodu bulun
$template->pparse('overall_footer');Aşağıdaki kodu altına ekleyin
//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/PHPBB/php_out.php";
mkportal_board_out();
}
if($FORUM_VIEW == 1 && $Checkmkout) {
echo $ForumOut;
}
//end addedkaydedip siteye yükleyin
forum_dizini/includes/template.php dosyasını açın.
Aşağıdaki kodu bulun
eval($this->compiled_code[$handle]);Bununla değiştirin
// modificato da mkportal
global $ForumOut, $Checkmkout, $gen_simple_header;
if ($handle == "smiliesbody" || $handle == "reviewbody" || $_GET['mode'] == "searchuser" || $gen_simple_header) {
$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
kaydedip siteye yükleyin.
mkportal.gen.tr