Thread:Project:Support desk/Aprrove account before they are able to login/reply (6)

As I wrote above we are not able to use that extension due to we don´t have email functionallity. I´m trying to create my own extension for this, I am trying piece by piece. Below code works It print the Welcome [Username]. But How should i formulate to print user_name and approved_account value from database on that specific user?