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

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

Is there the person developing SSI?

+1 vote
I hope to display list of questions or tags in the main site.
Is there the person developing of versatility program to refer to DB of Q2A flexibly like below SSI(Server-Side-Include) of SMF? OR, Is such a thing possible by existing program?

http://www.simplemachines.org/community/ssi_examples.php
asked Jun 3, 2010 in Q2A Core by sama55

2 Answers

+1 vote
Version 1.1, now in development, will include RSS support, which will make it much easier to include content from your QA site in your main site. It is scheduled for release during July.
answered Jun 4, 2010 by gidgreen
Waw! July really? When test is necessary, please say. I cooperate.
Thanks. There will be a beta available for testing first, which I'll post about on this site.
+1 vote
If you just want to insert a list of questions just call the database. I was working on a iphone version to just view the questions and answers.

I used this to grab the last 20 questions and link to them. Still working on the answers part.

<?php
                // Make a MySQL Connection
                mysql_connect("localhost", "user", "password") or die(mysql_error());
                mysql_select_db("dbname") or die(mysql_error());

                // Get all the data from the "qa_posts" table
                $result = mysql_query("SELECT * FROM qa_posts where type='Q' ORDER BY postid DESC LIMIT 0, 20")
                or die(mysql_error());  

                while($row = mysql_fetch_array( $result )) {
                    // Print out the contents of each row
                    echo '<li>';
                    echo '<a href="http://whatever.com/';
                    echo $row['postid'];
                    echo '">' . $row['title'] . '</a>';
                    echo '</li>';
                    echo 'posted by: ' . $row['userid'] . '<br /><br />';
                }

                ?>
answered Jun 4, 2010 by johnpowell
Thank you john. ^^
I wish cords such as the above is implemented in the core.
I think that it makes Q2A a better thing to cooperate with CMS such as Wordpress, Drupal, Joomla!, MODx or iPhone, iPad. If it come true, it is easy to make Integration-Subsystem of each system, too.
i will username and not userid