View previous topic :: View next topic |
Author |
Message |
deabmanwalking -
Joined: 24 Nov 2006 Posts: 5
|
Posted: Fri Nov 24, 2006 9:36 pm Post subject: A page is not displayed |
|
|
Hi all I run a chat server which is known as Paper IRC so there is a code which is not shown by the server i don;t really know whats wrong with the server that only this page is not shown
Code: |
<?php
/*-------------------------------*/
/* */
/* PaperIRC phpBB Chatroom Addon */
/* Created by: Frappe051 */
/* Browser Detect Script (c) GCC */
/* */
/*-------------------------------*/
////////////////////////////////////////////////////
// phpBB Info ------------------------------------//
// No need to change... //
define('IN_PHPBB', true);
include('extension.inc');
include('common.php');
include('config.php');
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
if($userdata['session_logged_in'])
{
$username = $userdata[username];
} else {
$username = "Guest_1";
$userrole = "PROFILMODE0";
}
////////////////////////////////////////////////////
// Chat Control Options --------------------------//
// This stuff most likely will need to be changed //
$width = "100%"; // Width of the Chat Control
$height = "500"; // Height of the Chat Control
$roomname = "TheLobby"; // Room you would like all your users to connect to
$server = "217.164.28.22"; // IP/Host for PaperIRC
$category = "GN"; // Category your room is located in
$locale = "EN-US"; // Language settings
$profile = ""; // Still a piece of work (anybody know?)
$creation = ""; // Creation Modes
$forecolor = ""; // Forecolor for chat control
$feature = ""; // Feature (?)
$backhighlightcolor = "15585725"; // Background Highlight Color
$backcolor = "16707303"; // Background Color
$buttontextcolor = "16579836"; // Button Text Color
$buttonbackcolor = "12481836"; // Button Background Color
$buttonframecolor = "13619151"; // Button Frame Color
$inputbordercolor = "12290082"; // Input Border Color
$topbackhighlightcolor = "12481836";// Top Background Highlight Color
$baseurl = ""; // Base URL of your site
$urlback = ""; // URL To previous page
$chathome = ""; // Chat Home Page (phpBB index probably)
$chatmode = ""; // Chat Room Modes
$chanlanguage = ""; // Channel Language (For IE's code)
$motd = "Welcome to the Chat Network! Important: We do not control or endorse the content, messages or information found in chat. We specifically disclaim any liability with regard to these areas. To review the Chat guidelines, go to http://yoursitehere.com/chat/terms.php.";
$auditmsg = "<B>Note: </B>We have detected you are connecting from the IP of: <B>%1</B>";
/////////////////////
// Get Basic Theme //
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
////////////////////
// Detect Browser //
if ( strpos($_SERVER['HTTP_USER_AGENT'], 'Gecko') )
{
if ( strpos($_SERVER['HTTP_USER_AGENT'], 'Netscape') )
{
$browsers = 'Gecko';
}
else if ( strpos($_SERVER['HTTP_USER_AGENT'], 'Firefox') )
{
$browsers = 'Gecko';
}
else
{
$browsers = 'Gecko';
}
}
else if ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') )
{
if ( strpos($_SERVER['HTTP_USER_AGENT'], 'Opera') )
{
$browsers = 'MSIECompatible';
}
else
{
$browsers = 'MSIECompatible';
}
}
else
{
$browsers = 'Other';
}
///////////////////////
// Start Chat Code //
////////////////////////
// Mozilla/Netscape //
if ($browsers == "Gecko") {
echo "
<center><A href=\"#\" onclick=\"window.open('./chat_options.php', '_blank', 'toolbar=0, location=0, directories=0, status=0,menubar=0, scrollbars=1, resizable=1, height=630,width=630'); void('');\">Chat Room Options</A></center>
<br />
<EMBED type=\"application/x-nppgwrap\"
CONTROLCLASSID=\"F58E1CEF-A068-4c15-BA5E-587CAF3EE8C6\"
NPCODEBASE=\"http://deabphpbb.43i.net/MsnChat40en-us.cab#Version=9,02,0310,2401"
CONTROLCODEBASE=\"http://deabphpbb.43i.net/MsnChat40en-us.cab#Version=9,02,0310,2401"
CONTROLNAME=\"MSNChat\"
WIDTH=$width HEIGHT=$height
RoomName=\"$roomname\"
Nickname=\"$username\"
Category=\"$category\"
Locale=\"$locale\"
MSNPROFILE=\"$profile\"
Server=\"$server\"
UserRole=\"$userrole\"
CreationModes=\"$creation\"
ForeColor=\"$forecolor\"
Feature=\"$feature\"
BackHighlightColor=\"$backhighlightcolor\"
BackColor=\"$backcolor\"
ButtonTextColor=\"$buttontextcolor\"
ButtonBackColor=\"$buttonbackcolor\"
ButtonFrameColor=\"$buttonframecolor\"
InputBorderColor=\"$inputbordercolor\"
TopBackHighlightColor=\"$topbackhighlightcolor\"
BaseURL=\"$baseurl\"
URLBack=\"$urlback\"
ChatHome=\"$chathome\"
ChatMode=\"$chatmode\"
// Topic=\"\"
// WelcomeMsg=\"\"
ResDLL=\"\"
MessageOfTheDay=\"$motd\"
AuditMessage=\"$auditmsg\">
";
}
///////////////////////
// Internet Explorer //
if ($browsers == "MSIECompatible") {
echo
"
<center><A href=\"#\" onclick=\"window.open('./chat_options.php', '_blank', 'toolbar=0, location=0, directories=0, status=0,menubar=0, scrollbars=1, resizable=1, height=630,width=630'); void('');\">Chat Room Options</A></center>
<br />
<object width=\"$width\" height=\"$height\" classid=\"CLSID:F58E1CEF-A068-4c15-BA5E-587CAF3EE8C6\" CODEBASE=\"http://mob4u.no-ip.info/msnchat45.cab#Version=9,02,0310,2401\" align=\"middle\" id=\"MSNChat\">
<PARAM NAME=\"RoomName\" VALUE=\"$roomname\">
<PARAM NAME=\"NickName\" VALUE=\"$username\">
<PARAM NAME=\"MSNPROFILE\" VALUE=\"$profile\">
<param name=\"Category\" value=\"$category\">
<param name=\"Server\" value=\"$server\">
<param name=\"BaseURL\" value=\"$baseurl\">
<param name=\"Market\" value=\"phpBB User\">
<param name=\"ChatMode\" value=\"$chatmode\">
<param name=\"Feature\" value=\"$feature\">
// <param name=\"Topic\" value=\"\">
// <param name=\"WelcomeMsg\" value=\"\">
<param name=\"ChannelLanguage\" value=\"$chanlanguage\">
<param name=\"PassportTicket\" value=\"\">
<param name=\"PassportProfile\" value=\"\">
<PARAM NAME=\"UserRole\" VALUE=\"$userrole\">
<param name=\"AuditMessage\" value=\"$auditmsg\">
<param name=\"MessageOfTheDay\" value=\"$motd\">
<param name=\"Locale\" value =\"$locale\">
<param name=\"BackColor\" VALUE=\"$backcolor\">
<param name=\"ButtonBackColor\" value=\"$buttonbackcolor\">
<param name=\"ButtonTextColor\" value=\"$buttontextcolor\">
<param name=\"TopBackHighlightColor\" value=\"$tophighlightcolor\">
<param name=\"BackHighlightColor\" value=\"$backhighlightcolor\">
<param name=\"ForeColor\" value=\"$forecolor\">
<param name=\"InputBorderColor\" value=\"$inputbordercolor\">
<param name=\"ButtonFrameColor\" value=\"$buttonframecolor\">
<param name=\"CreationModes\" value=\"$creation\">
<param name=\"ResDLL\" value=\"http://mob4u.no-ip.info/msnchat45.cab#Version=9,02,0310,2401\#Version=9,02,0310,2401">
</object>
";
}
////////////////////////
// And, We're Done! //
?>
|
I don;t know why its not working It Shows blank Page :S any idea or anyone who could help me, all my other php pages are displayed only this is getting problem |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sat Nov 25, 2006 1:51 pm Post subject: Re: A page is not displayed |
|
|
deabmanwalking,
Try putting an echo statement at the end of the file:
Do you see "Test" when you browse that page? Note that this script generates code to open a popup window. If you have a popup blocker, chances are that it prevented the browser from creating a new window. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
deabmanwalking -
Joined: 24 Nov 2006 Posts: 5
|
Posted: Mon Nov 27, 2006 8:53 pm Post subject: |
|
|
Dude :D its not a popup blocked its an active X it works if i upload it in anysite which supports PHP but in my server its not supporting and all my site is in php so if u tell there is problem with php but all my server is in php and it works fine only this kinda of page have problem |
|
Back to top |
|
|
Marty -
Joined: 10 Sep 2006 Posts: 83
|
Posted: Mon Nov 27, 2006 9:10 pm Post subject: |
|
|
The code you posted above has errors, try this Code: | <?php
/*-------------------------------*/
/* */
/* PaperIRC phpBB Chatroom Addon */
/* Created by: Frappe051 */
/* Browser Detect Script (c) GCC */
/* */
/*-------------------------------*/
////////////////////////////////////////////////////
// phpBB Info ------------------------------------//
// No need to change... //
define('IN_PHPBB', true);
include('extension.inc');
include('common.php');
include('config.php');
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
if($userdata['session_logged_in'])
{
$username = $userdata[username];
} else {
$username = "Guest_1";
$userrole = "PROFILMODE0";
}
////////////////////////////////////////////////////
// Chat Control Options --------------------------//
// This stuff most likely will need to be changed //
$width = "100%"; // Width of the Chat Control
$height = "500"; // Height of the Chat Control
$roomname = "TheLobby"; // Room you would like all your users to connect to
$server = "217.164.28.22"; // IP/Host for PaperIRC
$category = "GN"; // Category your room is located in
$locale = "EN-US"; // Language settings
$profile = ""; // Still a piece of work (anybody know?)
$creation = ""; // Creation Modes
$forecolor = ""; // Forecolor for chat control
$feature = ""; // Feature (?)
$backhighlightcolor = "15585725"; // Background Highlight Color
$backcolor = "16707303"; // Background Color
$buttontextcolor = "16579836"; // Button Text Color
$buttonbackcolor = "12481836"; // Button Background Color
$buttonframecolor = "13619151"; // Button Frame Color
$inputbordercolor = "12290082"; // Input Border Color
$topbackhighlightcolor = "12481836";// Top Background Highlight Color
$baseurl = ""; // Base URL of your site
$urlback = ""; // URL To previous page
$chathome = ""; // Chat Home Page (phpBB index probably)
$chatmode = ""; // Chat Room Modes
$chanlanguage = ""; // Channel Language (For IE's code)
$motd = "Welcome to the Chat Network! Important: We do not control or endorse the content, messages or information found in chat. We specifically disclaim any liability with regard to these areas. To review the Chat guidelines, go to http://yoursitehere.com/chat/terms.php.";
$auditmsg = "<B>Note: </B>We have detected you are connecting from the IP of: <B>%1</B>";
/////////////////////
// Get Basic Theme //
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
////////////////////
// Detect Browser //
if ( strpos($_SERVER['HTTP_USER_AGENT'], 'Gecko') )
{
if ( strpos($_SERVER['HTTP_USER_AGENT'], 'Netscape') )
{
$browsers = 'Gecko';
}
else if ( strpos($_SERVER['HTTP_USER_AGENT'], 'Firefox') )
{
$browsers = 'Gecko';
}
else
{
$browsers = 'Gecko';
}
}
else if ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') )
{
if ( strpos($_SERVER['HTTP_USER_AGENT'], 'Opera') )
{
$browsers = 'MSIECompatible';
}
else
{
$browsers = 'MSIECompatible';
}
}
else
{
$browsers = 'Other';
}
///////////////////////
// Start Chat Code //
////////////////////////
// Mozilla/Netscape //
if ($browsers == "Gecko") {
echo "
<center><A href=\"#\" onclick=\"window.open('./chat_options.php', '_blank', 'toolbar=0, location=0, directories=0, status=0,menubar=0, scrollbars=1, resizable=1, height=630,width=630'); void('');\">Chat Room Options</A></center>
<br />
<EMBED type=\"application/x-nppgwrap\"
CONTROLCLASSID=\"F58E1CEF-A068-4c15-BA5E-587CAF3EE8C6\"
NPCODEBASE=\"http://deabphpbb.43i.net/MsnChat40en-us.cab#Version=9,02,0310,2401\"
CONTROLCODEBASE=\"http://deabphpbb.43i.net/MsnChat40en-us.cab#Version=9,02,0310,2401\"
CONTROLNAME=\"MSNChat\"
WIDTH=$width HEIGHT=$height
RoomName=\"$roomname\"
Nickname=\"$username\"
Category=\"$category\"
Locale=\"$locale\"
MSNPROFILE=\"$profile\"
Server=\"$server\"
UserRole=\"$userrole\"
CreationModes=\"$creation\"
ForeColor=\"$forecolor\"
Feature=\"$feature\"
BackHighlightColor=\"$backhighlightcolor\"
BackColor=\"$backcolor\"
ButtonTextColor=\"$buttontextcolor\"
ButtonBackColor=\"$buttonbackcolor\"
ButtonFrameColor=\"$buttonframecolor\"
InputBorderColor=\"$inputbordercolor\"
TopBackHighlightColor=\"$topbackhighlightcolor\"
BaseURL=\"$baseurl\"
URLBack=\"$urlback\"
ChatHome=\"$chathome\"
ChatMode=\"$chatmode\"
// Topic=\"\"
// WelcomeMsg=\"\"
ResDLL=\"\"
MessageOfTheDay=\"$motd\"
AuditMessage=\"$auditmsg\">
";
}
///////////////////////
// Internet Explorer //
if ($browsers == "MSIECompatible") {
echo
"
<center><A href=\"#\" onclick=\"window.open('./chat_options.php', '_blank', 'toolbar=0, location=0, directories=0, status=0,menubar=0, scrollbars=1, resizable=1, height=630,width=630'); void('');\">Chat Room Options</A></center>
<br />
<object width=\"$width\" height=\"$height\" classid=\"CLSID:F58E1CEF-A068-4c15-BA5E-587CAF3EE8C6\" CODEBASE=\"http://mob4u.no-ip.info/msnchat45.cab#Version=9,02,0310,2401\" align=\"middle\" id=\"MSNChat\">
<PARAM NAME=\"RoomName\" VALUE=\"$roomname\">
<PARAM NAME=\"NickName\" VALUE=\"$username\">
<PARAM NAME=\"MSNPROFILE\" VALUE=\"$profile\">
<param name=\"Category\" value=\"$category\">
<param name=\"Server\" value=\"$server\">
<param name=\"BaseURL\" value=\"$baseurl\">
<param name=\"Market\" value=\"phpBB User\">
<param name=\"ChatMode\" value=\"$chatmode\">
<param name=\"Feature\" value=\"$feature\">
// <param name=\"Topic\" value=\"\">
// <param name=\"WelcomeMsg\" value=\"\">
<param name=\"ChannelLanguage\" value=\"$chanlanguage\">
<param name=\"PassportTicket\" value=\"\">
<param name=\"PassportProfile\" value=\"\">
<PARAM NAME=\"UserRole\" VALUE=\"$userrole\">
<param name=\"AuditMessage\" value=\"$auditmsg\">
<param name=\"MessageOfTheDay\" value=\"$motd\">
<param name=\"Locale\" value =\"$locale\">
<param name=\"BackColor\" VALUE=\"$backcolor\">
<param name=\"ButtonBackColor\" value=\"$buttonbackcolor\">
<param name=\"ButtonTextColor\" value=\"$buttontextcolor\">
<param name=\"TopBackHighlightColor\" value=\"$tophighlightcolor\">
<param name=\"BackHighlightColor\" value=\"$backhighlightcolor\">
<param name=\"ForeColor\" value=\"$forecolor\">
<param name=\"InputBorderColor\" value=\"$inputbordercolor\">
<param name=\"ButtonFrameColor\" value=\"$buttonframecolor\">
<param name=\"CreationModes\" value=\"$creation\">
<param name=\"ResDLL\" value=\"http://mob4u.no-ip.info/msnchat45.cab#Version=9,02,0310,2401\#Version=9,02,0310,2401\">
</object>
";
}
////////////////////////
// And, We're Done! //
?> |
|
|
Back to top |
|
|
deabmanwalking -
Joined: 24 Nov 2006 Posts: 5
|
Posted: Mon Nov 27, 2006 9:20 pm Post subject: |
|
|
dude still not working :D the page is blank |
|
Back to top |
|
|
Marty -
Joined: 10 Sep 2006 Posts: 83
|
Posted: Mon Nov 27, 2006 9:26 pm Post subject: |
|
|
well i couldnt test it fully as i don't have the attributing files to go with it, you should put on line 1 before <?php Code: | <?php error_reporting(1);?> |
|
|
Back to top |
|
|
deabmanwalking -
Joined: 24 Nov 2006 Posts: 5
|
Posted: Mon Nov 27, 2006 9:45 pm Post subject: |
|
|
thx alot for replying all :D and marty dude thxoo alot :D but dude i don;t understand one thing :s whats in this code that it made it working :D still thxoo alot for giving me time :D and thx to aprelium |
|
Back to top |
|
|
Moxxnixx -
Joined: 21 Jun 2003 Posts: 1226 Location: Florida
|
Posted: Mon Nov 27, 2006 9:49 pm Post subject: |
|
|
Code: | $server = "217.164.28.22"; // IP/Host for PaperIRC |
Are you sure this is the correct setting?...
because your site is using a different IP address. http://217.164.108.240:2000/ |
|
Back to top |
|
|
Marty -
Joined: 10 Sep 2006 Posts: 83
|
Posted: Mon Nov 27, 2006 9:50 pm Post subject: |
|
|
The code will show you errors, there are errors within your script and possible within the attributing files. To discover where the fault lays place the code above with the file.
Your not seeing any errors (or in your case a blank page) because they are switched off on your server, if you use the code above you will then see.... |
|
Back to top |
|
|
deabmanwalking -
Joined: 24 Nov 2006 Posts: 5
|
Posted: Mon Nov 27, 2006 9:55 pm Post subject: |
|
|
Moxxnixx well i have closed it :D the main thing was loading that page because it was not loading but after adding that thing it started loading :D thxoo alot marty |
|
Back to top |
|
|
|
|
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
|
|