Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

How to add extra page?

+3 votes
77 views
asked Oct 3 in Q2A Core by тєяσ∂αι
edited Oct 4 by Scott

Hello sir, can you please explain me this in brief? 
http://docs.question2answer.org/code/external/
I tried copying and pasting the same code inside public_html. but it showed error like 'took too long to respond' . am i wrong in doing this or where should i write my custom code as per that link says?

I want to display username on external page. what should i do? where should i paste the code?

 HELP ME PLEASE

1 Answer

+2 votes
answered Oct 4 by Scott

I can't see any reason why you would get "too long to respond" error. If something is wrong with the code you should get a clearer message like it cannot find the included file or something.

If you haven't done so, you need to change the "/PATH/TO/" bit to the correct link for your server. If your Q2A site is the public_html folder (not in a subfolder), then you can do

require_once $_SERVER['DOCUMENT_ROOT'] . '/qa-include/qa-base.php';

commented Oct 4 by тєяσ∂αι
I Copied the same code(Given Here http://docs.question2answer.org/code/external/ ) inside public_html folder but i got no responding. I tried from different browsers.
Can you show me an small example?
...