I followed the external access example and it got it to work in a smarty template:
{php}
require_once '/PATH/TO/qa-include/qa-base.php';
require_once QA_INCLUDE_DIR.'qa-app-users.php';
require_once QA_INCLUDE_DIR.'qa-app-cookies.php';
require_once QA_INCLUDE_DIR.'qa-app-post-create.php';
$title='Why do birds sing?';
$content='And why do they fall in love?';
$tagstring='birds,sing,love';
qa_question_create(null, qa_get_logged_in_userid(), qa_get_logged_in_handle(), qa_cookie_get_create(),
$title, $content, '', $content, $tagstring, false, null, null);
{/php}
But know I want to output parts of q2a on that website. Lets say the QUESTION BOX or a QUESTION LIST.
I included
require_once QA_INCLUDE_DIR.'qa-theme-base.php';
and tried to load functions like
body()
But it does not work.
I would be happy if someone could give me an example how this call should look.
I basically want the main area of my questions site showing up on my normal site.
No footer, no header, no sidebar.
Any idea how is the syntax for that ?
The original example works execellent and fills with each reload a new question on my qna site.