Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you wanted to, you could use existing forum software and/or Wordpress to facilitate what you want, which would be easier than building your own forum from scratch. You could, with that existing framework, set up your own little API to communicate from the iPhone app to the server- for example, send a $_GET request to a PHP script on your server, which would return a list of forum topics. You could have similar PHP scripts that could do similiar functions, like adding a post or deleting topics.</p> <p>That's pretty much how I've got it set up on an iPhone app I recently made- my server has a basic forum system, and I just wrote a couple of PHP scripts to return information from a MySQL server. However, if you'd particularly prefer to use Wordpress/Amazon S3/whatever else, then I could give more specific instructions relating to those services.</p> <p>*<strong><em>EDIT</em>*</strong></p> <p>Here's an example PHP script you could use (after you've created databases):</p> <p><em>forumcategories.php</em></p> <p><code>&lt;?php</code><br> <code>// insert database connecting logic here</code> </p> <p><code>$query = mysql_query("SELECT * from categories");</code> </p> <p><code>echo "&lt;categories"&gt;;</code></p> <p><code>while($row=mysql_fetch_array($query)){</code><br> <code>echo "&lt;category&gt;&lt;id&gt;" . $row['id'] . "&lt;/id&gt;&lt;title&gt;" . $row['title']; . "&lt;/title&gt;&lt;/category&gt;;"</code> </p> <p><code>}</code><br> <code>echo "&lt;/categories&gt;";</code></p> <p><code>?&gt;</code></p> <p>This is a really simple script- of course, you would need to add in code to connect to the database (which can be found easily online) and probably some error checking, but other than that, it will do the trick. What you would do in the iPhone app is send a request to <code>http://yourserver/forumcategories.php</code> and it would return XML listing all of the categories, which can easily be parsed with NSXMLParser and placed into a UITableView, for example.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload