FreiChat related discussions
two table users
/* if you are using database table to store User details */
$usertable='tuser'; //specifies the name of the table in which your user information is stored.
$row_username='nameuser'; //specifies the name of the field in which the user's name/display name is stored.
$row_userid='iduser'; //specifies the name of the field in which the user's id is stored (usually id or userid)


Dear admin,
it's possible to used 2 table at 1 freichat?
I mean if i'm have two table name tuser and tteacher, they have different field too tuser have nameuser and other nameteacher. can you help me bro?

Regards
<code>/* if you are using database table to store User details */ $usertable='tuser'; //specifies the name of the table in which your user information is stored. $row_username='nameuser'; //specifies the name of the field in which the user's name/display name is stored. $row_userid='iduser'; //specifies the name of the field in which the user's id is stored (usually id or userid) </code> Dear admin, it's possible to used 2 table at 1 freichat? I mean if i'm have two table name tuser and tteacher, they have different field too tuser have nameuser and other nameteacher. can you help me bro? Regards
all you need is Jesus

Well, this was only for basic integration , you can make any kind of customization by editing the file
freichat/server/drivers/Custom.php

There you can edit the queries to suit your conditions .

Well, this was only for basic integration , you can make any kind of customization by editing the file freichat/server/drivers/Custom.php There you can edit the queries to suit your conditions .
Necessity is the mother of all inventions!
42
1
0
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