inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,824
January 2015
msg
|
Post by Lynx on Aug 29, 2015 13:53:24 GMT -8
Okay, is there a way to check group ID's. I've got pb.data('group').id, but seeing how I was incorrect with the way I did the boards, I'm guessing I'm wrong with the groups as well. Basically, I want to be able to compare group ID's. The group(s) that are listed from the UI (Search > Groups field) need to be compared to see if the current user belongs to any group(s) listed, and therefore hiding links from them.
EDIT: Okay, I think I might have this figured out, but I still need a confirmation. I'm thinking it should be: pb.data('user').group.id
|
|
#eb7100
33409
0
1
Oct 19, 2024 14:37:42 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Aug 30, 2015 9:33:05 GMT -8
- Type pb.data('user') into the browser's developer console - Click on Object to make each of its properties show in the right bar - Achieve greatness
Everything listed there is what's available for you to use alongside pb.data('user'). So since you're looking for their list of group IDs you want to use the group_ids array listed there, thus you would reference it with:
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,824
January 2015
msg
|
Post by Lynx on Aug 30, 2015 11:14:12 GMT -8
Thank you very much, Brian! Seeing this, can this method also be used to see what's available for something like pb.data('route') or pb.data('page')?
|
|
inherit
222898
0
Jan 13, 2017 12:58:34 GMT -8
Autumn
166
July 2015
exoticstarlight
|
Post by Autumn on Aug 30, 2015 11:19:12 GMT -8
Thank you very much, Brian! Seeing this, can this method also be used to see what's available for something like pb.data('route') or pb.data('page')? Try route, if that doesn't work try the other.
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,824
January 2015
msg
|
Post by Lynx on Aug 30, 2015 11:24:06 GMT -8
Thank you very much, Brian! Seeing this, can this method also be used to see what's available for something like pb.data('route') or pb.data('page')? Try route, if that doesn't work try the other. ? Your response makes no sense to me, as that is not what I was inquiring. Thank you for the reply though - just not what I was looking for.
|
|
inherit
222898
0
Jan 13, 2017 12:58:34 GMT -8
Autumn
166
July 2015
exoticstarlight
|
Post by Autumn on Aug 30, 2015 11:27:09 GMT -8
Try route, if that doesn't work try the other. ? Your response makes no sense to me, as that is not what I was inquiring. Thank you for the reply though - just not what I was looking for. Okay, I apologize. What I was trying to say is that you should try pb.data.('route') first, then if route doesn't work, use pb.data('page') Hopefully that helped you understand.
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,824
January 2015
msg
|
Post by Lynx on Aug 30, 2015 11:30:16 GMT -8
Oh, I understood what you meant. That's not the question I had asked though. Thank you anyways.
|
|
#eb7100
33409
0
1
Oct 19, 2024 14:37:42 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Aug 30, 2015 11:36:42 GMT -8
Thank you very much, Brian! Seeing this, can this method also be used to see what's available for something like pb.data('route') or pb.data('page')? Yup.
|
|
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 Aug 30, 2015 19:16:20 GMT -8
Thank you very much, Brian! Seeing this, can this method also be used to see what's available for something like pb.data('route') or pb.data('page')? Wouldnt it have been easier to just try it real quick lol
|
|
inherit
222898
0
Jan 13, 2017 12:58:34 GMT -8
Autumn
166
July 2015
exoticstarlight
|
Post by Autumn on Aug 30, 2015 19:17:26 GMT -8
Thank you very much, Brian! Seeing this, can this method also be used to see what's available for something like pb.data('route') or pb.data('page')? Wouldnt it have been easier to just try it real quick lol If she went for it, it would probably mess everything up.
|
|
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 Aug 30, 2015 19:23:56 GMT -8
Wouldnt it have been easier to just try it real quick lol If she went for it, it would probably mess everything up. I dont know if u realize but typing things in the console related to the datahash can never produce a harmful result. Are u a coder as well?
|
|
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 Aug 30, 2015 19:24:49 GMT -8
Msg is also male.
|
|
inherit
222898
0
Jan 13, 2017 12:58:34 GMT -8
Autumn
166
July 2015
exoticstarlight
|
Post by Autumn on Aug 30, 2015 19:29:54 GMT -8
If she went for it, it would probably mess everything up. I dont know if u realize but typing things in the console related to the datahash can never produce a harmful result. Are u a coder as well? Oh, I thought you were talking about something else. No I am not, but hopefully someday! But that's not my goal here- my goal here is to help people as much as I can.
|
|