I have started trying to get FreiChat to integrate with Feng Office (1.7.5). Everything works fine except that users are displayed as Guest - ### (# being either a digit or a numeral).
I have edited the header section of .../application/layouts/website.php as follows:
<?php
$ses = null; // Return null if user is not logged in
if(isset($_SESSION['userid'])){
if($_SESSION['userid'] != null) // Here null is guest
{
$ses=$_SESSION['userid']; //LOOK now userid will be parsed to FreiChatX
}
}
if(!function_exists("freichatx_get_hash")){
function freichatx_get_hash($ses){
if(is_file("C:/KSGServer/www/meetpoint/freichat/arg.php")){
require "C:/KSGServer/www/meetpoint/freichat/arg.php";
$temp_id = $ses . $uid;
return md5($temp_id);
}
else
{
echo "<script>alert('module freichatx says: arg.php file not
found!');</script>";
}
return 0;
}
}
?>
Any help would be great.
I do not work:
<div id="userboxWrapper"><?php echo render_user_box(logged_user()) ?></div>
<div id="searchbox">
<form name='search_form' class="internalForm" action="<?php echo ROOT_URL . '/index.php' ?>" method="get">
<table><tr><td>
</td>
<td id="searchboxSearch">
<div id="searchboxButton" style="display:none"></div>
</td>
<td style="padding-left:10px">
<div id="quickAdd" style="display:none"></div>
</td>
</tr>
</table>
</form>
</div>
<?php Hook::fire('render_page_header', null, $ret) ?>
</div>
</div>
<?php
$ses = null; // Return null if user is not logged in
function freichatx_get_hash($ses)
{
if(is_file("/library/freichat/arg.php"))
{
require "/library/freichat/arg.php";
$temp_id = $ses.$uid;
return md5($temp_id);
}
else
{
echo "<script>alert('module freichatx says: arg.php file not found!');</script>";
}
return 0;
}
if(isset($_SESSION['userid'])){
if($_SESSION['userid'] != null) // Here null is guest
{
$ses = $_SESSION['userid']; //LOOK now userid will be parsed to FreiChatX
}
}
if(!function_exists("freichatx_get_hash"))
{
freichatx_get_hash($ses);
}
?>
<!-- /header -->
I unzipped evnix.com/drupal2/ in /library/ :
type=dir;sizd=4096;modify=20120216145610;UNIX.mode=0755;UNIX.uid=1479;UNIX.gid=1477;unique=831ga8a1cc; PEAR
type=dir;sizd=4096;modify=20120216145610;UNIX.mode=0755;UNIX.uid=1479;UNIX.gid=1477;unique=831ga8a361; browser
type=dir;sizd=4096;modify=20120216145610;UNIX.mode=0755;UNIX.uid=1479;UNIX.gid=1477;unique=831ga8a31a; cssmin
type=dir;sizd=4096;modify=20120216145610;UNIX.mode=0755;UNIX.uid=1479;UNIX.gid=1477;unique=831ga8a355; feed
type=dir;sizd=4096;modify=20120216145610;UNIX.mode=0755;UNIX.uid=1479;UNIX.gid=1477;unique=831ga8a310; filerepository
type=dir;sizd=4096;modify=20120218122756;UNIX.mode=0755;UNIX.uid=1479;UNIX.gid=1477;unique=831ga8a019; freichat
type=dir;sizd=4096;modify=20120216145610;UNIX.mode=0755;UNIX.uid=1479;UNIX.gid=1477;unique=831ga8a30e; html2text
type=dir;sizd=4096;modify=20120216145610;UNIX.mode=0755;UNIX.uid=1479;UNIX.gid=1477;unique=831ga8a27e; htmlpurifier
type=dir;sizd=4096;modify=20120216145610;UNIX.mode=0755;UNIX.uid=1479;UNIX.gid=1477;unique=831ga8a31c; icalendar
type=dir;sizd=4096;modify=20120216145610;UNIX.mode=0755;UNIX.uid=1479;UNIX.gid=1477;unique=831ga8a34f; jsmin
type=dir;sizd=4096;modify=20120216145610;UNIX.mode=0755;UNIX.uid=1479;UNIX.gid=1477;unique=831ga8a35c; json
type=dir;sizd=4096;modify=20120216145610;UNIX.mode=0755;UNIX.uid=1479;UNIX.gid=1477;unique=831ga8a327; pdf
type=dir;sizd=4096;modify=20120216145610;UNIX.mode=0755;UNIX.uid=1479;UNIX.gid=1477;unique=831ga8a1c5; simplegd
type=dir;sizd=4096;modify=20120216145610;UNIX.mode=0755;UNIX.uid=1479;UNIX.gid=1477;unique=831ga8a11d; swift
type=dir;sizd=4096;modify=20120216145610;UNIX.mode=0755;UNIX.uid=1479;UNIX.gid=1477;unique=831ga8a351; textile
type=dir;sizd=4096;modify=20120216145610;UNIX.mode=0755;UNIX.uid=1479;UNIX.gid=1477;unique=831ga8a261; utf8
type=dir;sizd=4096;modify=20120216145610;UNIX.mode=0755;UNIX.uid=1479;UNIX.gid=1477;unique=831ga8a353; vcard
type=dir;sizd=4096;modify=20120216145610;UNIX.mode=0755;UNIX.uid=1479;UNIX.gid=1477;unique=831ga8a363; zend
type=dir;sizd=4096;modify=20120216145610;UNIX.mode=0755;UNIX.uid=1479;UNIX.gid=1477;unique=831ga8a35f; zip
type=dir;sizd=4096;modify=20120216145610;UNIX.mode=0755;UNIX.uid=1479;UNIX.gid=1477;unique=831ga8a34b; zipimport