Log in

View Full Version : Custom field required to post in this forum


Bouncer222
08-26-2010, 09:12 PM
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?

BirdOPrey5
08-26-2010, 09:20 PM
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.

Bouncer222
08-28-2010, 01:05 PM
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.

BirdOPrey5
08-28-2010, 01:27 PM
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.