11
Bassman
Re: IFrames module
  • 2004/1/13 2:27

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


No good, I tried that and it makes no difference :( thanks anyhow

12
AAINC
Re: IFrames module
  • 2004/1/13 3:17

  • AAINC

  • Not too shy to talk

  • Posts: 121

  • Since: 2003/10/18


Hello,
Can you get this mainfile.php?

include('/data/members/free/tripod/uk/k/c/s/kcskingdom/htdocs/mainfile.php);

This format.htm?
http://members.lycos.co.uk/kcskingdom/modules/cjaycontent/content/format.htm

This allinone.php?
http://www.utopiatemple.com/allinone.php

This poor script does not know if it is coming or going.
Please take no offense, I believe you are going the long way around.

If you can get all these files, put them in the module folder and call them that way.

I would make the form (form.php)its own page within the module, being the first page called into the iFrame. The mainfile you put in an include folder in the module folder and call it from there. Not real sure bout format and allinone, probably just go in module folder so that can be called in iframe.

You only need to open iframe you do not need the iframe links code (javascript). That just a neat little javascript to open links WITHIN an iframe. So all that code that in within the myhoroscope index.php is useless and confusing your code.

That is without looking at the three files mentioned above. I am guessing that you could combine some of the code in above three files and compact it.

Any chance of getting access to to the above files?
It would be best to not even use iframe but actually make new module.

My ebay beta is a javascript run module. It is pulling from ebay and comission junction.
http://archangelartifacts.com/modules/ebay/


AAINC

13
Bassman
Re: IFrames module
  • 2004/1/13 4:05

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


I see your point. I guess i'm going to have to do some more messing around.
Thanks so much for your help anyhow :o)

14
Bassman
Re: IFrames module
  • 2004/1/14 22:38

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


OK I did as you suggested and made a module. It installed ok but when I entered the information into the "formatter" I get a "You do not have permission to access this area" page.

The structure of the module is:
index.php
Quote:
<?php
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 = "UtopiaAngel";
?>
<table width="100%" align="center" >
<tr>
<td align="center"><big><strong>Utopia Angel Formatter</strong></big><br>
<br>
<!-- Instructions to go in here-->
</tr>
<tr>
<td>
<?php
include(XOOPS_ROOT_PATH."/footer.php");


xoops_version.php
Quote:
<?php
$modversion['name'] = _MI_UTOPIAANGEL_NAME;
$modversion['version'] = .01;
$modversion['description'] = _MI_UTOPIAANGEL_DESC;
$modversion['credits'] = "";
$modversion['author'] = "Bassman";
$modversion['help'] = "";
$modversion['license'] = "GPL see LICENSE";
$modversion['official'] = "no";
$modversion['image'] = "images/angeladmin.jpg";
$modversion['dirname'] = "angel";
// Blocks
$modversion['blocks'][1]['file'] = "format.php";
$modversion['blocks'][1]['name'] = _MI_UTOPIAANGEL_BNAME1;
$modversion['blocks'][1]['description'] = "Utopia Angel";
$modversion['blocks'][1]['show_func'] = "b_angel_show";

//Admin things
$modversion['hasAdmin'] = 0;
$modversion['adminmenu'] = "";

// Menu
$modversion['hasMain'] = 1;

?>


images folder, with the admin image inside

Blocks folder:
format.php (currently not working, but I am using a custom block that does the same thing)
Quote:
<?
function b_angel_show() {
global $xoopsConfig, $xoopsTheme;
$block['title'] = _MB_UTOPIAANGEL_TITLE1;
$block['content'] ="<div align='center'>
<br>
<TABLE align='center'>
<TR><TD>
<center>
<form method="post" action="http://www.utopiatemple.com/allinone.php">
<input type="hidden" name="src" value="kcskingdom">
<input type="hidden" name="goto" value="http://members.lycos.co.uk/kcskingdom/modules/angel/formatted.php">
<textarea name="data"></textarea><br>
Networth: <input type="text" name="netw" size="8" maxlength="10"><br>
<input type="checkbox" name="genesis" value="1"> Genesis Server<br>
<input type="submit" value="Format!">

<input type="hidden" name="color_header" value="#FFEECC">
<input type="hidden" name="color_field" value="silver">
<input type="hidden" name="color_value" value="lightcyan">
<input type="hidden" name="color_intrakd" value="orange">
<input type="hidden" name="color_defend" value="#FF7777">
<input type="hidden" name="color_attack" value="lightgreen">
<input type="hidden" name="color_relations" value="white">
<input type="hidden" name="color_dragon" value="lemonchiffon">
<input type="hidden" name="color_death" value="gray">
<input type="hidden" name="color_aid" value="powderblue">
<input type="hidden" name="color_sep" value="gray">
<input type="hidden" name="color_hide" value="black">
<input type="hidden" name="color_error" value="red">
</form>
</center>
</TD></TR>
</TABLE>
<br>
</div>
";
return $block;
}
?>


language/english folder, with the following files:

blocks.php
Quote:

<?php

// Blocks
define("_MB_UTOPIAANGEL_TITLE1","Uopia Angel");
?>


modinfo.php
Quote:

<?php

// Module Info

// The name of this module
define("_MI_UTOPIAANGEL_NAME","Utopia Angel");

// A brief description of this module
define("_MI_UTOPIAANGEL_DESC","Utopia Angel Formatter.");

// Names of blocks for this module (Not all module has blocks)
define("_MI_UTOPIAANGEL_BNAME1","Utopia Angel");
?>


also in the module root folder is formatted.php, where the output of the formatter goes....

Quote:

<?php
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 = "UtopiaAngel";
?>
<script language="javascript">
<!--
var random = new Number (Math.floor (99999999 * Math.random ()) + 1);
document.write ('<scr'+'ipt language="javascript" src="http://www.utopiatemple.com/allinone.php?show=kcskingdom&rand=' + random + '"></scr'+'ipt>');
// -->
</script>
<noscript>
<font color="red">Error: JavaScript is required in order to use this formatter!</font>
</noscript>


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


I can't understand why i'm getting the "You do not have permission to access this page" page?




15
Bassman
Re: IFrames module
  • 2004/1/15 0:58

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


I CHMOD'd everything in the folder to 777, in case you were wondering...

16
eikke
Re: IFrames module
  • 2004/1/15 10:34

  • eikke

  • Just popping in

  • Posts: 40

  • Since: 2004/1/15


Ive got a quick hacked IFrame module on my site. Altough currently I have one problem: it's not 100% right in Internet Explorer (it is in Firebird), and if the text of the page inside the frame is broader than the width of the iframe, the text is partially invisible. I'd want it to be wrapped, but didnt figure out yet how to get that.
The height is adapted automatically to the height of the page inside the frame.
Check it out on eikke.com, the 'CVS' module.

17
Bassman
Re: IFrames module
  • 2004/1/15 21:49

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


I actually got it working, sort of, by adapting my code above to include an inline frame, but it still doesn't work right. I think the "You do not have permission to access this page" message would stem from the fact that the script that does the actual formatting is on another site and is attempting to access my site.


Hmmmm.......

18
domineaux
Re: IFrames module
  • 2004/1/24 16:25

  • domineaux

  • Quite a regular

  • Posts: 389

  • Since: 2002/9/29


I downloaded the Module Conenu and couldn't find a readme.

Where can I acquire an english install instructions?

------------------

19
king76
Re: IFrames module
  • 2004/2/26 7:50

  • king76

  • Just popping in

  • Posts: 93

  • Since: 2003/1/15


Hello,

If I can to help you, you can find "MyIframe's module" here :
MyIframe on XM
(sorry but you must register on this website), so if You want i can to send you the file.

MyIframe is as "My Horoscope"

@+

Login

Who's Online

147 user(s) are online (93 user(s) are browsing Support Forums)


Members: 0


Guests: 147


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