The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Close Social Groups
I know we can turn it off but is there a way to turn it to closed? Similar to what the forum does (Inactive Forum) but for social groups.
|
#2
|
||||
|
||||
Define 'closed'. If the forums are closed, no one can see them. So, you want a sign on your social group page that just says the group is closed (and nobody can see a thing)? Or do you mean you want to be able to close it to users joining? Or close it to posting?
Anyway, whichever of those you mean, you will have to modify the code. Depending on which it is, it could just be a simple plugin that you need to write. |
#3
|
|||
|
|||
Lynne,
Closed as in a sign that shows that the group is inactive (Similar to vBulletin's Option for the entire forum). |
#4
|
||||
|
||||
Then just use the group_start_precheck hook to create a plugin with a standard_error (look up the standard_error function in the API (in Quick Links)).
|
#5
|
|||
|
|||
I created a plugin with hook location "group_start_precheck" with the following code:
PHP Code:
|
#6
|
||||
|
||||
Why do you have void in front of the statement? And did you look up standard_error in the vB API like I suggested?
|
#7
|
|||
|
|||
That's the code I got from the vB API.
I'm sorry if I didn't answer your question as I'm a bit new to PHP. |
#8
|
||||
|
||||
Ah, I see where you got it. You don't actually put the 'void' there or any of hte stuff that is light colored. So, it actually would look something like this:
PHP Code:
PHP Code:
|
#9
|
|||
|
|||
Lynne,
Thank you for the help but I did that and still nothing is happening. groups.php can still be accessed. Product: vBulletin Hook: Location: group_start_precheck Title: Close Social Groups Execution Order: 5 Plugin PHP Code: standard_error('Groups is currently closed to improve its features.') Plugin is Active: Yes |
#10
|
||||
|
||||
Did you put a ";" at the end of your line? (Sorry, I was just showing you how to use standard_error in my code above, not making it exactly what should be in the plugin.) The plugin should be:
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|