![]() |
Requiring an option value to be selected
How, in vBulletin, does one require an option value to be selected. With HTML forms you can just say "required" but I don't see this option available.
I have an option that is required in the newreply template. If they click to submit their message and the option value is empty I would like the post to not go through. I don't want it to default to a value either. Its something the user has to select. One way I found was to add something like this in the plugin code.. but is there a better way? Code:
if (!$vbulletin->GPC['xconditions'] AND strlen($vbulletin->GPC['xconditions']) < 1) |
That plugin is the way it should be checked. (If it's just a checkbox, only the first bit of the conditional is required.)
|
All times are GMT. The time now is 08:18 PM. |
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:
|