Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
StalkS
Hangin' Around



Joined: Oct 04, 2003
Posts: 35

PostPosted: Sat Oct 04, 2003 9:47 am Reply with quote

Hi Raven, With the help of one of your threads I managed to create a block that would display a Sega Master System emulator on my homepage. The problem being the script calls for the javafile and the games directory to be located in the in the same place as the original script (html/blocks or could it be html?) Having tried to drop these files in both directories the block is still unable to call up the information. So I'm hoping the WHEREDOC command will be able to help! Is there any chance you could explain how to use it, to get my block to reference the correct files? I'd really appreciate it as your last thread was a really interesting learning experience!!

My block code looks as follows:

<?
$content = <<<_ANYHTMLCODE_
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
WIDTH = 256 HEIGHT = 233 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
<PARAM NAME = CODE VALUE = "JavaGearApplet.class" >
<PARAM NAME = ARCHIVE VALUE = "JavaGear.jar" >

<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
<PARAM NAME="scriptable" VALUE="false">
<COMMENT>
<EMBED type="application/x-java-applet;version=1.3" CODE = "JavaGearApplet.class" ARCHIVE = "JavaGear.jar" WIDTH = 256 HEIGHT = 233 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED></COMMENT>

</NOEMBED></EMBED>
</OBJECT>
_ANYHTMLCODE_;
?>


The java file it needs to reference is called 'JavaGear.jar' & a folder called 'Roms' with a file inside called 'index.txt'


Any words of advice would be greatly appreciated.


Thanks


StalkS

(You can see the block at my website http://www.retrovault.com )
 
View user's profile Send private message
fury
Worker
Worker



Joined: Sep 09, 2003
Posts: 165

PostPosted: Sat Oct 04, 2003 9:54 am Reply with quote

1 thing i see is that if your nuke isnt in the same directory as root that may be causing your problems you may need to set your path for the java script you intend to use
Before
Code:
<PARAM NAME = CODE VALUE = "JavaGearApplet.class" > 

<PARAM NAME = ARCHIVE VALUE = "JavaGear.jar" >

After
Code:
<PARAM NAME = CODE VALUE = "http://yourdomain.com/JavaGearApplet.class" > 

<PARAM NAME = ARCHIVE VALUE = "http://yourdomain.com/JavaGear.jar" >

but i may be shooting in the dark
Thanks
Fury
 
View user's profile Send private message
StalkS







PostPosted: Sat Oct 04, 2003 10:21 am Reply with quote

Thankyou Very Much Fury!! That's got the applet to appear in my Block! Smile (@ the bottom of my site) The only problem i've got now is that script is still not seeing the 'Roms' folder. Which is meant to be in the same location as 'JavaGear.jar. Would you be able to help me modify the script to point to this folder as well?


Many Thanks


StalkS
 
fury







PostPosted: Sat Oct 04, 2003 10:56 am Reply with quote

i can try let me look at it for a bit and get back to you
Thanks
Fury
 
fury







PostPosted: Sat Oct 04, 2003 10:58 am Reply with quote

can you send me the link for the block or the script itself
thanks
Fury
 
StalkS







PostPosted: Sat Oct 04, 2003 11:00 am Reply with quote

Hey No need to worry Fury!! Just a silly mistake my end!! Thank you so much for your time! It's looks really good!!


StalkS


Last edited by StalkS on Sat Oct 04, 2003 11:21 am; edited 1 time in total 
fury







PostPosted: Sat Oct 04, 2003 11:15 am Reply with quote

Great glad to help
Thanks
Fury
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©