The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hello,
How to get usergroupid of member by javascript? I use vbulletin 5. Thanks! |
|
#2
|
||||
|
||||
|
Code:
<script>
$.ajax({
url: vBulletin.getAjaxBaseurl() + '/ajax/api/user/fetchCurrentUserinfo',
type: "POST",
dataType: 'json',
success: function(response) {
if (response && !response['errors'] {
alert( response['usergroupid'] );
}
}
});
</script>
|
| Благодарность от: | ||
| MarkFL | ||
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|