The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Hey
. 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 .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! Thanks
|
|
#2
|
||||
|
||||
|
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'; |
|
#3
|
||||
|
||||
|
KK, Thanks
. I'll try that now.
|
|
#4
|
||||
|
||||
|
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 .
|
|
#5
|
||||
|
||||
|
i think custom fields are store in the database.
|
|
#6
|
||||
|
||||
|
Yes, custom ones are stored in the database, in the userfields table.
Untest but should work, in member.php replace: PHP Code:
PHP Code:
|
|
#7
|
||||
|
||||
|
It didn't work
, but there were no errors and if the custom fields were filled, the info did appear.
|
|
#8
|
||||
|
||||
|
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?
|
|
#9
|
||||
|
||||
|
Yes, I did replace it. Just tried again, and it won't work :S.
|
|
#10
|
||||
|
||||
|
It does work
![]() What version of vB are you running? Satan |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|