» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 54
0 members and 54 guests
No Members online
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
buy Rimonabant - Help dieters achieve significant weight loss without having to slog in the gym

Register Now! Contact Us

About this Page
This is a discussion on Creating module with java applet within the Nuke 7.x - Modules forums, part of the PHP-Nuke 7.x category; So I've read the HOW-TO on creating a module with html in it. I have successfully created one ...



Go Back   Nukemods Forum » PHP-Nuke 7.x » Nuke 7.x - Modules

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-10-2004, 10:24 AM
Junior Member
 
Join Date: Mar 2003
Location: Austin, TX
Posts: 130
Send a message via ICQ to MurphDog Send a message via AIM to MurphDog Send a message via MSN to MurphDog Send a message via Yahoo to MurphDog
Creating module with java applet
So I've read the HOW-TO on creating a module with html in it.
I have successfully created one with an Iframe but thats not the way I want to do it.

Per section 21.5 ( http://www.nukecops.com/PHP-Nuke_inc...in-module.html )
1. I created a module using this method and all I got was a blank white page
Code:
OpenTable();
include("path/to/the/html/file"); // <-- CHANGE THIS!
CloseTable();
2. I then created the module using the alternative way, but all I got was the applet showing up (within the table) and there was no header footer or left blocks showing up.
Code:
 OpenTable();
?>
PUT YOUR HTML CODE HERE, WHATEVER COMES BETWEEN THE <html> AND </html>
TAGS OF YOUR HTML FILE
<?php
CloseTable();
Note: I didn't include all of the code here because I didnt' want to put too much on this post..

I posted about this here and what he can see is what I should be seeing, but it sure is complicated...

Any suggestions?
Summary:
1. my home win2k machine can see the applet correctly without the header, footer, and left blocks
2. my home winXP machine see's the applet window but for some reason gets a parse error. I also see no header, footer, and left blocks.
3. my work XP machine see's the same as above, but no applet window.
4. my work 2k machine see's the same as above, but no applet window.
5. All machines see the form buttons just fine.
6. Work computers have limited permisions, ie activeX disabled, etc...

If you would like to see the output, I have linked directly to the module here
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-10-2004, 01:46 PM
Moderator
 
Join Date: Nov 2002
Location: Belgium
Posts: 957
make sure you have added include("header.php"); at the top and include("footer.php"); at the bottom of the page otherwise the header and footer won't show up
__________________
Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-11-2004, 10:49 PM
Junior Member
 
Join Date: Mar 2003
Location: Austin, TX
Posts: 130
Send a message via ICQ to MurphDog Send a message via AIM to MurphDog Send a message via MSN to MurphDog Send a message via Yahoo to MurphDog
Here is the code that I have been using. It includes what you mentioned.
Code:
<?php 
/*************************************************************************/ 
/* PHP-NUKE: Web Portal System                            */ 
/* ===========================                               */ 
/*                                              */ 
/* PHP-Nuke-Genealogy module for PHP-Nuke                            */ 
/*                                     */ 
/* Copyright (c) 2004 index.php                         */ 
/* by Murphy Kling                              */ 
/* http://www.murphykling.com                         */ 
/*                                     */ 
/* See licence.html for the Licence of the other files                   */ 
/* distributed together with this index.php file.                      */ 
/*                                     */ 
/* This program is free software. You can redistribute it and/or modify             */ 
/* it under the terms of the GNU General Public License as published by          */ 
/* the Free Software Foundation; either version 2 of the License.             */ 
/*************************************************************************/ 
if (!eregi("modules.php", $PHP_SELF)) { 
die ("You can't access this file directly..."); 
} $index = 0; // 0 : do not show right blocks - 1:show right blocks 
require_once("mainfile.php"); 
$module_name = basename(dirname(__FILE__)); 
include("header.php"); 
OpenTable(); 
?> 
<table width="100%" border="0" cellspacing="0" cellpadding="5"> 
  <tr> 
    <td> 
    
        <table width="100%" border="0" cellspacing="0" cellpadding="0"> 
<tr> 
   <td width="50" align="right" valign="bottom">[img]../../themes/Helius/images/top_left.gif[/img]</td> 
   <td width="100%" align="center" valign="middle" background="../../themes/Helius/images/top_center.gif"></td> 
   <td width="50" align="left" valign="bottom">[img]../../themes/Helius/images/top_right.gif[/img]</td> 
</tr> 
</table> 

    <table width="100%" border="0" cellspacing="0" cellpadding="0"> 
     <tr> 
     <td bgcolor="#006699"> 
     <table width="100%" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td bgcolor="#525E6E"> 
       <table width="100%" border="0" cellspacing="1" cellpadding="0"> 
        <tr> 
         <td bgcolor="#EAEDF4"> 
         <table width="100%" border="0" cellspacing="0" cellpadding="4"> 
          <tr> 
           <td> 
<form name="InPageForm"> 
                                <div align="center"> 
                                  <input type=button value="Find Person"         onClick="document.InPageTree.find()"> 
                                  <input type=button value="Zoom In"             onClick="document.InPageTree.zoomIn()"> 
                                  <input type=button value="Zoom Out"            onClick="document.InPageTree.zoomOut()"> 
                                  <input type=button value="Center Tree (home)"  onClick="document.InPageTree.home()"> 
                                  <input type=button value="Make Primary"       onClick="document.InPageTree.setPrimary()"> 
                                  <input type=button value="Back"                onClick="document.InPageTree.back()"> 
                                  <input type=button value="Forward"             onClick="document.InPageTree.forward()"> 
                                </div> 
                              </form> 
                              <div align="center"> 
                                <APPLET code     = "zaluc.geneo.Geneo.class" 
        codebase = "http://familytreemaker.genealogy.com/java/geneo2" 
        archive  = "geneo.jar" 
        name     = "InPageTree" 
        width    = "600" 
        height   = "360"> 
                                  <PARAM name="Source"          value="http://familytreemaker.genealogy.com/users/k/l/i/Murphy-L-Kling/TREE/0001tree.gen"> 
                                  <PARAM name="Width"           value="600"> 
                                  <PARAM name="Height"          value="360"> 
                                  <PARAM name="Background"      value="006699"> 
                                  <PARAM name="BkgImgLayout"    value="1"> 
                                  <PARAM name="BorderWidth"     value="2"> 
                                  <PARAM name="PBoxBorderWidth" value="1"> 
                                  <PARAM name="PeopleBoxBkg"    value="EAEDF4"> 
                                  <PARAM name="HtmlTarget"       value="_blank"> 
                                  <PARAM name="EmbedInPage"     value="true"> 
                                  <PARAM name="HelpUrl"       value="http://www.theklings.net/modules.php?name=FAQ&myfaq=yes&id_cat=1&categories=InterneTree+Help"> 
                                </APPLET> 
                              </div></td> 
          </tr> 
         </table> 
        </td> 
      </tr> 
    </table> 
   </td> 
   </tr> 
  </table> 
  </td> 
  </tr> 
</table> 

<table border="0" cellspacing="0" cellpadding="0" width="100%"> 
<tr> 
   <td width="40" align="right" valign="top">[img]../../themes/Helius/forums/images/bottom_left.gif[/img]</td> 
   <td width="100%" background="../../themes/Helius/forums/images/bottom_center.gif">[img]../../themes/Helius/forums/images/spacer.gif[/img]</td> 
   <td width="40" align="left" valign="top">[img]../../themes/Helius/forums/images/bottom_right.gif[/img]</td> 
</tr> 
</table> 

</td> 
  </tr> 
</table> 

<?php 
CloseTable(); 
include("footer.php"); 
?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-12-2004, 10:37 AM
Moderator
 
Join Date: Nov 2002
Location: Belgium
Posts: 957
I used this file you provided on my test 7.2 nuke installation and there were no errors and iet worked like it should.
__________________
Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-12-2004, 11:49 AM
Junior Member
 
Join Date: Mar 2003
Location: Austin, TX
Posts: 130
Send a message via ICQ to MurphDog Send a message via AIM to MurphDog Send a message via MSN to MurphDog Send a message via Yahoo to MurphDog
That's what the other guy said too, Very strange :S

4 computers, 2 from home, and 2 from work don't see it correctly. I guess when I get home I'll try set the Internet Options so that I can view it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 07-12-2004, 06:32 PM
Junior Member
 
Join Date: Mar 2003
Location: Austin, TX
Posts: 130
Send a message via ICQ to MurphDog Send a message via AIM to MurphDog Send a message via MSN to MurphDog Send a message via Yahoo to MurphDog
So I'm at home now, and I changed all my internet options to medium low. There is no change

BTW, I'm using Nuke 7.3, patched
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 07-12-2004, 08:32 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
Could it be related to Windows Java Virtual Machine?

Sun Java used to have the Download for JVM for viewing Java on the net. I believe they still have it on their site.
I also know that the JVM is now included in WinXP service pack1, but I'm not sure what would cause your Win2k machine to not see it unless it possibly does not have JVM loaded as well.

I'm not sure how up to date this guy's site is but, maybe a good read and info.
http://www.java-virtual-machine.net/download.html
Close the pop up.... :roll:

He says that Java is not included with Microsoft due to a legal battle still, but I thought I read where it was now included in WinXP-SP1.
Worth some investigating since your module is using java... :wink:

Also, I tried your link in your post here and the Java works great for me
http://www.theklings.net/modules/Genealogy/index.html
However, I have JVM loaded on my WIN XP machine. :roll:

more points to ponder...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 07-12-2004, 10:26 PM
Junior Member
 
Join Date: Mar 2003
Location: Austin, TX
Posts: 130
Send a message via ICQ to MurphDog Send a message via AIM to MurphDog Send a message via MSN to MurphDog Send a message via Yahoo to MurphDog
On my XP machine here at home, I kepp getting parse errors. So I uninstalled the 1.50 beta version of java I was using, and decided to reinstall the current working release java.com has. Anyway, I still get the parse error.

This is the issue i'm not too worried about at this time however. I would rather focus on the reason why I can't view the header, footer, and left blocks. Do you really think the java would have something to do with that? Same Output with the 2k machine here.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
creating module aa_sauron Nuke 7.x - General 5 11-30-2006 02:08 PM
Content Module - Can I use php when creating the pages? RandomBoy Nuke 7.x - General 0 03-29-2006 02:38 AM
Having a minor issue creating a module kabilos Nuke 7.x - Modules 11 01-05-2006 10:52 PM
Creating a New Module WaRRioR2050 Nuke 7.x - Modules 0 11-25-2005 09:04 PM
Creating a database driven Module paycheck Purged Topics 0 06-18-2003 03:09 AM


All times are GMT -5. The time now is 08:29 PM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31