Random Block & PHPBB2

stupiddrunk

Joined: 2002-09-17
Posts: 15
Posted: Mon, 2004-10-11 02:50

I have successfully integrated phpbb2 and gallery on my site. I am however having a little trouble getting the photo random block work with the phpbb header variables.

I am getting it to display a random photo and able to click on it to be taken to the album, but I need it to load the phpbb headers.

Here is the code on the site

<IFrame id="blockrandom1" name="blockrandom1"
onLoad="iFrameHeight(this);"
src="http://www.birdfans.com/phpbb/modules.php?op=modload&name=gallery&file=block-random&size=125&target=_top"
width="125"
height="120"
align=top scrolling=no frameborder=0>
[This feature requires IFrame.]
</IFrame>

So this works great as designed, but how do i get it to load the headers as in this link?
http://www.birdfans.com/phpbb/modules.php?op=modload&name=gallery&file=index

The IFrame tag loads the generic site, the normal link allows the phpbb header / footer to load.

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Mon, 2004-10-11 02:58

Your iframe URL is bad.

It needs to be "&file=index&include=block-random.php" not "&file=block-random"