Jump to content

Embedding webpages, iFrame alternative?


naike

Recommended Posts

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

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?

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.