I'm wondering how I can pull these stats into custom user fields, I'm assuming as its written into xenforo I can just do a php call back? But I'm having a little trouble understanding and was wondering if someone could perhaps help me with the first one just so I don't ruin it.
I can't find any examples so I'm wondering exactly what is it I need to call back on, the xenforo template or the actual php file within the library.
I'm assuming its something like this?
Where I have a php file in library/YFL/Rivals/ControllerPublic/Rivals.php and the code is as follows:
$fields = array("played", "shots", "mom", "shots_per_game", "goals_per_game", "assists", "goals", "rating");
$orderBy = 'goals';
php callback: YFL_Rivals_ControllerPublic_Rivals
Or am I completely getting this wrong?