I know I already posted this in the general section of the community but I had not found the forum section at that point.
I'm pretty new to moodle and would like to show the user id of the author instead of the username in forums.
My moodle version is 3.1+ (Build: 20160701).
I guess that its probably somewhere in the \moodle\mod\forum folder but i dont really know where i can find it there.
As far as I could conclude the username gets fetched in the lib.php file around line 3713
// User name $fullname = fullname($postuser, has_capability('moodle/site:viewfullnames', $modcontext)); echo '<td class="author">'; echo '<a href="'.$CFG->wwwroot.'/user/view.php?id='.$post->userid.'&course='.$forum->course.'">'.$fullname.'</a>'; echo "</td>\n";
Can I change the fullname to the userid there? And what do I need to change? (Sorry I'm very new to php and programming overall)
Any help would be greatly appreciated.