7
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, 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:
<form method="post" action="http://www.utopiatemple.com/allinone.php">
<input type="hidden" name="src" value="siteid">
<input type="hidden" name="goto" value="http://yoursite/format.htm">
<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!">
</form>
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:
<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=siteid&rand=' + random + '"></scr'+'ipt>');
// -->
</script>
<noscript>
<font color="red">Error: JavaScript is required in order to use this formatter!</font>
</noscript>
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?