Hi,
when I use the popup window option, when I click the “view full profile” in the popup the custom fields I have in buddypress don’t show up.
also, is there a way to show that information on the forum page?
Thanks for all the help!
Hi,
when I use the popup window option, when I click the “view full profile” in the popup the custom fields I have in buddypress don’t show up.
also, is there a way to show that information on the forum page?
Thanks for all the help!
currently, we can put some of our more common profile fields onto the buddypress profile… but afraid the opposite is not true…
are they standard buddypress profile fields? That is, stored in usermeta table? If so, you could use our custom profile fields to pull that information since it pulls things our of usermeta just like wp profile fields do…
barring that, you could hook into the profile display and manually grab (via code added to the template) the buddypress data and display it…
The fields are in the Base (primary) and they are city, state and RV Make & model. how would I use your custom profile fields to get that info?
Thanks!
By default WordPress creates extra profile data in the WP usermeta table with keys of the users ID and a unique ‘name’ of the data item. Many plugins we have encountered that add profile data use the same mechanism.
Simple:Press does the same for the extra profile data we create or make available.
If BuddyPress also uses this standard mechanism – and while I do not actually know if it does – it seems reasonable that it should do – then our custom profile field plugin can be linked to the data simply by creating a custom field of exactly the same name – i.e, the same ‘key’ as used by the parent plugin. This would allow for the data to also be edited on an SP users profile entry form.
The plugin also comes with template tags that allow the user to display the data on the SP profile popup/page – full details of which can be found in the custom profile fields codex page.
I went to sptopicview.php and there was no code there like what is on the codex page. I did find code like it in sptopicviewdesktop.php and I added the line to show the city. it worked, but the text was much larger and the custom avatar stopped displaying and it showed the guest one instead. I put everything back as it was. I am afraid I am not much with coding…..
thanks for the help!
I found this code in sptopicviewdesktop.php in the reboot theme (not the child)
sp_UserAvatar(‘tagClass=spPostUserAvatar spCenter&context=user’, $spThisPostUser);
sp_PostIndexUserName(‘tagClass=spPostUserName spCenter’);
then i added the following:
# Added poster’s game type selection to the forum post, poster information section.
if (function_exists(‘sp_CustomProfileFieldsDisplay’)) sp_CustomProfileFieldsDisplay(‘City’, $spThisPostUser->ID);
this line was listed in the directions but it was already there:
sp_PostIndexUserLocation(‘tagClass=spPostUserLocation spCenter’);
after my first attempt failed I added it anyway, and it still didn’t work right.
thanks!
That page is a little confusing I see.
Can I recommend that you try the same thing but with this tag:
sp_CustomProfileFieldsProfileDisplay( $name, $userid, $label )
It was added to hekpo get the correct html/css styling when applying to the popup profile.
this is what I put in
if (function_exists(‘sp_CustomProfileFieldsDisplay’)) sp_CustomProfileFieldsDisplay( $name, $userid, $label);
is that right, because the city doesn’t show now and the custom avatar is not showing like with the other
No – see post #8 – it is a different function,. Confusing name perhaps – but it IS different.
sp_CustomProfileFieldsProfileDisplay
not
sp_CustomProfileFieldsDisplay
I put this line in instead
if (function_exists(‘sp_CustomProfileFieldsProfileDisplay’)) sp_CustomProfileFieldsProfileDisplay( $name, $userid, $label);
no city diplays and the avatar is still not the custom one
Well you need to actually out the valuers in the arguments not the variable name. Like you did in an earlier post – just using the different function.
But I am confused. I thought you wanted to do this on the users SP Profile popup. Is that not correct? If it is then you should be adding it to the spProfilePopupShow.php template NOT the topic view template.
And if you really DO want to show it in the topic view (against user posts) then this probably is NOT the right function to use. So perhaps we need to clear that up first.
the popup page fixes itself if I use the buddypress option. the second part of my question was getting it on the posting page. I apologize for not being clearer. What section will that entail?
sorry again for the confusion, that is my whole day today…..
thanks for the help!
posting page??? do you mean topic view which is the list of posts in a topic? if so, you would put the same code where you want it in the spTopicView.php template file…