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
dark-dude
Worker
Worker



Joined: Jun 29, 2003
Posts: 146
Location: Oklahoma

PostPosted: Sat Aug 21, 2004 6:36 am Reply with quote

Ok here is my problem. I have this irc java client i am trying to use with phpnuke. I used the HTML to PHP converter cause the html werks. But when I converted it, it don't work. Here is what I have.
Code:
<?php

#### Generated by Html to PHP converter By Disipal Site (www.disipal.net) ####


echo"<html>"
  . "<head>"
  . "<title>ALL4IRC Applet Chat</title>"
  . "</head>"
  . "<body><center>"
  . "<h1>ALL4IRC Chat Applet</h1><hr>"
  . "<applet code=IRCApplet.class archive=\"irc.jar,pixx.jar\" width=800 height=400>"
  . "<param name=\"CABINETS\" value=\"irc.cab,securedirc.cab,pixx.cab\">"
  . ""
  . "<param name=\"nick\" value=\"Anonymous\">"
  . "<param name=\"alternatenick\" value=\"Java\">"
  . "<param name=\"name\" value=\"Java User\">"
  . "<param name=\"host\" value=\"irc.all4irc.org\">"
  . "<param name=\"gui\" value=\"pixx\">"
  . ""
  . "<param name=\"quitmessage\" value=\"ALL4IRC forever!\">"
  . "<param name=\"asl\" value=\"true\">"
  . "<param name=\"useinfo\" value=\"true\">"
  . ""
  . "<param name=\"style:bitmapsmileys\" value=\"true\">"
  . "<param name=\"style:smiley1\" value=\":) img/sourire.gif\">"
  . "<param name=\"style:smiley2\" value=\":-) img/sourire.gif\">"
  . "<param name=\"style:smiley3\" value=\":-D img/content.gif\">"
  . "<param name=\"style:smiley4\" value=\":d img/content.gif\">"
  . "<param name=\"style:smiley5\" value=\":-O img/OH-2.gif\">"
  . "<param name=\"style:smiley6\" value=\":o img/OH-1.gif\">"
  . "<param name=\"style:smiley7\" value=\":-P img/langue.gif\">"
  . "<param name=\"style:smiley8\" value=\":p img/langue.gif\">"
  . "<param name=\"style:smiley9\" value=\";-) img/clin-oeuil.gif\">"
  . "<param name=\"style:smiley10\" value=\";) img/clin-oeuil.gif\">"
  . "<param name=\"style:smiley11\" value=\":-( img/triste.gif\">"
  . "<param name=\"style:smiley12\" value=\":( img/triste.gif\">"
  . "<param name=\"style:smiley13\" value=\":-| img/OH-3.gif\">"
  . "<param name=\"style:smiley14\" value=\":| img/OH-3.gif\">"
  . "<param name=\"style:smiley15\" value=\":'( img/pleure.gif\">"
  . "<param name=\"style:smiley16\" value=\":$ img/rouge.gif\">"
  . "<param name=\"style:smiley17\" value=\":-$ img/rouge.gif\">"
  . "<param name=\"style:smiley18\" value=\"(H) img/cool.gif\">"
  . "<param name=\"style:smiley19\" value=\"(h) img/cool.gif\">"
  . "<param name=\"style:smiley20\" value=\":-@ img/enerve1.gif\">"
  . "<param name=\"style:smiley21\" value=\":@ img/enerve2.gif\">"
  . "<param name=\"style:smiley22\" value=\":-S img/roll-eyes.gif\">"
  . "<param name=\"style:smiley23\" value=\":s img/roll-eyes.gif\">"
  . "<param name=\"style:backgroundimage\" value=\"true\">"
  . "<param name=\"style:backgroundimage1\" value=\"all all 0 background.gif\">"
  . "<param name=\"style:sourcefontrule1\" value=\"all all Serif 12\">"
  . "<param name=\"style:floatingasl\" value=\"true\">"
  . ""
  . "<param name=\"pixx:timestamp\" value=\"true\">"
  . "<param name=\"pixx:highlight\" value=\"true\">"
  . "<param name=\"pixx:highlightnick\" value=\"true\">"
  . "<param name=\"pixx:nickfield\" value=\"true\">"
  . "<param name=\"pixx:styleselector\" value=\"true\">"
  . "<param name=\"pixx:setfontonstyle\" value=\"true\">"
  . ""
  . "</applet></center>"
  . ""
  . "<hr></body>"
  . "</html>"
 ."";

?>


But it says that the applet can't be initiated. Any ideas?

_________________
DaRk-DuDe 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Sat Aug 21, 2004 7:05 am Reply with quote

I spose its not finding the jar files then? Are they in the nuke root directory if not I'd try that.

