Help
Discuss or request ArrowChat modifications
User avatar
zenpig
Free
 
Posts: 1
Joined: 15 Nov 2012, 06:03

 

by zenpig 15 Nov 2012, 08:16

Just got the trial and messing around with it on a phpBB board and arrowchat is pretty close to what I've been looking for. The integration itself works well but am wondering if anyone has been able to customize an option for showing all logged in users except for hidden. As it is now the options for displaying logged in users is either all or just those on the friends list. I'd rather go with the display all logged in users except for those that have selected to remain hidden on the board so the chat does not give their presence away, too.

I've looked at the integration code for phpBB and it looks pretty doable but of course on the trial there are several encoded files and cannot determine for sure. Before I purchase the script I'm just putting some feelers out there for if anyone has done this already or if anyone with experience in modding it have any pointers.

thanks,
Steve
User avatar
SGoyen
Customer
 
Posts: 1
Joined: 16 Nov 2012, 12:29

 

by SGoyen 17 Nov 2012, 12:44

If anyone is curious(I'm the OP but bit the bullet and bought this and it didn't allow me to keep the original username)this seems to work

in includes/config.php find
Code: Select all
define('DB_USERTABLE_AVATAR','user_avatar');


add after
Code: Select all
define('DB_USERTABLE_HIDDEN','user_allow_viewonline');


in includes/integration.php find
Code: Select all
AND " . TABLE_PREFIX . DB_FRIENDSTABLE . "." . DB_FRIENDSTABLE_FRIENDS . " = 1

add in-line after
Code: Select all
OR " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_HIDDEN . " = 1


in includes/integration.php find below function get_online_list($userid, $time) (should be line 104)
Code: Select all
SELECT DISTINCT " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " userid, " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_NAME . " username, arrowchat_status.session_time lastactivity, " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_AVATAR . "

and inline after

Code: Select all
 " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_HIDDEN . " hidden,  


If you deselect in the Arrowchat admin the show all users option which normally would then show just the friends list of chatters what should populate for users is only others who are not hidden or if they are hidden they will show if they are friends.

Admins cannot see all users in chat this way but you know they are on or off simply by the user list in phpBB which shows offline and online users. I'm still working on it and might take it further but pretty easy quick thing.
User avatar
Staff Bot
ArrowChat Team
 
Posts: 8996
Joined: 07 Nov 2012, 13:41

 

by Staff Bot 16 Dec 2014, 00:26

[b]This thread has been locked because the last post is greater than six months old. There is a good chance that the information in this thread is outdated. Please open a new topic if you wish to discuss this further.[/b]