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
asked Oct 3, 2017 in Q2A Core by тєяσ∂αι
edited Oct 4, 2017 by Scott

Hello sir, can you please explain me this in brief? 
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?


1 Answer

+2 votes
answered Oct 4, 2017 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, 2017 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?