Hi,
string = nuAccessLevelCode() Returns the Access Level Code.
I'm loooking to a function that returns the USER_GROUP_ID (hash cookie) in Javascript?
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
nuAccessLevelCode and Group Id
-
- nuBuilder Team
- Posts: 508
- Joined: Fri Dec 28, 2018 1:41 pm
- Location: Krakow, Poland
- Has thanked: 10 times
- Been thanked: 18 times
Re: nuAccessLevelCode and Group Id
Arwen,
Maybe you can use following:
create PHP proc. named: my_group
and from JS you can get the value with:
Maybe you can use following:
create PHP proc. named: my_group
Code: Select all
$gr='#USER_GROUP_ID#';
$js="grp_id='".$gr."';";
nuJavascriptCallback($js);
Code: Select all
var grp_id;
nuRunPHPHidden('my_group', 1);
console.log(grp_id);
If you like nuBuilder, please leave a review on SourceForge
Re: nuAccessLevelCode and Group Id
ARWEN,
Janusz's is a good answer.
But I've added a new function in the latest version today.
https://wiki.nubuilder.cloud/ ... essLevelId
Steven
Janusz's is a good answer.
But I've added a new function in the latest version today.
https://wiki.nubuilder.cloud/ ... essLevelId
Steven
-
- Posts: 78
- Joined: Thu Nov 01, 2018 6:01 am