Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
696 views
in Q2A Core by
edited by

The instructions give examples for URL log ins, the first one suitable if:

* Your Q2A site:       http://qa.mysite.com/
        * Your login page:     http://www.mysite.com/login
        * Your register page:  http://www.mysite.com/register
        * Your logout page:    http://www.mysite.com/logout

The second suitable if:

* Your Q2A site:       http://www.mysite.com/qa/
        * Your login page:     http://www.mysite.com/login.php
        * Your register page:  http://www.mysite.com/register.php
        * Your logout page:    http://www.mysite.com/logout.php

The third suitable if:

return array(
            'login' => $relative_url_prefix.'../login.php?redirect='.urlencode('qa/'.$redirect_back_to_url),
            'register' => $relative_url_prefix.'../register.php?redirect='.urlencode('qa/'.$redirect_back_to_url),
            'logout' => $relative_url_prefix.'../logout.php?redirect='.urlencode('qa/'.$redirect_back_to_url),
        );

But what if your q2a site is:

http://mysite.com/Q2A/

and

Login, log out and register are:

http://mysite.com/forum/index.php?act=login

http://mysite.com/forum/index.php?act=logout

http://mysite.com/forum/index.php?act=register

And I want to redirect back to URL

ALSO: MySQL user column type, the primary key is a table called ID mediumint(8) but Q2A doesn't seem to like this and gives me this error:

Specified user column type is not one of allowed values - please read documentation

 

Q2A version: Latest as up to 29/08/2012

Please log in or register to answer this question.

...