Subject: Privmessages error

Posted on: 29/09/05 05:08am
By: kemal

when i reading a messages giving this error

Warning: main(language/): failed to open stream: No such file or directory in /home/kcellat/public_html/mt/privmessages/viewmessage.php on line 32

Warning: main(): Failed opening 'language/' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/kcellat/public_html/mt/privmessages/viewmessage.php on line 32


what is the problem??

Privmessages error

Posted on: 29/09/05 06:38am
By: romantaran

You must place privmessages folder into public_html directory, where Geeklog lib-common.php is. The language folder must be in privmessages directory.

Privmessages error

Posted on: 30/09/05 12:47am
By: romantaran

In viewmessage.php find:
include_once('language/' . $pm_language);
and paste before it:
include_once('config.php');

Privmessages error

Posted on: 30/09/05 12:03pm
By: kemal

ok.

but there is no "answer button" on page down ..


Privmessages error

Posted on: 30/09/05 01:18pm
By: romantaran

well. try to install updated version, when it will be placed on the site. I have uploaded it

Privmessages error

Posted on: 11/10/05 02:25pm
By: kemal

there is an error new version 1.1.0

Warning: phpblock_privmessages(/home/kcellat/public_html/mt/privmessages/language/): failed to open stream: Success in /home/kcellat/public_html/mt/system/lib-custom.php on line 322

Warning: phpblock_privmessages(): Failed opening '/home/kcellat/public_html/mt/privmessages/language/' for inclusion (include_path='/home/kcellat/public_html/mt/system/pear/:.:/usr/lib/php:/usr/local/lib/php') in /home/kcellat/public_html/mt/system/lib-custom.php on line 322


i thing problem is php block???

Privmessages error

Posted on: 11/10/05 02:38pm
By: romantaran

I don't know, how to correct this problem. I had it in one of my sites, and in another site and at localhost there were no problems. The only method I know, is to use phpblock_privmessages function from previous version.
///////////////////////////////////////////////////////////
// Privmessages module's block
///////////////////////////////////////////////////////////
function phpblock_privmessages() {

    global $_USER, $_CONF, $_TABLES;

    $uid = $_USER['uid'];
    if($uid > 1) {
        $sql = "SELECT * FROM privmessages WHERE to_uid = $uid";
        $result = DB_query($sql);
        $nrows = DB_numRows($result);    
        // ïðîâåðêà íîâûõ ñîîáùåíèé
        $sql = "SELECT * FROM privmessages WHERE to_uid = $uid AND status = 1";
        $new_result = DB_query($sql);
        $new_nrows = DB_numRows($new_result);    
        if($nrows == 0 && $new_nrows == 0) { // Åñëè âõîäÿùèõ íåò

        $result = 'There are no incoming messages.<br><a href="' . $_CONF['site_url'] . '/privmessages/">Create</a>';
    }
    else {
        $result = 'New messages: <b>' . $new_nrows . '</b>. <br>';
        $result .= 'Sum total messages: <b>' . $nrows . '</b>. <br><a href="' . $_CONF['site_url'] . '/privmessages/">View</a>';
        }
    }
    else {
        $result = "This module is available only for registered users";
    }
Return $result;
}
///////////////////////////////////////////////////////////


Privmessages error

Posted on: 11/10/05 03:10pm
By: kemal

yes, i am using old version of block with out problem...

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=58206