Hello the server that I have hosted in Russia seems to have a BlackListed SMTP. Which sucks because the new owner of the server "me" is affected by this. Now I love this plugin so I can't use the email function so I wanted to edit it to just spit out the Code that was generated to the user instead. So that user who wants to invite someone can send them the code there self + also get the code.
I am using this code but it will only spit out the first code that the user sends out. I am having issues creating this array to show all the codes for that user

If anyone can help guide me that would be awesome!
Code:
$theuserid = $vbulletin->userinfo['userid'];
$result = $vbulletin->db ->query_read("SELECT * FROM vsa_advreg_invite WHERE inviter='$theuserid'");
while($row = $vbulletin->db->fetch_array)
{
$getcode = "You invited: " . $row['invited']. "<br> Your Code to Give: ". $row['code'] . "<br>";
}
And to register the variable
Code:
$templater->register('getcode', $getcode);