|
You are here: Home / Documentation / Building a Shout Box in Sitellite |
Building a Shout Box in SitelliteStep 3: Creating Our Shout Box FormBefore we can even display our Shout Box, we'll need a way to create some entries. In the "forms" folder, create a sub-folder named "add". In that folder we'll be creating three files:
First, the access.php file: sitellite_status = approved This just tells Sitellite that we want the form to be public and visible by anyone. Next, our index.php file: <?php This class will generate the Shout Box message submission form, as well as handle the posting of the message submissions. The onSubmit() method inserts the message into the database, then forwards the user to the screen they originally came from, which will have refreshed to include their message. Now, we need to define the form in our settings.php file: [Form] Our form should now be ready. To see it, you can call it from the browser address bar via: http://www.example.com/index/shoutbox-add-form Page 1: What is a Shout Box? |
|
Copyright © 2008, SIMIAN systems Inc. All rights reserved. Privacy policy Some of the icons on this site were created by the Gnome Project. |