Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- InfernoShoutbox.set_usergroup = function(id)
- {
- InfernoShoutbox.shout.ajax = new vB_AJAX_Handler(true);
- InfernoShoutbox.shout.ajax.send('profile.php', 'do=updatedisplaygroup&usergroupid=' + id + '&');
- var rank;
- switch(id) {
- default:
- rank = "error";
- break;
- case 2:
- rank = "regular member";
- break;
- case 7:
- rank = "moderator";
- break;
- case 16:
- rank = "donator";
- break;
- case 22:
- rank = "veteran";
- break;
- case 69:
- rank = "respected";
- break;
- }
- InfernoShoutbox.post_shout("I am now a: "+rank+" with the usergroup ID "+id);
- }
Add Comment
Please, Sign In to add comment