Problems with Iframes

I just got my Esase mod for the phpbb3 intergration working and now I am working getting phpbb3 forum to look like its part of the site.

There has been a few posts about using iframes http://www.dynamicdrive.com/dynamicindex17/iframessi.htm to do this.

I was able to set up the iframe but now I cant seem to have it auto adjust. I want the forum to appear in the Iframe with out any scroll bars, is this possible?

(Right now it looks like this http://backroomgaming.com/forum.php) scroll bars needed to view the basicall the whole forum. I cant figure what I am doing wrong Im sure its something stupid on my part.

Please take a look and let me know..Thanks

Quote · 14 Feb 2009

Hi FleaTrax,

Currently i´ve got the same problem.Have you found any solution? Thank you in advance.

Best wishes,

Quote · 9 Dec 2009

FleaTrax, when you are calling your index.php file for the Forum from within the iFrame code, you can choose for it to scroll or not like this:

<iframe src="yourpage.htm" width="100%" height="885" frameborder="0" scrolling="no"></iframe>

Chris

Edited: woops, had scrolling set to yes.

Nothing to see here
Quote · 9 Dec 2009

Try this.  Create a file called 'myforum.php' or whatever you want to call it.... just make sure it's not one that already exists.  Put the following php code in the file and upload to your sites root.

Change the text in red to the directory where your forum is installed.  This works with IPB... I haven't tested it with other forums, but its worth a try.



<?php



/***************************************************************************

*                            Dolphin Smart Community Builder

*                              -----------------

*     begin                : Mon Mar 23 2006

*     copyright            : (C) 2006 BoonEx Group

*     website              : http://www.boonex.com/

* This file is part of Dolphin - Smart Community Builder

*

* Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License.

* http://creativecommons.org/licenses/by/3.0/

*

* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;

* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

* See the Creative Commons Attribution 3.0 License for more details.

* You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin,

* see license.txt file; if not, write to marketing@boonex.com

***************************************************************************/



require_once( './inc/header.inc.php' );

require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );



// --------------- page variables and login




$_page['css_name']        = 'faq.css';







// --------------- page components



$_ni = $_page['name_index'];

$_page_cont[$_ni]['page_main_code'] = PageCompPageMainCode();



// --------------- [END] page components



PageCode();



// --------------- page components functions



/**

* page code function

*/

function PageCompPageMainCode()

{
$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="/forums/" width="100%" height="100%"
scrolling="no" frameborder="0" scroll="auto" id="forumframe" marginwidth="0"
marginheight="0" ></iframe>';
return DesignBoxContent( '', $ret );

}



?>

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 9 Dec 2009

Oops.... that was for D7.

For D6: Change text in red to subdirectory your forum is in.


<?php

require_once( 'inc/header.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );

$_page['name_index'] = 200; // this is the number of the html page linked with this php file; change it as you wish
$_page['css_name'] = 'general.css'; // this is the name of the CSS file linked with the above mentioned HTML file; change it as you wish
check_logged();
$_ni = $_page['name_index'];
$_page_cont[$_ni]['page_main_code'] = PageCompMainCode();

PageCode();


function PageCompMainCode()

{
$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="forum/" width="100%" height="100%"
scrolling="no" frameborder="0" scroll="auto" id="forumframe" marginwidth="0"
marginheight="0" ></iframe>';
return DesignBoxContent( '', $ret );

}
?>

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 9 Dec 2009

 

Try this.  Create a file called 'myforum.php' or whatever you want to call it.... just make sure it's not one that already exists.  Put the following php code in the file and upload to your sites root.

Change the text in red to the directory where your forum is installed.  This works with IPB... I haven't tested it with other forums, but its worth a try.

 What else needs to be done to make this work?  I know of iframes but I'm new to using them.

 Do I create a new page in dolphin first?

I've installed a forum, modified the php code you gave and uploaded it, and I'm not sure how it all comes together.


Any help would be greatly appreciated.

 

Thanks in advance,

 

Russell =)

 

Quote · 27 Feb 2010

I just noticed the replies to this, I ended up scraping the Iframe and just creating a header in my phpbb forum that looks like my dolphin header.

The reason was google was indexing the main forum not the iframe version and made it akward to navigate. If you want to use Iframes then use create a new page in dolphin....

Also make sure to get a mod that intergrates the two, I used ESASE and it worked well.

Quote · 6 Mar 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.