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

Wish you a very HAPPY N PROSPEROUS NEW YEAR.

I have 2 questions.

Question No -1.

First of all - I want to include the Login & Register link on my existing html pages.

I have checked the php files an found out that th qa-page.php. Under function - qa_content_prepare - the following code

"if (isset($qa_login_userid)) {
            $qa_content['loggedin'] .............................. TILL ...................            if (!empty($userlinks['register']))
                $qa_content['navigation']['user']['register']=array(
                    'url' => qa_html(@$userlinks['register']),
                    'label' => qa_lang_html('main/nav_register'),
                );
        }"

Contains code for Login & Register. But when I include this script as a part of php in my html files it is not working.

Its just that I need this in header of all my files (HTML as well PHP files). Will also try to include it in header of Q2A and see if it works or not.

Second Question.

I am unable to open up Q2A pages -

It seems there is a problem with the path

when i click on login or register or ask a question. - It is missing "?qa=" part in the url

For example - when i click on login .. it takes the link as -

http://www.managementstudyguide.com/qa/login?to=

rather it should take the link as :

http://www.managementstudyguide.com/qa/?qa=login

Please help...I have been looking for the answers to these questions since last 2 weeks.

 

Thanks

Himanshu

1 Answer

0 votes
by
For the login/register links on your other pages, just use straightforward HTML.

As for the URL structures, you can choose from a number of options in the 'General' section of the 'Admin' panel.
...