The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Custom field required to post in this forum
I need a simple mod.
A user must have a specific custom field, in this case, custom field 5 filled out in order to post in a specific forum id. any takers please? |
#2
|
||||
|
||||
I could give you fairly easy instructions to do this yourself using conditionals and editing 1 template...
You could put the quick reply box in the showthread template in a <vb:if condition="..."></vb:if> statement using the condition IF field 5 isn't empty and if in forum x don't show the quick reply box, otherwise do show it. There's an article in the VB4 articles section that explains the use of conditionals in templates... it's near the top of the firs page at the moment so not hard to find. |
#3
|
|||
|
|||
I don't want not to show it, and it's not the reply button, its the create new thread button.
If a user clicks create new thread in forum id 2, and user profile field 5 is not filled in, give them a message instead. This message must appear not after they try to submit a new thread, but before they even try to create it. |
#4
|
||||
|
||||
Well in any case you could hide the "New Reply" button the same way, you could even display a short message or an alternate "new Reply" button that takes them to a custom error page if you wanted- both are possible using template conditionals if you don't find anyone to make a dedicated mod for this. Just FYI.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|