FreiChat related discussions
SMF Friendlist (need help)

Hello,
i have installed Freichat in my SMF Forum and it works fine.
But now i want that only Friends can Chat wiht his Friends.

I have tryed to Change the Funktion ( get_users ) in SMF2.php, but in dosen't work.

What i have to du, to integrate the Friendlist from a user to Freichat?

Thanks for Help.

Hello, i have installed Freichat in my SMF Forum and it works fine. But now i want that only Friends can Chat wiht his Friends. I have tryed to Change the Funktion ( get_users ) in SMF2.php, but in dosen't work. What i have to du, to integrate the Friendlist from a user to Freichat? Thanks for Help.

Hi,

Can you paste the changes that you made in SMF2.php ?

What mod are you using for freinds in SMF ?

Hi, Can you paste the changes that you made in SMF2.php ? What mod are you using for freinds in SMF ?

Hi, thank for your quik reply.
Because it has not worked, i have deleted all my Changes.
In SMF i have installed Buddies-Block.

My installed Mod in SMF are:

  1. Simple Audio Video Embedder

  2. Anonymous Boards

  3. FreiChat

4.Best Answer Intergration

5.Stars to Profile

6.Buddies Block

7.SMF Social Groups Lite

8.AutoAward

  1. Breeze

In ( get_users ) in SMF2.php, i have tryed to add the results of a Query in the buddy_list collum in the WEHER from the get_users Funktion.

In the buddy_list collum from the smf_members Table the user ids are stored like This: 1,2,3,4,5

rry for my bad english

Hi, thank for your quik reply. Because it has not worked, i have deleted all my Changes. In SMF i have installed Buddies-Block. My installed Mod in SMF are: 1. Simple Audio Video Embedder 2. Anonymous Boards 3. FreiChat 4.Best Answer Intergration 5.Stars to Profile 6.Buddies Block 7.SMF Social Groups Lite 8.AutoAward 9. Breeze In ( get_users ) in SMF2.php, i have tryed to add the results of a Query in the buddy_list collum in the WEHER from the get_users Funktion. In the buddy_list collum from the smf_members Table the user ids are stored like This: 1,2,3,4,5 rry for my bad english
edited Jan 5 '15 at 6:31 pm

Hi,

There are other drivers that integrate with buddy systems like JomSocial.php and CB.php in the same folder.

You can look at them to see how the queries are designed.

If you want us to help with the query, you will have to tell us the exact schema for the table that stores the freinds relations.

Hi, There are other drivers that integrate with buddy systems like JomSocial.php and CB.php in the same folder. You can look at them to see how the queries are designed. If you want us to help with the query, you will have to tell us the exact schema for the table that stores the freinds relations.

This is the strukture of the smf_members Table.
Here is also the Friendlist (buddy_list).
The IDs of the Friends are stroed like (1,2,4,5)

