Hello evry one i will try to describe to add new age to dolphin with iframe
- Copy caht.php save as forum.php (your new page) you can copy other pages but chat.php is have simle codes and esy to modify
- find [$_page['name_index'] = 57;] change 57 to 61 it is your template page () we chose number 61 there is no other page numbered 61 you can choose any number also
- find and delete [$_page['css_name'] = 'ray_chat.css';]
- find and replace [_t( "_RAY_CHAT" );] with [_t( "_Forum" );] ->dont forget to add language key "_Forum"
- now goto [PageCompMainCode()] function delete all codes from function and paste this code [ $ret = '
<script language="JavaScript">
function iFrameHeight() {
//find the height of the internal page
var the_height=
document.getElementById(\'forumframe\').contentWindow.
document.body.scrollHeight;
//change the height of the iframe
document.getElementById(\'forumframe\').height=
the_height;
}
</script>
<iframe onLoad="iFrameHeight();" src="phpBB3/index.php" width="100%" height="100%"
scrolling="no" frameborder="0" scroll="auto" id="forumframe" marginwidth="0"
marginheight="0" ></iframe>';
return DesignBoxContent( '', $ret ); ]
- goto your template directory create page_61.html
- paste this code in your page_61.html page [ __include _header.html__
__page_main_code__
__include _footer.html__ ] - now create new menu iten to your new page add your link forum.php in new menu
- thats all
thanks to this page or this script owner (resizing iframe javascript code)
http://guymal.com/mycode/iframe_size/
thanks every one