![]() |
If Profile Field Empty
I want to make a script not run if a profile field is empty, but can't seem to find a conditional for this. I don't want this script to run if my profile field is not filled in:
Code:
if($vbulletin->options['xbl_avatar_system_enable_product'] AND $vbulletin->options['xbl_avatar_system_display_navbar']) |
You can access profile fields like this:
PHP Code:
|
So if($vbulletin->userinfo['field254']) would mean that if it is filled in it would run the script and if it wasn't it wouldn't run the script?
|
PHP Code:
|
Quote:
|
:up:
|
Let's apply some vBulletin coding standards there ;).
PHP Code:
|
Quote:
|
The field ID is the same for all users for a particular field. Each user is assigned their own row in the userfield table, which is fetched along with all the other user data.
|
Quote:
|
All times are GMT. The time now is 04:44 AM. |
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:
|