1
Bassman
IFrames module
  • 2004/1/9 2:41

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


I read somewhere there was an I-Frames module? Does anyone know where I might download this?

2
Bassman
Re: IFrames module
  • 2004/1/9 9:11

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


anyone?

3
carnuke
Re: IFrames module
  • 2004/1/9 10:12

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


What would an iframe module do?? I am not aware of a module so far. Iframes/frames are considered with some suspicion by many people. Maybe you could post a little more about what you want to achieve

Have you tried simply inserting iframe tags into a custom block and treating it as html??

Richard

4
svaha
Re: IFrames module
  • 2004/1/9 10:46

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


Maybe you've read this here but I could not find this module, so it probably does not exist.

Iframes can be made like this :

Quote:




Make a html file with the above text and (in my case ) wrap it with CJay.

Aloha

5
philou
Re: IFrames module
  • 2004/1/9 12:09

  • philou

  • Quite a regular

  • Posts: 384

  • Since: 2002/5/6 8


You can use a little module I have made... called contenu.
you can fin d this
here

reda the remame.txt first of all


6
Bassman
Re: IFrames module
  • 2004/1/9 12:22

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


Thanks guys, i'll let you know how i go.

7
Bassman
Re: IFrames module
  • 2004/1/11 23:32

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


OK i'm not having much success, I guess I should fill in some details -

I'm doing a XOOPS site related to the Utopia online game. Another Utopia-related site, http://www.utopiatemple.com, offers an online "formatter" for information taken from the Utopia game, which it formats into a readable/usable form. Now, Utopiatemple also offer the code for this formatter to put on your own site. The first part, which is the input section, works great - i've put it into a custom block, no problems -

Quote:






Networth:

Genesis Server




now, my problem comes when I try to put the output into a normal XOOPS page, if I wrap it in CJaycontent, I get a page with no XOOPS blocks, header etc, just the information. Same problem with Iframes, except it's in a neat window with a scrollbar. This is the code for the output:

Quote:




If I try to wrap it in PHP, I get a parse error on line 14 (in the javascript)

I'm not smart enough to know what to do, any ideas?

8
AAINC
Re: IFrames module
  • 2004/1/12 0:20

  • AAINC

  • Not too shy to talk

  • Posts: 121

  • Since: 2003/10/18


Quote:
include("../../mainfile.php");
include("../../header.php");
//standard for module name recognition
$ModName = "My Horoscope";
?>







Daily Horoscopes



Aries Taurus Gemini Cancer Leo Virgo Libra Scorpio Sagittarius Capricorn Aquarius Pisces








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


view here:
http://archangelartifacts.com/modules/myhoroscope/

Olde version of MyHoroscope. Is example of a iFrame module. Multiple links at top opening in iFrame. Two Blocks one showing example of calling javascript in block. Other block with image links opening new window.

http://archangelartifacts.com/modules/mydownloads/singlefile.php?cid=5&lid=6

Adjust width, height and links.

AAINC

9
Bassman
Re: IFrames module
  • 2004/1/12 23:49

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


thanks AAINC

I tried your suggestion (nice module BTW!) - this is my index.php file:

Quote:

include('/data/members/free/tripod/uk/k/c/s/kcskingdom/htdocs/mainfile.php);
include(XOOPS_ROOT_PATH.'/header.php');
//standard for module name recognition
//$ModName = "My Horoscope";
?>




Utopia Angel








Networth:

Genesis Server























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


but I get a parse error:
Quote:
Parse error: parse error in /data/members/free/tripod/uk/k/c/s/kcskingdom/htdocs/modules/myhoroscope/index.php on line 38


Line 38 is Quote:

//For full source code, 100's more DHTML scripts, and TOS,


what have I missed?



10
svaha
Re: IFrames module
  • 2004/1/13 1:25

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


Only guessing, maybe you copied the above script of AAINC and something went wrong in a long line, for instance this line :
Quote:
//0 causes document to be displayed in an inline frame, while 1 in a new browser window
var displaymode=0

If a hard return is copied then you get a parse error from : var displaymode = 0

Hope this helps

Login

Who's Online

164 user(s) are online (53 user(s) are browsing Support Forums)


Members: 0


Guests: 164


more...

Donat-O-Meter

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

Latest GitHub Commits