Thread: Please HELP!!
View Single Post
  #11 (permalink)  
Old Aug 30th, 2006, 15:19
JacobHaug's Avatar
JacobHaug JacobHaug is offline
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Red face Re: Please HELP!!

OK i found out what the problem is. Somewhere in my code i have not linked to the full URL. Because it is in a seprate dirctionary it should have a full URL link. But the problem is i do not see where i am missing this. Here is the code.

Code: Select all
<?php
    require_once('http://support.jbwebsitesolutions.com/FlashChat/inc/common.php');

    $id = 'flashchat';
    $params = array();

    $open = false;

    if($GLOBALS['fc_config']['liveSupportMode']) {
        $stmt = new Statement("SELECT * FROM {$GLOBALS['fc_config']['db']['pref']}connections WHERE userid IS NOT NULL");
        if($rs = $stmt->process()) {
            while($rec = $rs->next()) {
                if(ChatServer::userInRole($rec['userid'], ROLE_ADMIN)) {
                    $open = true;
                    break;
                }
            }
        }
    } 
?>


<?php if($open) { ?>onLoad="setFocus()" onUnload="doLogout()"<?php } ?>>

        <?php if($open) { ?>
<center>
<a href="http://support.jbwebsitesolutions.com/FlashChat/flashchat.php" target="_blank">
<img src="http://www.jbwebsitesolutions.com/Pictures/livechaton.gif" border="0" alt="Live Support Online"></a><br>
<br>
<font color="#000000" size="3pt">
<b>Live Support is Online!!</b><br> Please chat with the Support Department via the above picture.
</font>
</center>
        <?php } else { ?>

<center>
<a href="http://www.jbwebsitesolutions.com/htmlindex/Browser/True-Code/Contact/Support.html" target="_blank">
<img src="http://www.jbwebsitesolutions.com/Pictures/livechatoff.gif" border="0" alt="Live Support Offline"></a><br>
<br>
<font color="#000000" size="3pt">
Sorry, <b>Live Support is unavailable!!</b><br> Please email our Support Department via the above picture.
</font>
</center>
        <?php } ?>
What do you guys think? What have i missed?
Reply With Quote