CREATE TABLE IF NOT EXISTS smf_members (
id_member mediumint(smile unsigned NOT NULL AUTO_INCREMENT,
member_name varchar(80) NOT NULL DEFAULT '',
date_registered int(10) unsigned NOT NULL DEFAULT '0',
posts mediumint(smile unsigned NOT NULL DEFAULT '0',
id_group smallint(5) unsigned NOT NULL DEFAULT '0',
lngfile varchar(255) NOT NULL DEFAULT '',
last_login int(10) unsigned NOT NULL DEFAULT '0',
real_name varchar(255) NOT NULL DEFAULT '',
instant_messages smallint(5) NOT NULL DEFAULT '0',
unread_messages smallint(5) NOT NULL DEFAULT '0',
new_pm tinyint(3) unsigned NOT NULL DEFAULT '0',
buddy_list text NOT NULL,
pm_ignore_list varchar(255) NOT NULL DEFAULT '',
pm_prefs mediumint(smile NOT NULL DEFAULT '0',
mod_prefs varchar(20) NOT NULL DEFAULT '',
message_labels text NOT NULL,
passwd varchar(64) NOT NULL DEFAULT '',
openid_uri text NOT NULL,
email_address varchar(255) NOT NULL DEFAULT '',
personal_text varchar(255) NOT NULL DEFAULT '',
gender tinyint(4) unsigned NOT NULL DEFAULT '0',
birthdate date NOT NULL DEFAULT '0001-01-01',
website_title varchar(255) NOT NULL DEFAULT '',
website_url varchar(255) NOT NULL DEFAULT '',
location varchar(255) NOT NULL DEFAULT '',
icq varchar(255) NOT NULL DEFAULT '',
aim varchar(255) NOT NULL DEFAULT '',
yim varchar(32) NOT NULL DEFAULT '',
msn varchar(255) NOT NULL DEFAULT '',
hide_email tinyint(4) NOT NULL DEFAULT '0',
show_online tinyint(4) NOT NULL DEFAULT '1',
time_format varchar(80) NOT NULL DEFAULT '',
signature text NOT NULL,
time_offset float NOT NULL DEFAULT '0',
avatar varchar(255) NOT NULL DEFAULT '',
pm_email_notify tinyint(4) NOT NULL DEFAULT '0',
karma_bad smallint(5) unsigned NOT NULL DEFAULT '0',
karma_good smallint(5) unsigned NOT NULL DEFAULT '0',
usertitle varchar(255) NOT NULL DEFAULT '',
notify_announcements tinyint(4) NOT NULL DEFAULT '1',
notify_regularity tinyint(4) NOT NULL DEFAULT '1',
notify_send_body tinyint(4) NOT NULL DEFAULT '0',
notify_types tinyint(4) NOT NULL DEFAULT '2',
member_ip varchar(255) NOT NULL DEFAULT '',
member_ip2 varchar(255) NOT NULL DEFAULT '',
secret_question varchar(255) NOT NULL DEFAULT '',
secret_answer varchar(64) NOT NULL DEFAULT '',
id_theme tinyint(4) unsigned NOT NULL DEFAULT '0',
is_activated tinyint(3) unsigned NOT NULL DEFAULT '1',
validation_code varchar(10) NOT NULL DEFAULT '',
id_msg_last_visit int(10) unsigned NOT NULL DEFAULT '0',
additional_groups varchar(255) NOT NULL DEFAULT '',
smiley_set varchar(4smile NOT NULL DEFAULT '',
id_post_group smallint(5) unsigned NOT NULL DEFAULT '0',
total_time_logged_in int(10) unsigned NOT NULL DEFAULT '0',
password_salt varchar(255) NOT NULL DEFAULT '',
ignore_boards text NOT NULL,
warning tinyint(4) NOT NULL DEFAULT '0',
passwd_flood varchar(12) NOT NULL DEFAULT '',
pm_receive_from tinyint(4) unsigned NOT NULL DEFAULT '1',
breeze_profile_views text NOT NULL,
PRIMARY KEY (id_member),
KEY member_name (member_name),
KEY real_name (real_name),
KEY date_registered (date_registered),
KEY id_group (id_group),
KEY birthdate (birthdate),
KEY posts (posts),
KEY last_login (last_login),
KEY lngfile (lngfile(30)),
KEY id_post_group (id_post_group),
KEY warning (warning),
KEY total_time_logged_in (total_time_logged_in),
KEY id_theme (id_theme)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=22 ;

This is the strukture of the smf_members Table. Here is also the Friendlist (buddy_list). The IDs of the Friends are stroed like (1,2,4,5) > CREATE TABLE IF NOT EXISTS `smf_members` ( `id_member` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `member_name` varchar(80) NOT NULL DEFAULT '', `date_registered` int(10) unsigned NOT NULL DEFAULT '0', `posts` mediumint(8) unsigned NOT NULL DEFAULT '0', `id_group` smallint(5) unsigned NOT NULL DEFAULT '0', `lngfile` varchar(255) NOT NULL DEFAULT '', `last_login` int(10) unsigned NOT NULL DEFAULT '0', `real_name` varchar(255) NOT NULL DEFAULT '', `instant_messages` smallint(5) NOT NULL DEFAULT '0', `unread_messages` smallint(5) NOT NULL DEFAULT '0', `new_pm` tinyint(3) unsigned NOT NULL DEFAULT '0', `buddy_list` text NOT NULL, `pm_ignore_list` varchar(255) NOT NULL DEFAULT '', `pm_prefs` mediumint(8) NOT NULL DEFAULT '0', `mod_prefs` varchar(20) NOT NULL DEFAULT '', `message_labels` text NOT NULL, `passwd` varchar(64) NOT NULL DEFAULT '', `openid_uri` text NOT NULL, `email_address` varchar(255) NOT NULL DEFAULT '', `personal_text` varchar(255) NOT NULL DEFAULT '', `gender` tinyint(4) unsigned NOT NULL DEFAULT '0', `birthdate` date NOT NULL DEFAULT '0001-01-01', `website_title` varchar(255) NOT NULL DEFAULT '', `website_url` varchar(255) NOT NULL DEFAULT '', `location` varchar(255) NOT NULL DEFAULT '', `icq` varchar(255) NOT NULL DEFAULT '', `aim` varchar(255) NOT NULL DEFAULT '', `yim` varchar(32) NOT NULL DEFAULT '', `msn` varchar(255) NOT NULL DEFAULT '', `hide_email` tinyint(4) NOT NULL DEFAULT '0', `show_online` tinyint(4) NOT NULL DEFAULT '1', `time_format` varchar(80) NOT NULL DEFAULT '', `signature` text NOT NULL, `time_offset` float NOT NULL DEFAULT '0', `avatar` varchar(255) NOT NULL DEFAULT '', `pm_email_notify` tinyint(4) NOT NULL DEFAULT '0', `karma_bad` smallint(5) unsigned NOT NULL DEFAULT '0', `karma_good` smallint(5) unsigned NOT NULL DEFAULT '0', `usertitle` varchar(255) NOT NULL DEFAULT '', `notify_announcements` tinyint(4) NOT NULL DEFAULT '1', `notify_regularity` tinyint(4) NOT NULL DEFAULT '1', `notify_send_body` tinyint(4) NOT NULL DEFAULT '0', `notify_types` tinyint(4) NOT NULL DEFAULT '2', `member_ip` varchar(255) NOT NULL DEFAULT '', `member_ip2` varchar(255) NOT NULL DEFAULT '', `secret_question` varchar(255) NOT NULL DEFAULT '', `secret_answer` varchar(64) NOT NULL DEFAULT '', `id_theme` tinyint(4) unsigned NOT NULL DEFAULT '0', `is_activated` tinyint(3) unsigned NOT NULL DEFAULT '1', `validation_code` varchar(10) NOT NULL DEFAULT '', `id_msg_last_visit` int(10) unsigned NOT NULL DEFAULT '0', `additional_groups` varchar(255) NOT NULL DEFAULT '', `smiley_set` varchar(48) NOT NULL DEFAULT '', `id_post_group` smallint(5) unsigned NOT NULL DEFAULT '0', `total_time_logged_in` int(10) unsigned NOT NULL DEFAULT '0', `password_salt` varchar(255) NOT NULL DEFAULT '', `ignore_boards` text NOT NULL, `warning` tinyint(4) NOT NULL DEFAULT '0', `passwd_flood` varchar(12) NOT NULL DEFAULT '', `pm_receive_from` tinyint(4) unsigned NOT NULL DEFAULT '1', `breeze_profile_views` text NOT NULL, PRIMARY KEY (`id_member`), KEY `member_name` (`member_name`), KEY `real_name` (`real_name`), KEY `date_registered` (`date_registered`), KEY `id_group` (`id_group`), KEY `birthdate` (`birthdate`), KEY `posts` (`posts`), KEY `last_login` (`last_login`), KEY `lngfile` (`lngfile`(30)), KEY `id_post_group` (`id_post_group`), KEY `warning` (`warning`), KEY `total_time_logged_in` (`total_time_logged_in`), KEY `id_theme` (`id_theme`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=22 ;
270
4
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