FreiChat related discussions
Two types of users

I have two types of users, the user type is saved in session
in hardcode.php i have set the user table deatails as follows

/ Custom driver /
if($_SESSION['user_type']=='shop'smile
{
$usertable='shop'; //specifies the name of the table in which your user information is stored.
$row_username='name'; //specifies the name of the field in which the user's name/display name is stored.
$row_userid='usr_id'; //specifies the name of the field in which the user's id is stored (usually id or userid)
}
else
{
$usertable='users'; //specifies the name of the table in which your user information is stored.
$row_username='fullname'; //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)
}

but custom.php always takes the else option always

i tried to customize the custom.php but there i cant get the session variable

Help me please....

I have two types of users, the user type is saved in session in hardcode.php i have set the user table deatails as follows /* Custom driver */ if($_SESSION['user_type']=='shop') { $usertable='shop'; //specifies the name of the table in which your user information is stored. $row_username='name'; //specifies the name of the field in which the user's name/display name is stored. $row_userid='usr_id'; //specifies the name of the field in which the user's id is stored (usually id or userid) } else { $usertable='users'; //specifies the name of the table in which your user information is stored. $row_username='fullname'; //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) } but custom.php always takes the else option always i tried to customize the custom.php but there i cant get the session variable Help me please....

Hi,

You can pass the type session variable to freichat as a GET parameter in the freichat copy/paste code.

Let us know if you want help with that.

Hi, You can pass the type session variable to freichat as a GET parameter in the freichat copy/paste code. Let us know if you want help with that.
88
1
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft