naike Posted February 13, 2011 Share Posted February 13, 2011 Hello. I've asked around in many places now, and I thought I'd ask here too. A few days ago I installed phpBB3 on my site, works like a charm. I used a plugin for wordpress to integrate phpbb to wordpress, all works great. Now my problem is to embed the forum to my wordblog page. I tried using a simple iFrame solution, and it worked almost, but there's a common iFrame problem. The height, it doesn't scale with the embedded page, instead it stays as a 100px high frame with a scroll bar. I've searched google for hours now, and tried every possible javascript and css/div-tag solution I came across. Nothing works. Are there any alternatives to this? I tried using <?php include('../phpBB3/index.php') ?> But I get errors. It might be because I'm including from another directory, so it might be worth giving a try to give the direct path somehow, but how? Anyway, are there any other solutions for this problem? Link to comment https://forums.phpfreaks.com/topic/227547-embedding-webpages-iframe-alternative/ Share on other sites More sharing options...
naike Posted February 14, 2011 Author Share Posted February 14, 2011 Anyone? Link to comment https://forums.phpfreaks.com/topic/227547-embedding-webpages-iframe-alternative/#findComment-1174078 Share on other sites More sharing options...
BlueSkyIS Posted February 14, 2011 Share Posted February 14, 2011 But I get errors. like "the code is bad so the server is exploding" errors? or something different? Link to comment https://forums.phpfreaks.com/topic/227547-embedding-webpages-iframe-alternative/#findComment-1174081 Share on other sites More sharing options...
naike Posted February 14, 2011 Author Share Posted February 14, 2011 I said it might be because I'm not pointing the file's location correctly, and I asked how to do this. My blog is in the server root directory, and the file I need to include is from /phpbb3/index.php, I tried using that path, but it didn't work. One other reason might be that the code is actually executed from the blog plugin which enables php scripting. However, I tried creating a blog template (a template how the page renders, I tried including the index.php there) including the file and I got the same error again. Wont this piece of code: <?php include('../phpBB3/index.php') ?> "begin" the path from the server root folder? If it is so then I guess it just doesn't work with the blog application, are there any other ways I could do this? Link to comment https://forums.phpfreaks.com/topic/227547-embedding-webpages-iframe-alternative/#findComment-1174090 Share on other sites More sharing options...
BlueSkyIS Posted February 14, 2011 Share Posted February 14, 2011 and I got the same error again. and the error is.......? maybe you need <?php include($_SERVER['DOCUMENT_ROOT'].'/phpBB3/index.php') ?> but knowing the actual error would be a huge help. Link to comment https://forums.phpfreaks.com/topic/227547-embedding-webpages-iframe-alternative/#findComment-1174144 Share on other sites More sharing options...
naike Posted February 14, 2011 Author Share Posted February 14, 2011 Hey. That's what I was looking for, however that didn't work like I would've expected it to. Warning I'm getting: Warning: include(D:/Web Project/xampp/htdocs/phpBB3/index.php) [function.include]: failed to open stream: No such file or directory in D:\Web Project\xampp\htdocs\wp-content\plugins\exec-php\includes\runtime.php(42) : eval()’d code on line 1 Warning: include() [function.include]: Failed opening ‘D:/Web Project/xampp/htdocs/phpBB3/index.php’ for inclusion (include_path=’.:\Web Project\xampp\php\PEAR’) in D:\Web Project\xampp\htdocs\wp-content\plugins\exec-php\includes\runtime.php(42) : eval()’d code on line 1 The error is pointing to the php pluging I'm using for my blog. I will now try to include the php directly into a php file, wait for my edit. Warning: include(./common.php) [function.include]: failed to open stream: No such file or directory in D:\Web Project\xampp\htdocs\phpBB3\index.php on line 20 Warning: include() [function.include]: Failed opening './common.php' for inclusion (include_path='.:\Web Project\xampp\php\PEAR') in D:\Web Project\xampp\htdocs\phpBB3\index.php on line 20 Warning: include(./includes/functions_display.php) [function.include]: failed to open stream: No such file or directory in D:\Web Project\xampp\htdocs\phpBB3\index.php on line 21 Warning: include() [function.include]: Failed opening './includes/functions_display.php' for inclusion (include_path='.:\Web Project\xampp\php\PEAR') in D:\Web Project\xampp\htdocs\phpBB3\index.php on line 21 Fatal error: Call to a member function session_begin() on a non-object in D:\Web Project\xampp\htdocs\phpBB3\index.php on line 24 Didn't work either, apparently it's failing to open the file, is there any other way of including a webpage in the style that iframe does? Link to comment https://forums.phpfreaks.com/topic/227547-embedding-webpages-iframe-alternative/#findComment-1174181 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.