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)

<?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");
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<iframe src="https://xoops.org" name="iframe" width="100%" marginwidth="10" height="500" marginheight="10" scrolling="auto" frameborder="0">
</iframe>

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

163 user(s) are online (120 user(s) are browsing Support Forums)


Members: 1


Guests: 162


heyula,

more...

Donat-O-Meter

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

Latest GitHub Commits