_________________
[b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 
View user's profile Send private message
dark-dude







PostPosted: Sat Aug 21, 2004 8:34 am Reply with quote

yea its findin em they are in same folder i suppose :/ RavensScripts
 
sixonetonoffun







PostPosted: Sat Aug 21, 2004 9:22 am Reply with quote

Ok help me out here a little how/where are you displaying this in a block or module ect...
 
dark-dude







PostPosted: Sat Aug 21, 2004 4:33 pm Reply with quote

module...right now i have this:
Code:


<?php


if (!eregi("modules.php", $PHP_SELF)) {
   die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
$pagetitle = "- ".CHAT."";
global $user, $cookie, $prefix, $dbi, $user_prefix, $module_name;
include ("header.php");

    OpenTable();
echo "<center>";
echo "<applet code=IRCApplet.class archive=\"irc.jar,pixx.jar\" width=800 height=400>";
echo "<param name=\"CABINETS\" value=\"irc.cab,securedirc.cab,pixx.cab\">";
echo "<param name=\"nick\" value=\"$username\">";
echo "<param name=\"alternatenick\" value=\"Anonymous\">";
echo "<param name=\"name\" value=\"Java User\">";
echo "<param name=\"host\" value=\"irc.all4irc.org\">";
echo "<param name=\"gui\" value=\"pixx\">";
echo "<param name=\"quitmessage\" value=\"ALL4IRC forever!\">";
echo "<param name=\"asl\" value=\"true\">";
echo "<param name=\"useinfo\" value=\"true\">";
echo "<param name=\"style:bitmapsmileys\" value=\"true\">";
echo "<param name=\"style:smiley1\" value=\":) img/sourire.gif\">";
echo "<param name=\"style:smiley2\" value=\":-) img/sourire.gif\">";
echo "<param name=\"style:smiley3\" value=\":-D img/content.gif\">";
echo "<param name=\"style:smiley4\" value=\":d img/content.gif\">";
echo "<param name=\"style:smiley5\" value=\":-O img/OH-2.gif\">";
echo "<param name=\"style:smiley6\" value=\":o img/OH-1.gif\">";
echo "<param name=\"style:smiley7\" value=\":-P img/langue.gif\">";
echo "<param name=\"style:smiley8\" value=\":p img/langue.gif\">";
echo "<param name=\"style:smiley9\" value=\";-) img/clin-oeuil.gif\">";
echo "<param name=\"style:smiley10\" value=\";) img/clin-oeuil.gif\">";
echo "<param name=\"style:smiley11\" value=\":-( img/triste.gif\">";
echo "<param name=\"style:smiley12\" value=\":( img/triste.gif\">";
echo "<param name=\"style:smiley13\" value=\":-| img/OH-3.gif\">";
echo "<param name=\"style:smiley14\" value=\":| img/OH-3.gif\">";
echo "<param name=\"style:smiley15\" value=\":'( img/pleure.gif\">";
echo "<param name=\"style:smiley16\" value=\":$ img/rouge.gif\">";
echo "<param name=\"style:smiley17\" value=\":-$ img/rouge.gif\">";
echo "<param name=\"style:smiley18\" value=\"(H) img/cool.gif\">";
echo "<param name=\"style:smiley19\" value=\"(h) img/cool.gif\">";
echo "<param name=\"style:smiley20\" value=\":-@ img/enerve1.gif\">";
echo "<param name=\"style:smiley21\" value=\":@ img/enerve2.gif\">";
echo "<param name=\"style:smiley22\" value=\":-S img/roll-eyes.gif\">";
echo "<param name=\"style:smiley23\" value=\":s img/roll-eyes.gif\">";
echo "<param name=\"style:backgroundimage\" value=\"true\">";
echo "<param name=\"style:backgroundimage1\" value=\"all all 0 background.gif\">";
echo "<param name=\"style:sourcefontrule1\" value=\"all all Serif 12\">";
echo "<param name=\"style:floatingasl\" value=\"true\">";
echo "<param name=\"pixx:timestamp\" value=\"true\">";
echo "<param name=\"pixx:highlight\" value=\"true\">";
echo "<param name=\"pixx:highlightnick\" value=\"true\">";
echo "<param name=\"pixx:nickfield\" value=\"true\">";
echo "<param name=\"pixx:styleselector\" value=\"true\">";
echo "<param name=\"pixx:setfontonstyle\" value=\"true\">";
echo "</applet>";
echo "<table border=\"0\" width=\"100%\" id=\"table1\" cellspacing=\"0\" cellpadding=\"0\">";
echo "<tr>";
echo "<td width=\"33%\"></td>";
echo "<td>";
echo "</tr>";
echo "</table>";
echo "</center>";
CloseTable();
    include ('footer.php');

/************************************************************************************/
?>

and all files in this code are in the module folder chat at dark-dude.net/modules/chat/ and it fails every time it loads :/ but if ya click on http://www.dark-dude.net/modules/Chat/index2.html it works
 
sixonetonoffun







PostPosted: Sat Aug 21, 2004 9:50 pm Reply with quote

I'd still suspect its not able to load the files because nuke forces the path to be from the nuke root and not relative to the script.

If your using the chatserv 2.5 patched files you will need to change
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}

to

if (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) {
die ("You can't access this file directly...");
}

Or this will create problems too when accessing it as a nuke module.
 
dark-dude







PostPosted: Sun Aug 22, 2004 4:50 am Reply with quote

its not a chatserv....its pjirc my own thing hehe
 
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 ©