inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,849
January 2015
msg
|
Post by Lynx on Mar 9, 2016 20:41:30 GMT -8
I haven't played with this one yet, as I don't know how to do a comparison for it with the current user. I'd like to utilize the Members and Groups options in this. Just to clarify what I'm talking about, The Members and Groups options in this: Would someone be kind enough to show me how this would be coded? For Members, let's assume my User ID is 2 and for Groups, let's assume my currently Displayed Group ID is 2 - although I also belong to Group ID's of 5 and 7 (does it matter which Group is currently displayed, or will it check for any Group ID the current user belongs to?). So, let's say Member MSG is added (ID of 2) and Groups added have ID's of 3 and 6. Thanks!
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Mar 10, 2016 14:10:12 GMT -8
I haven't played with this one yet, as I don't know how to do a comparison for it with the current user. I'd like to utilize the Members and Groups options in this. Just to clarify what I'm talking about, The Members and Groups options in this: Would someone be kind enough to show me how this would be coded? For Members, let's assume my User ID is 2 and for Groups, let's assume my currently Displayed Group ID is 2 - although I also belong to Group ID's of 5 and 7 (does it matter which Group is currently displayed, or will it check for any Group ID the current user belongs to?). So, let's say Member MSG is added (ID of 2) and Groups added have ID's of 3 and 6. Thanks! In the pb.data('user') variable u will find a group ids and a display id. U can find other members display id but not group ids. The group search allows admins to choose group names and proboards will automatically turn that into group ids for u. It will return one group number or an array of group numbers if multiple selected. This will be in a standard autoform variable. It sounds to me as if you are getting the wrong impression. If you add msg your member value will hold 2 If you add group yourthirdgroup it will hold 3 You wont get member 2s group number except through the pb.data datahash on a specific page
|
|