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
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?

Link to comment
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.