Thanks to
TESEO for this code
This code is to check if some of the fields of a publisher's profile has certain info, and post the result in the ads (item.php) created by the same publisher.
For example, if publisher Mr. XXX has completed his address information, ads posted by Mr. XXX will say "address info complete" or whatever else you want.
So, in our item.php work with this code:
<?php $user_data = User::newInstance()->findByPrimaryKey(osc_item_user_id());
if ($user_data['FIELD YOU WANT TO CHECK']) { ?>
////////////////// ////////////////// ////////////////// ////////////////// ////////////////// //////////////////
////////////////// ////////////////// WRITE MSG OF HTML CODE HERE //////////////////
////////////////// ////////////////// ////////////////// ////////////////// ////////////////// //////////////////
<?php } ?>
This are the fields you can use:
's_country',
's_region',
's_city',
's_city_area',
's_address',
's_zip',
's_website',
's_phone_land',
's_phone_mobile'