Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
681 views
in Q2A Core by
I asked earlier but i don't think my edit has been noticed.
Trying to install Q2A with single sign on but don't really know how to do it.
After following all the instructions (1 to 8) i get the following error message:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting '&' or T_VARIABLE in /home/hobbyboo/yq.yiphee.co.uk/yq/qa-external/qa-external-users.php on line 19

I have editted the required page and established the correct word to use, but maybe i've entered it wrong. Could you tell me how this line should look:
function qa_get_mysql_user_column_type ('VARCHAR(20)')

1 Answer

0 votes
by
If you want to use the login as the 'connector' between Q2A and your users table, here's how the completed function should look:

function qa_get_mysql_user_column_type()
{
    return 'VARCHAR(20)';
}

But it might be more appropriate you use the member ID column:

function qa_get_mysql_user_column_type()
{
    return 'MEDIUMINT';
}

There's no avoiding the fact that you'll need some PHP knowledge in order to write a single sign-on integration layer, so it might be a good idea to read some of the PHP manual before modifying the other functions.
...