![]() |
"N/A" when a Profile field is not filled
Hey :D. I've just searched for a hack like this one I'm requesting but couldn't find any.. *heh* That's why I'm requesting it :D.
I'd like that when in the profile, fields such as the Optional Information ones or the Additional Information ones aren't filled, a "Not Available" to appear in the profile. Hope you guys can help me! :D Thanks :) |
There are a few hacks that do certain fields. All you need to do if go through member.php and find the variables (like $userinfo[icq] for ICQ) and add what you want to be displayed instead of a blank field.
Eg $userinfo[icq]=''; would become $userinfo[icq]='N/A'; |
KK, Thanks :). I'll try that now.
|
It worked for the ICQ, AIM and Yahoo fields, but I couldn't find any way of doing the same with the custom fields.. Any idea? :$
Thanks for the help btw :). |
i think custom fields are store in the database.
|
Yes, custom ones are stored in the database, in the userfields table.
Untest but should work, in member.php replace: PHP Code:
PHP Code:
|
It didn't work :(, but there were no errors and if the custom fields were filled, the info did appear.
|
It should work fine, I just tested the code and the results were as expected. You did replace the code and not add before or after it?
|
Yes, I did replace it. Just tried again, and it won't work :S.
|
It does work:)
What version of vB are you running? Satan |
All times are GMT. The time now is 11:39 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:
|