View Full Version : Can you Help me?? Please?
imported_Eternale
09-18-2002, 12:01 PM
how do i get something entered in a added profile field to show up with your post i know where to put it alls i need is the code thanks :d
imported_Eternale
09-18-2002, 12:02 PM
example: i added a field called famous rapper and now i want what poeple entered in that field to show up by there avatar(Below) thanks
give me 10 minutes and ill post the code. :)
ill use your example for this
Open template postbit:
#Find:
$post[avatar]
#Replace by:
$post[avatar]<br />famous rapper: $post[fieldX]
Where the X is in $post[fieldX] replace it with the number of the profile feild you wish to add. dont know the number? no problem :)
in your admin cp (www.yoursiteurl.com/vbdirectory/admin) find User Profile Fields and click the Modify link. This will bring you to a page listing all the profile feilds. pull your cursor over the "[edit]" link but to not click it. a url will apper at the bottom right of your broswer window. the end of this url has a #. that # is the one you sould replace the X with in the above code.
for example.
i have a custom profile feild called "Fav Anime" for my forum. my url when i pull the mouse over the edit link is.
http://www.kousetsu.net/kan/admin/profilefield.php?s=&action=edit&profilefieldid=8
see that 8? that the number for my "Fav Anime" feild. so to add it to the postbit template my code would look like this
$post[avatar]<br />Fav Anime: $post[field8]
hope that helps :)
imported_Eternale
09-19-2002, 03:27 AM
oh thank you it works :D
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.