PDA

View Full Version : Validation PHP Code question


JamesAB
01-27-2009, 02:39 PM
First off, thanks for all the help I've been detting this week. I appreciate it and it has saved me from pulling all of my hair out. :)

Are there any examples on using the Validation PHP Code for settings in vBulletin Options?

For example, Ive got a setting with a Varname of jab_thumbnail_path.

I'd like to use the Validation PHP Code to check to make sure that the path enetered is writable before storing it.

I'm just unsure of how to properly access the value entered for jab_thumbnail_path in the Validation PHP Code and what will be displayed to the user if the validation fails.

Or is this not the best place/practice to do this?

Thanks for your help,
James

Dismounted
01-28-2009, 04:37 AM
The option's value is $data, and you just return true, or false.