Page 1 of 1

Arrowchat pull phpBB Usergroup

PostPosted: 25 Apr 2012, 11:32
by thesr5
Wondering if anyone has attempted this and if i should even try. Trying to make user group specific chat rooms. Currently on my site there are areas just for certain groups by using the <!-- IF S_GROUP_ID# --> (for html templates) but im wondering if something like this would work for arrowchat as it integrates with PHPBB already to grab the username, avatar, user profile, etc. if it would be possible for it to grab the user groups as well?

PostPosted: 25 Apr 2012, 15:40
by Jason
I've made this modification before, it was actually very simple but does require PHP/JavaScript knowledge. Basically, I just grabbed the user's group ID with a simple MySQL statement and then passed in as a variable to the JavaScript in the external.php file.

Restricting chat rooms would be even easier though. It's as simple as checking for their group ID in the includes/json/receive/receive_chatroom_room.php and then spitting back an error response if they are not able to join it.

PostPosted: 26 Apr 2012, 10:47
by thesr5
Do you happen to still have this code laying around?

as you have successfully made this work in the past it would eliminate my trial an error on a functional install of my site haha.

PostPosted: 26 Apr 2012, 10:53
by Jason
You won't be able to do this untill you purchase the full version since the code is encrypted on the trial.

PostPosted: 26 Apr 2012, 12:02
by thesr5
Aww thats right, IonCube

PostPosted: 04 May 2012, 08:27
by thesr5
So i purchased a License last night and im now legit, is there anyway you could help implement this feature?

PostPosted: 07 May 2012, 10:18
by thesr5
Jason would you be able to help me get this feature working for PHPBB?

PostPosted: 07 May 2012, 15:02
by Jason
thesr5 wrote:Jason would you be able to help me get this feature working for PHPBB?

Theres not a whole lot more to say, the first post describes what you need to do pretty well. Do you have any questions?

PostPosted: 21 May 2012, 09:57
by thesr5
Yeah, not 100% sure on how to make this work between PHP and java as you describe, I do have this"


Code: Select all
   // Check what group a user is in
       if ( !function_exists('group_memberships') )
       {
          include_once($phpbb_root_path . 'includes/functions_user.'.$phpEx);
       }

       $groups = group_memberships(false,$user->data['user_id']);
       foreach ($groups as $grouprec)
       {
          $template->assign_vars(array(
             'S_GROUP_' . $grouprec['group_id'] => true
          ));
       }


Which is what i used in my PHPBB functions file to specify if a group is to see a specific link or part of a page. But not show on how i would make this work in ArrowChat.

PostPosted: 31 May 2012, 10:46
by thesr5
Been fumbling with this the past few weeks, still unsure how to make this feature work.

PostPosted: 10 Jul 2012, 15:23
by jaden
Please update if/when you do.

PostPosted: 01 Oct 2012, 09:58
by thesr5
I've made absolutely no progress on this. Pretty much gave up on it.

PostPosted: 24 Jan 2014, 21:34
by psaratscheff
It was a nice way to make you buy it and then realize you can't get done what you want haha.

PostPosted: 24 Jan 2014, 23:46
by Jason
New guide for this here: viewtopic.php?f=16&t=1651

Topic Closed

PostPosted: 16 Dec 2014, 00:26
by Staff Bot
[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]