Guest User

Untitled

a guest
Jun 24th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. InfernoShoutbox.set_usergroup = function(id)
  2. {
  3. InfernoShoutbox.shout.ajax = new vB_AJAX_Handler(true);
  4. InfernoShoutbox.shout.ajax.send('profile.php', 'do=updatedisplaygroup&usergroupid=' + id + '&');
  5. var rank;
  6. switch(id) {
  7. default:
  8. rank = "error";
  9. break;
  10.  
  11. case 2:
  12. rank = "regular member";
  13. break;
  14.  
  15. case 7:
  16. rank = "moderator";
  17. break;
  18.  
  19. case 16:
  20. rank = "donator";
  21. break;
  22.  
  23. case 22:
  24. rank = "veteran";
  25. break;
  26.  
  27. case 69:
  28. rank = "respected";
  29. break;
  30. }
  31. InfernoShoutbox.post_shout("I am now a: "+rank+" with the usergroup ID "+id);
  32. }
Add Comment
Please, Sign In to add comment