Hi @pochi555
Please clarify some things:
1. What is a rating badge? Is it usermeta or something else generated via wpforo plugin?
2. What are the places (more precisely) where you need to integrate this rating? Hooks for a profile or for a card in a member directory may differ.
Some screenshots are welcome,
Best Regards!
@nsinelnikov
Thank you for your reply.
Would you please see link url.
https://d.kuku.lu/a81af3371
Regards,
Hi @pochi555
There is an article about templates overriding
https://docs.ultimatemember.com/article/1516-templates-map
You need to customize your members-grid.php template in theme/child-theme and paste some code snippets inside your functions.php file in theme/child-theme.
function um_my_custom_ajax_get_members_data( $data_array, $user_id, $directory_data ) {
$data_array['wpforo_reputation'] = 'some function here for getting the wpforo reputation title and rating. please ask about the proper function in wpforo support team. My suggestion see here https://www.screencast.com/t/CnzaJBOLO';
return $data_array;
}
add_filter( 'um_ajax_get_members_data', 'um_my_custom_ajax_get_members_data', 10, 3 );
Then you can edit members-grid.php template this way https://www.screencast.com/t/CDTbRSivLVox
Let me know if you have other questions,
Best Regards!
@nsinelnikov
Thank you for your reply & support.
I’m asking what to set “$data_array” on the wpforo support board,
but I haven’t received an answer yet.
@nsinelnikov
This issue has been resolved by the wpforo custom support team.
This matter will be closed.
Thank you for your great support!
Regards,