![]() |
Limit creation of Social Groups
I wanted to make it so members can create 1 Social Group only - not multiple..
I have found a way to set it up so only certain groups can create social groups...but found no way to limit the amount they can create... Is there a Mod for this? I didn't see one... |
I tossed up a script for you, copy the source and paste in texteditor like notepad, and save it as something.xml. Upload it as a product.
How it works : When on the groups.php page, it does a check on the query string to see if it is do=create, if it is, it counts the amount of groups the user viewing the page has created. If the amount is greater than 0, it returns and error message, if not it permits a user to create a group. I tossed this up quickly, I believe it's bug free but let me know ;). It uses 1 query, 0 file mods and 0 table edits. Do not reupload, repost or distribute without my permission, please. Code:
<?xml version="1.0" encoding="ISO-8859-1"?> |
Wow! You're a live saver!! Thank you!! (they need the thank you hack here IMO)
|
Is it possible to do a similar thing where a user can only be a member of one social group at a time?
|
Quote:
Take note, it will not kick users from groups who are already in more than one, but it will prevent them from joining more. They will have to leave all groups before joining a new one. Copy code and include in xml file, upload as a product. As before Do not upload, post or distribute without my consent Code:
<?xml version="1.0" encoding="ISO-8859-1"?> |
All times are GMT. The time now is 07:21 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|