Support Forum
Okay, better explain a bit... the label you define on the back end is for the profile edit form... its for the profile users edit and enter a value for the custom profile field... its mean to be descriptive so users know what the input field is for... that label is not intended for display on other portions of the site (though it wouldnt hurt anything if you did)... every where I have used custom profile fields, I have a completely different label on the form than on display... the form is descriptive for editing but the display is short and sweet due to real estate limitations...
basically, there is two ways to get the a custom profile field data element... you are using one method... the second method is that it is also preloaded into the user object (reference by the slug)... so if you custom field name was hometown, for example, you could get at it for a profile without the template tag by
$spProfileUser->hometown
but either way, the intention of the tag was for you to handle the outputting of a label to your liking... for example
echo 'Hometown: ';
sp_CustomProfileFieldsDisplay('hometown', $spProfileUser->ID);
Now we had looked at providing a label in the arguments to the template tag, but that became too limiting... It was limiting because you can put the template tag just about anywhere... if we took the label as input, we would output it in one specific format... and you would be restricted on how it looked... the profile and the user info area of topic view for posts, for example, is quite different...
to say it more succinctly, putting it in the template tag would have forced appearance... letting you do the label gives you complete control...
hope that helps...
Visit Cruise Talk Central and Mr Papa's World
wow, what an answer. Thanks a lot. I decided to simply duplicate a section in profileshow, edited the output variables and now have a nicely looking profile page.
I still think that for those who don't know how to do that it might be worth considering to let the plugin create just that: a new section on showprofile that displays the custom profile fields by default, maybe just be inserting a tag inside a defined place in the template.
Thanks for your help, Claus
good work... problem with making that the standard output is more folks are actually putting it in the user info section on topic view for each post..
but we can consider a couple of specific purpose built location tags and then maybe a general one...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)