Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
760 views
in Q2A Core by
Hi

I've added a new column in qa_users table , how can I get the column value in the qa-db-select file and define it as

"$useraccount['email']" for example.(in qa-page-user-profile.php)

I want to use it in the user's profile and after user's score in the lists on all around the site

 

Regards
Q2A version: 1.6.1
by
I've tried some code in db-select file but did not work.
Help please.
thanks

1 Answer

+2 votes
by
selected by
 
Best answer
the function you need is

function qa_db_user_account_selectspec($useridhandle, $isuserid)

in

qa-db-selects.php

 

you can add it to the columns array, but to protect yourself in future upgrades you are better off using an 'override'
by
thank you , I'll try it
...