PDA

View Full Version : Human Verification Options variable


veenuisthebest
01-09-2009, 02:00 PM
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

Dismounted
01-11-2009, 04:22 AM
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).

veenuisthebest
01-11-2009, 12:32 PM
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:

if($vbulletin->options['hvcheck_registration'])
{
//do this
}


How do I achieve similar using bitfield now?

Thank you

Bellardia
01-11-2009, 02:44 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=166940&highlight=bitfields" target="_blank">https://vborg.vbsupport.ru/showt...ight=bitfields</a>

veenuisthebest
01-11-2009, 03:12 PM
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

Dismounted
01-12-2009, 03:33 AM
It's as easy as before...
if (fetch_require_hvcheck('register'))
{
// it is enabled
}