The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Social Groups request
Hello,
I've changed the settings so users can only create 1 social group. but i would like to have it so they can only join 1 until they leave the other that they have joined. Quote:
|
#2
|
|||
|
|||
if ($_REQUEST['do'] == 'create' OR $_REQUEST['do'] == 'docreate')
{ if (!($vbulletin->userinfo['permissions']['socialgrouppermissions'] & $vbulletin->bf_ugp_socialgrouppermissions['cancreategroups'])) { print_no_permission(); } if ($vbulletin->userinfo['permissions']['maximumsocialgroups']) { // fetch the number of groups the user has already created $result = $vbulletin->db->query_first( "SELECT COUNT(groupid) AS total FROM " . TABLE_PREFIX . "socialgroup WHERE creatoruserid = " . $vbulletin->userinfo['userid'] ); if ($result['total'] >= $vbulletin->userinfo['permissions']['maximumsocialgroups']) { standard_error(fetch_error((fetch_socialgroup_perm ('candeleteowngroups') ? 'you_can_only_create_x_groups_delete' : 'you_can_only_create_x_groups'), $vbulletin->userinfo['permissions']['maximumsocialgroups'])); } } } Something like this but to join instead of create --------------- Added [DATE]1384393622[/DATE] at [TIME]1384393622[/TIME] --------------- bump |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|