Help
Discuss or request ArrowChat modifications
User avatar
thesr5
Customer
 
Posts: 10
Joined: 24 Apr 2012, 13:21

 

by thesr5 25 Apr 2012, 11:32

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?
User avatar
Jason
Customer
 
Posts: 2356
Joined: 12 Dec 2009, 16:06

 

by Jason 25 Apr 2012, 15:40

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.
User avatar
thesr5
Customer
 
Posts: 10
Joined: 24 Apr 2012, 13:21

 

by thesr5 26 Apr 2012, 10:47

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.
User avatar
Jason
Customer
 
Posts: 2356
Joined: 12 Dec 2009, 16:06

 

by Jason 26 Apr 2012, 10:53

You won't be able to do this untill you purchase the full version since the code is encrypted on the trial.
User avatar
thesr5
Customer
 
Posts: 10
Joined: 24 Apr 2012, 13:21

 

by thesr5 26 Apr 2012, 12:02

Aww thats right, IonCube
User avatar
thesr5
Customer
 
Posts: 10
Joined: 24 Apr 2012, 13:21

 

by thesr5 04 May 2012, 08:27

So i purchased a License last night and im now legit, is there anyway you could help implement this feature?
User avatar
thesr5
Customer
 
Posts: 10
Joined: 24 Apr 2012, 13:21

 

by thesr5 07 May 2012, 10:18

Jason would you be able to help me get this feature working for PHPBB?
User avatar
Jason
Customer
 
Posts: 2356
Joined: 12 Dec 2009, 16:06

 

by Jason 07 May 2012, 15:02

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?
User avatar
thesr5
Customer
 
Posts: 10
Joined: 24 Apr 2012, 13:21

 

by thesr5 21 May 2012, 09:57

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.
User avatar
thesr5
Customer
 
Posts: 10
Joined: 24 Apr 2012, 13:21

 

by thesr5 31 May 2012, 10:46

Been fumbling with this the past few weeks, still unsure how to make this feature work.
User avatar
jaden
Customer
 
Posts: 15
Joined: 25 Jun 2012, 03:28

 

by jaden 10 Jul 2012, 15:23

Please update if/when you do.
User avatar
thesr5
Customer
 
Posts: 10
Joined: 24 Apr 2012, 13:21

 

by thesr5 01 Oct 2012, 09:58

I've made absolutely no progress on this. Pretty much gave up on it.
User avatar
psaratscheff
Customer
 
Posts: 2
Joined: 24 Jan 2014, 20:59

 

by psaratscheff 24 Jan 2014, 21:34

It was a nice way to make you buy it and then realize you can't get done what you want haha.
User avatar
Jason
Customer
 
Posts: 2356
Joined: 12 Dec 2009, 16:06

 

by Jason 24 Jan 2014, 23:46

New guide for this here: viewtopic.php?f=16&t=1651
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]