Please or Register to create posts and topics.

Connecting to Member Information from Pie Register

I am using the Pie Register plug-in to create a registration page for new members on our website (https://ecoforecast.org/). When new members register they are able to insert their affiliation, image, and a few sentences about their interests.  I would like this information to show up on my Members page. But right now the Members page is only showing the default WordPress User fields (image and biographical info) which does not include the image, affiliation, and interests for those who have registered using the Pie Registration fields.

From looking at other entries in the forum, I think I need to add some kind of hook and filter similar to what others have used with the Ultimate Member plug-in. My coding experience with WordPress is limited, so I was hoping someone could let me know if I’m on the right track.  I’m wondering if I can add the following function to my functions.php file to connect to the Pie Register registration information.

function my_link($link, $user) {

return https://ecoforecast.org/discussion-board-test/members/.$user>user_login;

}

add_filter(‘asgarosforum_filter_profile_link’, ‘my_link’, 10, 2);

Hello @japeters7

First at all: Sorry for the late reply.

Do you want to add additional information to the Asgaros Forum profile-view or do you want that usernames links to the profiles based on Pie Register?

As far as I understood you try to do the first. In this case you have to use the asgarosforum_custom_profile_content hook. I am not sure how Pie Register works but I guess they also have some code which allows you to access their information. I guess you can find further information at their support-site. Here is some example-code:

add_action('asgarosforum_custom_profile_content', 'custom_profile_data', 10, 1);
function custom_profile_data($user) {
  echo 'More data ...';
  show_additional_stuff($user->ID);
}

 

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Thanks @asgaros!

I was able to use this code to add an “Affiliation” line to the Member’s profile page, but there is no Affilation information that shows up. So I think I actually want the second option you listed above which is to have usernames linked to the profiles based on Pie Register.

I’ve sent a request to the Pie Register support to see what specific tags I need to use for the Pie Register Affiliation or Pie Register About Yourself information.  But if you have thoughts on whether the code you suggested can  be modified or if there is a separate set of code that is needed to link the Member Profiles based on Pie Register profile information.

I thought perhaps doing the following might work, but it didn’t.

add_action(‘asgarosforum_custom_profile_content’, ‘custom_profile_data’, 10, 1);

function custom_profile_data($user) {

       echo ‘Affiliation’;

       show_additional_stuff($user>Affiliation);

}

Hello again @japeters7

THe show_additional_stuff function is just a placeholder which you have to replace with some function/logic to access the data used by Pie Register. I actually dont know how their code looks like and what functions they use so I cant give you any detailed code about it.

But contacting their support should help you with this. Maybe they also have an official programming-documentation with all relevant information.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!