View Full Version : Custom profile fields help
ogden2k
02-29-2004, 12:32 PM
What I am trying to do is add a User's PC Stats box in the members profile.
I have added the custom profile fields for each option for the PC stats, which currently shows under Additional information. How do I show specific custom profile fields in my User's PC Stats box and not in the Additional information box?
Dean C
02-29-2004, 12:52 PM
If this is vB2 then try $userinfo[fieldx] like you did in the postbit :)
ogden2k
02-29-2004, 02:31 PM
Sorry, forgot to mention that this is vB3. I may release this has a hack, and give whomever helps me with this. :D
ogden2k
03-01-2004, 12:53 AM
Bump?
Zachery
03-01-2004, 04:04 AM
Bump?
try $post[fieldx] to show info in a post bit
Dean C
03-01-2004, 06:00 AM
Zak - he said in a users profile ;)
$userinfo[fieldx] works btw ;)
ogden2k
03-01-2004, 09:37 AM
I tried $userinfo[fieldx] and the only thing that show's is a weird #, nothing else. How would I exclude these fields from being shown under Additional information?
I'm trying to do a hack where memebers put their PC specs in their profile, then when someone views it, there's a box that says:
Ogden2k's PC Specs:
Windows XP
Linux
P4 3.0 GHz
etc...
Additional Info
Location
Birthday
Do not show certain custom profile fields here (PC specs)
Cyricx
03-01-2004, 04:54 PM
You did replace the x in $userinfo[fieldx] with the number correpsonding to the field you created in the custom profile field manager??
Cyricx
ogden2k
03-01-2004, 08:49 PM
Yes... I'm not a hacker, but I do know my way around vB.. ;)
ogden2k
03-02-2004, 04:27 PM
Anyone? :(
ogden2k
03-03-2004, 02:48 PM
I'm hoping someone has a solution as this would be a cool hack..
NTLDR
03-03-2004, 02:59 PM
Edit the condition in memberinfo_customfields to hide that field and then use $userinfo[fieldX] to display it where you want.
ogden2k
03-04-2004, 02:39 PM
Ok, but what about the other box I created? It's still showing just numbers..?
If I had the field for location, it shows fine. But if I add a custom field, say, 7 it just shows 2203 or some other #..
ogden2k
03-05-2004, 12:36 AM
I am willing to pay a little $ to anyone that helps me with this project. I really want this to work...
ogden2k
03-05-2004, 03:39 PM
Should I post this in the requests section..?
21productionz
03-05-2004, 11:29 PM
insert this before the last </table> in the MEMBERINFO template
<!------------start the computer spec hack---------------------------->
<tr>
<td class="tcat" width="50%">$userinfo[username]'s computer specs</td>
</tr>
<tr valign="top">
<td class="panelsurround" align="center">
<div class="panel">
<div align="$stylevar[left]">
<div class="fieldset">
<table cellpadding="0" cellspacing="$stylevar[formspacer]px" border="0">
<tr>
<td><strong>The above is $userinfo[username]'s computer specs</strong></td>
</tr>
$post[fieldx]
</table>
</div>
</div>
</div>
</td>
</tr>
Just remember to replace the x after field in fieldx ;)
I was going to charge you but I know how it is to want help and it not be available.
ogden2k
03-06-2004, 09:19 AM
The post field does not work though, if it's a mulitiple selection the output is just numbers, same with radios. :(
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.