Hi,
Here is a copy of the file freichat/hardcode.php
$dsn='mysql:host=****************;dbname=*********';
$db_user='***********';
$db_pass='***********';
$driver='Custom';
$db_prefix=' ';
$uid='57b799726f8b9';
$connected='YES';
$PATH = 'freichat/';
$installed=true;
$admin_pswd='**********';
$debug = false;
$custom_error_handling='YES';
$use_cookie='false';
$smtp_username = '';
$smtp_password = '';
$force_load_jquery = 'NO';
$usertable='osdate_user';
$row_username='username';
$row_userid='id';
$avatar_table_name='members';
$avatar_column_name='avatar';
$avatar_userid='id';
$avatar_reference_user='id';
$avatar_reference_avatar='id';
$avatar_field_name=$avatar_column_name;
Here is also a copy of the user osdate Tables
CREATE TABLE `osdate_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`active` tinyint(1) DEFAULT '0',
`username` varchar(25) NOT NULL DEFAULT '',
`password` varchar(32) NOT NULL DEFAULT '',
`lastvisit` int(11) NOT NULL DEFAULT '0',
`regdate` int(11) NOT NULL DEFAULT '0',
`level` tinyint(4) DEFAULT '4',
`timezone` decimal(5,2) DEFAULT '0.00',
`allow_viewonline` tinyint(1) DEFAULT '1',
`rank` int(11) DEFAULT '0',
`email` varchar(255) DEFAULT NULL,
`country` varchar(11) DEFAULT '',
`actkey` varchar(32) DEFAULT NULL,
`firstname` varchar(50) DEFAULT NULL,
`lastname` varchar(50) DEFAULT NULL,
`gender` char(1) NOT NULL DEFAULT 'M',
`lookgender` char(1) DEFAULT '',
`lookagestart` int(11) DEFAULT '0',
`lookageend` int(11) DEFAULT '0',
`address_line1` varchar(100) DEFAULT NULL,
`address_line2` varchar(100) DEFAULT NULL,
`state_province` varchar(100) DEFAULT NULL,
`county` varchar(100) DEFAULT NULL,
`city` varchar(100) DEFAULT NULL,
`zip` varchar(30) DEFAULT NULL,
`birth_date` date NOT NULL,
`lookcountry` varchar(255) DEFAULT '',
`lookstate_province` varchar(100) DEFAULT NULL,
`lookcounty` varchar(100) DEFAULT NULL,
`lookcity` varchar(100) DEFAULT NULL,
`lookzip` varchar(100) DEFAULT NULL,
`lookradius` varchar(5) DEFAULT NULL,
`radiustype` varchar(5) DEFAULT 'miles',
`picture` char(1) DEFAULT '0',
`pictures_cnt` int(4) DEFAULT '0',
`videos_cnt` int(4) DEFAULT '0',
`about_me` text,
`couple_usernames` varchar(255) DEFAULT NULL,
`zip_latitude` float DEFAULT NULL,
`zip_longitude` float DEFAULT NULL,
`status` varchar(20) NOT NULL DEFAULT 'approval',
`levelend` int(11) DEFAULT NULL,
`regIP` varchar(100) DEFAULT NULL,
`lastLoginIP` varchar(100) DEFAULT NULL,
`p_firstname` varchar(50) DEFAULT NULL,
`p_lastname` varchar(50) DEFAULT NULL,
`p_gender` char(1) DEFAULT NULL,
`p_birth_date` date DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `username` (`username`),
KEY `email` (`email`),
KEY `fullname` (`firstname`),
KEY `city` (`city`),
KEY `zip` (`zip`),
KEY `country` (`country`),
KEY `lastvisit` (`lastvisit`),
KEY `lookgender` (`lookgender`),
KEY `state_province` (`state_province`),
KEY `lookcountry` (`lookcountry`),
KEY `lookageend` (`lookageend`),
KEY `lookagestart` (`lookagestart`),
KEY `status` (`status`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO `osdate_user` (`id`, `active`, `username`, `password`, `lastvisit`, `regdate`, `level`, `timezone`, `allow_viewonline`, `rank`, `email`, `country`, `actkey`, `firstname`, `lastname`, `gender`, `lookgender`, `lookagestart`, `lookageend`, `address_line1`, `address_line2`, `state_province`, `county`, `city`, `zip`, `birth_date`, `lookcountry`, `lookstate_province`, `lookcounty`, `lookcity`, `lookzip`, `lookradius`, `radiustype`, `picture`, `pictures_cnt`, `videos_cnt`, `about_me`, `couple_usernames`, `zip_latitude`, `zip_longitude`, `status`, `levelend`, `regIP`, `lastLoginIP`, `p_firstname`, `p_lastname`, `p_gender`, `p_birth_date`) VALUES
(5, 1, 'faisal', 'ddbf0cb18c4b78d40b6d36c418919b4c', 1464609609, 1464609609, 2, '-5.00', 1, 1, 'faisal@{domain}', 'GB', '6d25ae9a65ed9ac4ab63fed963084f49', 'Faisal', 'Shahzad', 'M', 'F', 20, 31, '54 D Abc Colony', '', 'CI', NULL, 'Carina Bay', '4554654', '1980-10-06', '', '', NULL, '', '', NULL, 'miles', '0', 1, 0, NULL, NULL, NULL, NULL, 'active', 1465214409, NULL, NULL, NULL, NULL, NULL, NULL),
(92, 1, 'Zehta', 'ddbf0cb18c4b78d40b6d36c418919b4c', 1464609609, 1464609609, 1, '-12.00', 1, 1, 'zehta@{domain}', 'US', '63d1e03e4e1f777e3bacc225347d7acc', 'Zehta', 'Jones', 'M', 'F', 0, 99, '', '', 'AL', NULL, 'Alabama', '54000', '1960-01-01', 'AA', '', NULL, '', '', NULL, 'miles', '0', 0, 0, NULL, NULL, NULL, NULL, 'active', 1465214409, NULL, NULL, NULL, NULL, NULL, NULL),
(63, 1, 'Aila12', 'ddbf0cb18c4b78d40b6d36c418919b4c', 1464609609, 1464609609, 1, '-5.00', 1, 1, 'ailacabral@{domain}', 'US', '44e347e0e9f8d9d6051cafa8258f298c', 'Aila', 'Cabral', 'F', 'M', 18, 35, 'asdas', '', 'AL', NULL, 'Manhattan', '10002', '1970-01-01', '', 'AA', NULL, '', '', NULL, 'miles', '0', 1, 0, NULL, NULL, NULL, NULL, 'active', 1465214409, NULL, NULL, NULL, NULL, NULL, NULL),
(64, 1, 'Anna14', 'ddbf0cb18c4b78d40b6d36c418919b4c', 1464609609, 1464609609, 1, '-5.00', 1, 1, 'anna@{domain}', 'US', '55e0de72a3490db4d5ad96451faef51c', 'Anna', 'Gates', 'F', 'M', 18, 35, '', '', '', NULL, 'new york', '10001', '1987-01-01', 'AA', '', NULL, '', '', NULL, 'miles', '0', 0, 0, NULL, NULL, NULL, NULL, 'active', 1465214409, NULL, NULL, NULL, NULL, NULL, NULL),
(90, 1, 'JaruGT', 'ddbf0cb18c4b78d40b6d36c418919b4c', 1464609609, 1464609609, 1, '-5.00', 1, 1, 'JaruGT@{domain}', 'US', '641bccf3a11bae9c18ca180f5fd66a3d', 'Gilen', 'Cock', 'M', 'F', 0, 50, '', '', 'FL', NULL, 'Bradenton', '31556', '1971-11-01', 'AA', '', NULL, '', '', NULL, 'miles', '0', 1, 0, NULL, NULL, NULL, NULL, 'active', 1465214409, NULL, NULL, NULL, NULL, NULL, NULL),
(88, 1, 'BigWill', 'ddbf0cb18c4b78d40b6d36c418919b4c', 1464609609, 1464609609, 1, '-5.00', 1, 1, 'bigwill@{domain}', 'US', '4714ad92f21f7abf27f497217740e571', 'Chris', 'Gayl', 'M', 'F', 18, 40, '', '', 'AL', NULL, 'Fort Richardson', '31556', '1987-07-01', '', '', NULL, '', '', NULL, 'miles', '0', 1, 0, NULL, NULL, NULL, NULL, 'active', 1465214409, NULL, NULL, NULL, NULL, NULL, NULL),
(60, 1, 'mariah', 'ddbf0cb18c4b78d40b6d36c418919b4c', 1464609609, 1464609609, 1, '-5.00', 1, 1, 'mariah@{domain}', 'US', 'f090658003c569a2a773806c73105879', 'Mariah', 'Carey', 'F', 'M', 18, 99, '', '', 'AL', NULL, 'Voice City', '10001', '1980-01-01', '', '', NULL, '', '', NULL, 'miles', '0', 0, 0, NULL, NULL, NULL, NULL, 'active', 1465214409, NULL, NULL, NULL, NULL, NULL, NULL),
(77, 1, 'Manuella', 'ddbf0cb18c4b78d40b6d36c418919b4c', 1464609609, 1464609609, 1, '-5.00', 1, 1, 'Manuella@{domain}', 'US', '157728a5671a13c95e421006a0b36226', 'Manuella', 'Keller', 'F', 'M', 18, 35, '', '', 'AL', NULL, 'new york', '10001', '1981-01-25', '', '', NULL, '', '', NULL, 'miles', '0', 1, 0, NULL, NULL, NULL, NULL, 'active', 1465214409, NULL, NULL, NULL, NULL, NULL, NULL),
(78, 1, 'mimijones', 'ddbf0cb18c4b78d40b6d36c418919b4c', 1464609609, 1464609609, 1, '-5.00', 1, 1, 'jones@{domain}', 'US', '47eaa03002e256a19ec83c61fe06acc7', 'Mimi', 'Jones', 'F', 'M', 18, 35, '', '', 'AL', NULL, 'new york', '10001', '1982-07-01', '', '', NULL, '', '', NULL, 'miles', '0', 1, 0, NULL, NULL, NULL, NULL, 'active', 1465214409, NULL, NULL, NULL, NULL, NULL, NULL),
(81, 1, 'Smailin', 'ddbf0cb18c4b78d40b6d36c418919b4c', 1464609609, 1464609609, 1, '-5.00', 1, 1, 'Smailin@{domain}', 'US', 'b0173136ba8e2807997fec80b2cfcc34', 'Smailin', 'Pires', 'F', 'M', 18, 40, '', '', 'AL', NULL, 'new york', '10001', '1985-01-25', '', 'AA', NULL, '', '', NULL, 'miles', '0', 0, 0, NULL, NULL, NULL, NULL, 'active', 1465214409, NULL, NULL, NULL, NULL, NULL, NULL),
(82, 1, 'Monique', 'ddbf0cb18c4b78d40b6d36c418919b4c', 1464609609, 1464609609, 1, '-5.00', 1, 1, 'Monique@{domain}', 'US', '7bcc17e3b7317e453d6001c63295f6dc', 'Monique', 'kahn', 'F', 'M', 18, 29, '', '', 'AL', NULL, 'new york', '10001', '1978-07-01', '', 'AA', NULL, '', '', NULL, 'miles', '0', 0, 0, NULL, NULL, NULL, NULL, 'active', 1465214409, NULL, NULL, NULL, NULL, NULL, NULL);
I put this in the index.php
if($Username_And_Password_Match)
{
$_SESSION['userid'] = $users['id'];
}
$ses = null;
if(isset($_SESSION['userid']))
{
if($_SESSION['userid'] != null)
{
$ses=$_SESSION['userid'];
}
}
if(!function_exists("freichatx_get_hash")){
function freichatx_get_hash($ses){
if(is_file("/mydomain.com/freichat/hardcode.php")){
require "/mydomain.com/freichat/hardcode.php";
$temp_id = $ses . $uid;
return md5($temp_id);
}
else
{
echo "<script>alert('module freichatx says: hardcode.php file not
found!');</script>";
}
return 0;
}
}
And lastly I put the script index_header.tpl in the template
{literal}<script type="text/javascript" language="javascipt" src="http://mydomain.com/freichat/client/main.php?id=<?php echo $ses;?>&xhash=<?php echo freichatx_get_hash($ses); ?>"></script>{/literal}
<link rel="stylesheet" href="http://mydomain.com/freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css">
Please help me fix this?
You can also find osdate info at http://www.osdateforum.com/index.php
Regards, Phill
Hi,
Here is a copy of the file freichat/hardcode.php
````
/* Data base details */
$dsn='mysql:host=****************;dbname=*********'; //DSN
$db_user='***********'; //DB username
$db_pass='***********'; //DB password
$driver='Custom'; //Integration driver
$db_prefix=' '; //prefix used for tables in database
$uid='57b799726f8b9'; //Any random unique number
$connected='YES'; //only for custom installation
$PATH = 'freichat/'; // Use this only if you have placed the freichat folder somewhere else
$installed=true; //make it false if you want to reinstall freichat
$admin_pswd='**********'; //backend password
$debug = false;
$custom_error_handling='YES'; // used during custom installation
$use_cookie='false';
/* email plugin */
$smtp_username = '';
$smtp_password = '';
$force_load_jquery = 'NO';
/* Custom driver */
$usertable='osdate_user'; //specifies the name of the table in which your user information is stored.
$row_username='username'; //specifies the name of the field in which the user's name/display name is stored.
$row_userid='id'; //specifies the name of the field in which the user's id is stored (usually id or userid)
$avatar_table_name='members'; //specifies the table where avatar information is stored
$avatar_column_name='avatar'; //specifies the column name where the avatar url is stored
$avatar_userid='id'; //specifies the userid to the user to get the user's avatar
$avatar_reference_user='id'; //specifies the reference to the user to get the user's avatar in user table
$avatar_reference_avatar='id'; //specifies the reference to the user to get the user's avatar in avatar
$avatar_field_name=$avatar_column_name; //to avoid unnecessary file changes , *do not change
````
Here is also a copy of the **user osdate Tables**
````
--
-- Table structure for table `osdate_user`
--
CREATE TABLE `osdate_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`active` tinyint(1) DEFAULT '0',
`username` varchar(25) NOT NULL DEFAULT '',
`password` varchar(32) NOT NULL DEFAULT '',
`lastvisit` int(11) NOT NULL DEFAULT '0',
`regdate` int(11) NOT NULL DEFAULT '0',
`level` tinyint(4) DEFAULT '4',
`timezone` decimal(5,2) DEFAULT '0.00',
`allow_viewonline` tinyint(1) DEFAULT '1',
`rank` int(11) DEFAULT '0',
`email` varchar(255) DEFAULT NULL,
`country` varchar(11) DEFAULT '',
`actkey` varchar(32) DEFAULT NULL,
`firstname` varchar(50) DEFAULT NULL,
`lastname` varchar(50) DEFAULT NULL,
`gender` char(1) NOT NULL DEFAULT 'M',
`lookgender` char(1) DEFAULT '',
`lookagestart` int(11) DEFAULT '0',
`lookageend` int(11) DEFAULT '0',
`address_line1` varchar(100) DEFAULT NULL,
`address_line2` varchar(100) DEFAULT NULL,
`state_province` varchar(100) DEFAULT NULL,
`county` varchar(100) DEFAULT NULL,
`city` varchar(100) DEFAULT NULL,
`zip` varchar(30) DEFAULT NULL,
`birth_date` date NOT NULL,
`lookcountry` varchar(255) DEFAULT '',
`lookstate_province` varchar(100) DEFAULT NULL,
`lookcounty` varchar(100) DEFAULT NULL,
`lookcity` varchar(100) DEFAULT NULL,
`lookzip` varchar(100) DEFAULT NULL,
`lookradius` varchar(5) DEFAULT NULL,
`radiustype` varchar(5) DEFAULT 'miles',
`picture` char(1) DEFAULT '0',
`pictures_cnt` int(4) DEFAULT '0',
`videos_cnt` int(4) DEFAULT '0',
`about_me` text,
`couple_usernames` varchar(255) DEFAULT NULL,
`zip_latitude` float DEFAULT NULL,
`zip_longitude` float DEFAULT NULL,
`status` varchar(20) NOT NULL DEFAULT 'approval',
`levelend` int(11) DEFAULT NULL,
`regIP` varchar(100) DEFAULT NULL,
`lastLoginIP` varchar(100) DEFAULT NULL,
`p_firstname` varchar(50) DEFAULT NULL,
`p_lastname` varchar(50) DEFAULT NULL,
`p_gender` char(1) DEFAULT NULL,
`p_birth_date` date DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `username` (`username`),
KEY `email` (`email`),
KEY `fullname` (`firstname`),
KEY `city` (`city`),
KEY `zip` (`zip`),
KEY `country` (`country`),
KEY `lastvisit` (`lastvisit`),
KEY `lookgender` (`lookgender`),
KEY `state_province` (`state_province`),
KEY `lookcountry` (`lookcountry`),
KEY `lookageend` (`lookageend`),
KEY `lookagestart` (`lookagestart`),
KEY `status` (`status`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `osdate_user`
--
INSERT INTO `osdate_user` (`id`, `active`, `username`, `password`, `lastvisit`, `regdate`, `level`, `timezone`, `allow_viewonline`, `rank`, `email`, `country`, `actkey`, `firstname`, `lastname`, `gender`, `lookgender`, `lookagestart`, `lookageend`, `address_line1`, `address_line2`, `state_province`, `county`, `city`, `zip`, `birth_date`, `lookcountry`, `lookstate_province`, `lookcounty`, `lookcity`, `lookzip`, `lookradius`, `radiustype`, `picture`, `pictures_cnt`, `videos_cnt`, `about_me`, `couple_usernames`, `zip_latitude`, `zip_longitude`, `status`, `levelend`, `regIP`, `lastLoginIP`, `p_firstname`, `p_lastname`, `p_gender`, `p_birth_date`) VALUES
(5, 1, 'faisal', 'ddbf0cb18c4b78d40b6d36c418919b4c', 1464609609, 1464609609, 2, '-5.00', 1, 1, 'faisal@{domain}', 'GB', '6d25ae9a65ed9ac4ab63fed963084f49', 'Faisal', 'Shahzad', 'M', 'F', 20, 31, '54 D Abc Colony', '', 'CI', NULL, 'Carina Bay', '4554654', '1980-10-06', '', '', NULL, '', '', NULL, 'miles', '0', 1, 0, NULL, NULL, NULL, NULL, 'active', 1465214409, NULL, NULL, NULL, NULL, NULL, NULL),
(92, 1, 'Zehta', 'ddbf0cb18c4b78d40b6d36c418919b4c', 1464609609, 1464609609, 1, '-12.00', 1, 1, 'zehta@{domain}', 'US', '63d1e03e4e1f777e3bacc225347d7acc', 'Zehta', 'Jones', 'M', 'F', 0, 99, '', '', 'AL', NULL, 'Alabama', '54000', '1960-01-01', 'AA', '', NULL, '', '', NULL, 'miles', '0', 0, 0, NULL, NULL, NULL, NULL, 'active', 1465214409, NULL, NULL, NULL, NULL, NULL, NULL),
(63, 1, 'Aila12', 'ddbf0cb18c4b78d40b6d36c418919b4c', 1464609609, 1464609609, 1, '-5.00', 1, 1, 'ailacabral@{domain}', 'US', '44e347e0e9f8d9d6051cafa8258f298c', 'Aila', 'Cabral', 'F', 'M', 18, 35, 'asdas', '', 'AL', NULL, 'Manhattan', '10002', '1970-01-01', '', 'AA', NULL, '', '', NULL, 'miles', '0', 1, 0, NULL, NULL, NULL, NULL, 'active', 1465214409, NULL, NULL, NULL, NULL, NULL, NULL),
(64, 1, 'Anna14', 'ddbf0cb18c4b78d40b6d36c418919b4c', 1464609609, 1464609609, 1, '-5.00', 1, 1, 'anna@{domain}', 'US', '55e0de72a3490db4d5ad96451faef51c', 'Anna', 'Gates', 'F', 'M', 18, 35, '', '', '', NULL, 'new york', '10001', '1987-01-01', 'AA', '', NULL, '', '', NULL, 'miles', '0', 0, 0, NULL, NULL, NULL, NULL, 'active', 1465214409, NULL, NULL, NULL, NULL, NULL, NULL),
(90, 1, 'JaruGT', 'ddbf0cb18c4b78d40b6d36c418919b4c', 1464609609, 1464609609, 1, '-5.00', 1, 1, 'JaruGT@{domain}', 'US', '641bccf3a11bae9c18ca180f5fd66a3d', 'Gilen', 'Cock', 'M', 'F', 0, 50, '', '', 'FL', NULL, 'Bradenton', '31556', '1971-11-01', 'AA', '', NULL, '', '', NULL, 'miles', '0', 1, 0, NULL, NULL, NULL, NULL, 'active', 1465214409, NULL, NULL, NULL, NULL, NULL, NULL),
(88, 1, 'BigWill', 'ddbf0cb18c4b78d40b6d36c418919b4c', 1464609609, 1464609609, 1, '-5.00', 1, 1, 'bigwill@{domain}', 'US', '4714ad92f21f7abf27f497217740e571', 'Chris', 'Gayl', 'M', 'F', 18, 40, '', '', 'AL', NULL, 'Fort Richardson', '31556', '1987-07-01', '', '', NULL, '', '', NULL, 'miles', '0', 1, 0, NULL, NULL, NULL, NULL, 'active', 1465214409, NULL, NULL, NULL, NULL, NULL, NULL),
(60, 1, 'mariah', 'ddbf0cb18c4b78d40b6d36c418919b4c', 1464609609, 1464609609, 1, '-5.00', 1, 1, 'mariah@{domain}', 'US', 'f090658003c569a2a773806c73105879', 'Mariah', 'Carey', 'F', 'M', 18, 99, '', '', 'AL', NULL, 'Voice City', '10001', '1980-01-01', '', '', NULL, '', '', NULL, 'miles', '0', 0, 0, NULL, NULL, NULL, NULL, 'active', 1465214409, NULL, NULL, NULL, NULL, NULL, NULL),
(77, 1, 'Manuella', 'ddbf0cb18c4b78d40b6d36c418919b4c', 1464609609, 1464609609, 1, '-5.00', 1, 1, 'Manuella@{domain}', 'US', '157728a5671a13c95e421006a0b36226', 'Manuella', 'Keller', 'F', 'M', 18, 35, '', '', 'AL', NULL, 'new york', '10001', '1981-01-25', '', '', NULL, '', '', NULL, 'miles', '0', 1, 0, NULL, NULL, NULL, NULL, 'active', 1465214409, NULL, NULL, NULL, NULL, NULL, NULL),
(78, 1, 'mimijones', 'ddbf0cb18c4b78d40b6d36c418919b4c', 1464609609, 1464609609, 1, '-5.00', 1, 1, 'jones@{domain}', 'US', '47eaa03002e256a19ec83c61fe06acc7', 'Mimi', 'Jones', 'F', 'M', 18, 35, '', '', 'AL', NULL, 'new york', '10001', '1982-07-01', '', '', NULL, '', '', NULL, 'miles', '0', 1, 0, NULL, NULL, NULL, NULL, 'active', 1465214409, NULL, NULL, NULL, NULL, NULL, NULL),
(81, 1, 'Smailin', 'ddbf0cb18c4b78d40b6d36c418919b4c', 1464609609, 1464609609, 1, '-5.00', 1, 1, 'Smailin@{domain}', 'US', 'b0173136ba8e2807997fec80b2cfcc34', 'Smailin', 'Pires', 'F', 'M', 18, 40, '', '', 'AL', NULL, 'new york', '10001', '1985-01-25', '', 'AA', NULL, '', '', NULL, 'miles', '0', 0, 0, NULL, NULL, NULL, NULL, 'active', 1465214409, NULL, NULL, NULL, NULL, NULL, NULL),
(82, 1, 'Monique', 'ddbf0cb18c4b78d40b6d36c418919b4c', 1464609609, 1464609609, 1, '-5.00', 1, 1, 'Monique@{domain}', 'US', '7bcc17e3b7317e453d6001c63295f6dc', 'Monique', 'kahn', 'F', 'M', 18, 29, '', '', 'AL', NULL, 'new york', '10001', '1978-07-01', '', 'AA', NULL, '', '', NULL, 'miles', '0', 0, 0, NULL, NULL, NULL, NULL, 'active', 1465214409, NULL, NULL, NULL, NULL, NULL, NULL);
-- --------------------------------------------------------
````
I put this in the** index.php**
````
//FreiChat STARTS HERE
if($Username_And_Password_Match)
{
$_SESSION['userid'] = $users['id']; // Modify to suit your requirements
}
$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 passed to FreiChat
}
}
if(!function_exists("freichatx_get_hash")){
function freichatx_get_hash($ses){
if(is_file("/mydomain.com/freichat/hardcode.php")){
require "/mydomain.com/freichat/hardcode.php";
$temp_id = $ses . $uid;
return md5($temp_id);
}
else
{
echo "<script>alert('module freichatx says: hardcode.php file not
found!');</script>";
}
return 0;
}
}
//FreiChat ENDS HERE
````
And lastly I put the script **index_header.tpl** in the template
````
{literal}<script type="text/javascript" language="javascipt" src="http://mydomain.com/freichat/client/main.php?id=<?php echo $ses;?>&xhash=<?php echo freichatx_get_hash($ses); ?>"></script>{/literal}
<link rel="stylesheet" href="http://mydomain.com/freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css">
```
Please help me fix this?
You can also find osdate info at http://www.osdateforum.com/index.php
Regards, Phill
edited Aug 21 '16 at 3:29 am