Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

nuAccessLevelCode and Group Id

Questions related to using nuBuilder Forte.
Post Reply
ARWEN
Posts: 78
Joined: Thu Nov 01, 2018 6:01 am

nuAccessLevelCode and Group Id

Unread post by ARWEN »

Hi,

string = nuAccessLevelCode() Returns the Access Level Code.

I'm loooking to a function that returns the USER_GROUP_ID (hash cookie) in Javascript?
Janusz
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

Unread post by Janusz »

Arwen,
Maybe you can use following:

create PHP proc. named: my_group

Code: Select all

$gr='#USER_GROUP_ID#';
$js="grp_id='".$gr."';";
nuJavascriptCallback($js);
and from JS you can get the value with:

Code: Select all

var grp_id;
nuRunPHPHidden('my_group', 1);
console.log(grp_id);
If you like nuBuilder, please leave a review on SourceForge
admin
Site Admin
Posts: 2822
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 29 times

Re: nuAccessLevelCode and Group Id

Unread post by admin »

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
ARWEN
Posts: 78
Joined: Thu Nov 01, 2018 6:01 am

Re: nuAccessLevelCode and Group Id

Unread post by ARWEN »

I really appreciate your help. Thank you.
admin
Site Admin
Posts: 2822
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 29 times

Re: nuAccessLevelCode and Group Id

Unread post by admin »

no worries.
Post Reply