alright i have spent the last couple days trying everything i could think of to get this thing to run and i am too newbish to make it work. Here is the issue... i am trying to incorporate a completed .cgi into drupal. I have all of the administrative menu's working correctly and everything else is working however if i try to execute the cgi i ether get a errors or b it doesn't show up as working. I have chmodded the files 755 to allow execute and they work just fine if you use a direct link however the intention is to have it run in a drupal page instead of on its own.
/**
* Menu callback; displays a Drupal page CGIIRC chatroom.
*/
function cgiirc_page() {
// $result = exec("http://files.downfallguild.org/demo/modules/cgiirc/cgiirc/irc.cgi < $user->name >&1");
// print($result);
echo @join (@file ("http://files.downfallguild.org/demo/modules/cgiirc/cgiirc/irc.cgi"),"");
// $cgiirc_nick = $user->uid ? $user->name : variable_get('cgiirc_nick','Guest');
// $cgiirc_server = variable_get('cgiirc_server','');
// $cgiirc_room = variable_get('cgiirc_room','');
// $output = "<div align=\"center\">\n";
//$output .= "<iframe src="http://files.downfallguild.org/demo/modules/cgiirc/cgiirc/irc.cgi" width="500" height="400">";
// $output .= "<script type="text/javascript" language="JavaScript" src="http://files.downfallguild.org/demo/modules/cgiirc/cgiirc/irc.cgi">";
// $output .= "</script>";
//$output .= "<br /><br />You can also connect using any IRC client (such as <a href=\"http://www.mirc.com/\">MIRC</a>) using the following:<br />\n";
// $output .= "HOST: ".$cgiirc_server."\n";
// $output .= "CHANNEL: ".$cgiirc_room."\n";
// $output .= "</div>\n";
//print theme('page', $output);
}
that is what i have so far you can see that i have tried several different methods to get it to work yet however muhc i try it doesn't work. any help would be appreciated
thanks
Comments
i should also note that i
i should also note that i have commented out those lines to try to get things working obviously the last one i tried was that echo
well i got it all working
well i got it all working and the new project will be uploaded and filed under cgiirc here shortly :)
Any tutorials on how to get cgiirc working in Drupal?
Hey frollo,
I just found this cgiirc module and successfully installed it in Drupal and configured it for my irc server... but how do I implement the actual chat page? Do I need to install some other cgi code on the server? Or is it as simple as creating a new page in Drupal and plugging in some html?
I want to embed an IRC page into the Mozilla QA portal at http://quality.mozilla.org. I'm the QA community lead and think this module will be a great way to make it easier for our community members to get on IRC to work on the Mozilla project.
Any help is appreciated. Thanks!
- Jay
jay sorry it took so long to
jay sorry it took so long to find this (if it were posted under the issues i would have found it earlier) however i am sure there is a new version from the last time you installed. All information is located in the readme associated with the module if you need any more help pls contact me via fr0ll0@hotmail.com or join the test irc server like you did before. But please don't hesitate to contact me as i will do whatever it takes to get this working on your end