1
EricHendrix
iframes question

Hello,

I am trying to display an outside URL in a frame inside XOOPS 2.4.
I have the iframes mod installed and it appears to start to work then the page jumps out to display in a new page all by it's self.

Do I need iframes or is there a way of having it display in a block?

Is there another option?

I also have the masTop Publish mod and do not see how to do it there either.

Corn-fused,
Eric Hendrix

2
hipoonios
Re: iframes question
  • 2010/1/29 22:50

  • hipoonios

  • Friend of XOOPS

  • Posts: 298

  • Since: 2005/9/24


The Iframe module seem to have some problems with XOOPS 2.4.

But You don't have to use a module to include iframes on your site.

Created a new file, save it as myiframe.php and put it in your root directory and run it (mysite.com/myiframe.php)

if (file_exists("mainfile.php")) {
    include(
"mainfile.php");
}
elseif(
file_exists("../mainfile.php")) {
    include(
"../mainfile.php");
}
else {
    include(
"../../mainfile.php");
}
include(
XOOPS_ROOT_PATH "/header.php");
$xoopsTpl->assign('xoops_showrblock'1); // 1 display right blocks
$xoopsTpl->assign('xoops_showlblock'1); // 1 display right blocks 
$xoopsTpl->assign('xoops_pagetitle'"MyIframe");
?>







include(XOOPS_ROOT_PATH "/footer.php");
?>


edit: found this. Another guy with the same problem. But no fix So better use the code posted above.

3
EricHendrix
Re: iframes question

Dude! You are the master!

I kneel before you with a respectful bow of my head.
May I rise?

That worked perfectly!

Seriously, may I rise? LOL



Thank you,
Eric

Login

Who's Online

626 user(s) are online (311 user(s) are browsing Support Forums)


Members: 0


Guests: 626


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits