![]() |
Human Verification Options variable
1 Attachment(s)
Hii..
With 3.8.0, the Human verification options have been changed to checkboxes from option buttons, as in the attached pic. Earlier, to check if register option was enabled I simply used $vbulletin->options['hvcheck_registration'], but this variable isn't available anymore. There is just one variable for the whole setting which is $vbulletin->options['hvcheck']. So, how do I check if register option is check marked. Thanks |
It's now a bitfield. There is a nice function which you can use to check. It is fetch_require_hvcheck() (find it in functions.php).
|
So how do I deal with bitfields? Here is the function:
** Too many lines of vBulletin code ** Earlier, I just used the following to check if register option is checked or not: PHP Code:
How do I achieve similar using bitfield now? Thank you |
<a href="https://vborg.vbsupport.ru/showthread.php?t=166940&highlight=bitfields" target="_blank">https://vborg.vbsupport.ru/showt...ight=bitfields</a>
|
I have seen that already, but i have no idea how to get it started.
I just need to know how do I check if register option is checked or not in $vbulletin->options['hvcheck'] Thanks |
It's as easy as before...
PHP Code:
|
All times are GMT. The time now is 11:04 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:
|