include('phpBB3/index.php')
phpBB3 içindeki herhangi bir linke tıklayınca ne olacak?
Büyük bir ihtimal ile zaten "header already by sent" hatası verecektir. phpBB3 ün config.php dosyası da 2 defa include edildi kodlarınız ile.
Bunu yapınca bir sürü sorun çıkacaktır, yüksekliği sayfaya göre ayarlanan bir iframe daha iyi çalışabilir.
bir üst mesajda 2. bir yoldan bahsetmiştim sanırım o daha sağlıklı
fakat arkadaş iframe istemiyor sanırım
https://www.r10.net/wordpress/380810-...post1058735707
eğer isterse zaten resizeble iframe ile rahatlıkla halledilir
forum.php olarak wp ana dizinine atılacak:
<?php
include('wp-config.php'); //wp ayar yolu
get_header();
?>
<center>
<script language="JavaScript">
<!--
function autoResize(id){
var newheight;
var newwidth;
if(document.getElementById){
newheight=document.getElementById(id).contentWindow.document .body.scrollHeight;
newwidth=document.getElementById(id).contentWindow.document .body.scrollWidth;
}
document.getElementById(id).height= (newheight) + "px";
document.getElementById(id).width= (newwidth) + "px";
}
//-->
</script>
<iframe width="96%" height="200" id="iframe1" marginheight="0" frameborder="0" onLoad="autoResize('iframe1');" src="phpbb3/index.php" scrolling="no" border="0"></iframe>
</center>
<?php get_footer(); ?>