Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
772 views
in Q2A Core by
I want to use this script with Joomla 1.5x. as I seem to have the login in functioning as the Q2A using the joomla users correctly as far a i can tell..

but would like to integrate it to display in the joomla and not with an iframe.

I also have the integration so that it loads the core Joomla Framework so i have access to all the joomla classes.

as in the other posts somebody mentions that there are 2 main files that need to be loaded in Questons 2 Answer... but he did not list them.

so many you can give a quick list of the order or the list of core files that get load for Q2A..

I looked at the files briefly but is the some actual CLASSES that can be loaded from Q2A

--

also was looking the joomla extensions JUMI as it says it can allow you to install php scripts and also give you access to the Joomla Framework..

So just looking for the easiest solution to get integration..



With Jumi
* you can include php, html, javascript scripts into the modules position, articles, category or section descriptions, or into your own custom made component pages,
* you can even include static html or txt pages into your pages without using wrapper component,
* you have full access to Joomla! variables, functions, constants, etc. in your php scripts.

Jumi is ideal solution for
* including banners or text ads into your Joomla! site: no matter if your own or affiliates ones,
* easy and fast inclusion of smart javascript, php, html and dhtml scripts into your Joomla! content,
* fast development of not only small and simple customized modules and plugin solutions based on php, javascript and html or dhtml scripts like flash shows, ads and picture presentations, forms inclusion, etc. But for the development of more sophisticated solutions including database data processing.

For Jumi tips and tricks visit dedicated Tips & Tricks Jumi pages at http://edo.webmaster.am/jumi/tutorial

1 Answer

0 votes
by
I'm not exactly sure what subset of Q2A's functionality you're looking for, but the key things to do before using any part of Q2A are:

1. Define QA_BASE_DIR to be the directory that contains all the qa-* directories like qa-include and qa-theme - see the top of qa-index.php for an example of how to do this dynamically - or you can just use a fixed URL.

2. Include the qa-base.php file whose full path will be:

QA_BASE_DIR.'qa-include/qa-base.php'

3. Call qa_base_db_connect(...) to connect to the database.

You can then use $qa_db to access the database and pull out information that you want.

But I think it will be pretty hard to plug Q2A directly into Joomla, since it's really not (yet) been designed for this purpose. I think it might be better to keep it in a subdirectory, and try and get it to look as similar as possible with a theme.
...