NOTICE!: Before I begin my post, this does not show you the full code, though this is inconvenient, please do not get upset, I'm showin you the Basics, NOT the actual, full length code. IT REQIRES MANY PAGES TO COMPLETE THIS CODE!
01.Starting Off: The start off with, you'll need a table that is easy for use,
- Quote:
-
[if:open] [if:can_post] <form action="addMessage.php?area=[area_id]&thread=[thread_id]&p=[current_page]" method="post"> <a name="post"></a> <p>Message:<br> <textarea name="message" cols="60" rows="12"></textarea><br><br> <input type="submit" name="submit" value="Submit"></p> </form> [endif:can_post] [elseif:can_post] <p class="content"><b>Error:</b> You do not have permission to post in this forum.</p> [endelse:can_post] [endif:open] [elseif:open] <p class="content">This thread has been locked by a staff member, you cannot post a reply.</p> [endelse:open]
Only a bit of editting and this can be turned into a New Topic code as well. This code only works on the Acornrack Server and does not belong to me. <table border="1"> <tr> <td>Forum Name</td> <td>Number of Topics</td> <td>Posts #</td> </tr> <tr> <td>Forum Name & Description(The actual name)</td> <td>number of topics (The actual number)</td> <td>number of posts (the actual number)</td> </tr> </table> [/quote] It should look like this:

- Quote:
-
<br><table border="1"> <tr> <td>Forum Name & Description(The actual name)</td> <td>number of topics (The actual number)</td> <td>number of posts (the actual number)</td> </tr></table>
You continue to use that same code until you are finished making boards.
02.Linking up Boards: You need Links to make your boards correct? Well thats the simple part. Example linking: board1.php(or HTML, it depend on your host). The Magic code that pulls it together:
- Quote:
-
<a href="board1.php">Board #1</a>
That short code helps you create links. Its VERY easy to understand.
03.Posting: A post code is much harder than the rgular codes, here is an example from www.acornrack.com/ :
- Quote:
-
<table border="0" cellspacing="1" cellpadding="1" width="75%"> <tr class="tableDark"> <td valign="top" width="25%"><a href="user.php?id=[posted_by_id]">[username]</a><br> [userlevel]<br> [if:avatar]<img src="[avatar]" height="90" width="90">[endif:avatar]<br> [date_posted]<br> [if:mod][<a href="[edit_thread_url]">Edit</a> | <a href="[delete_thread_url]">Delete</a>]<br> [<a href="[lock_url]">[if:locked]Unlock[endif:locked][elseif:locked]Lock[endelse:locked]</a> | <a href="[sticky_url]">[if:sticky]Unsticky[endif:sticky][elseif:sticky]Sticky[endelse:sticky]</a>]<br>[endif:mod] [elseif:mod] [if:author] [<a href="[edit_thread_url]">Edit</a>] [endif:author] [endelse:mod] </td> <td width="75%" valign="top"><b>[thread_name]</b><br> [thread]<br><br> [if:edited]<span class="small">Last edited by <a href="user.php?id=[edited_by_id]">[edited_by]</a>, on [edited_date].</span>[endif:edited] </td> </tr> </table> [stop:posts] [if:mod]<form action="forum.php?area=[area_id]&thread=[thread_id]&mdp=[thread_id]" method="post">[endif:mod] <br> [if:replies] <table border="0" cellspacing="2" cellpadding="5" width="75%"> [start:replies] <tr class="[alt_color]"> <td valign="top" width="25%" class="tableDark"><a name="[post_id]"></a><a href="user.php?id=[posted_by_id]">[username]</a><br> [userlevel]<br> [if:mod][<a href="[edit_post_url]">Edit</a> |<input type="checkbox" name="delete[post_id]" value="1" /> Delete][endif:mod] [elseif:mod] [if:author] [<a href="[edit_post_url]">Edit</a>] [endif:author] [endelse:mod] </td> <td width="75%" valign="top">[post]<br><br> <span class="small">[date_posted]. [if:edited]<small>Last edited by <a href="user.php?id=[edited_by_id]">[edited_by]</a>, on [edited_date].</small>[endif:edited]</span> </td> </tr> [stop:replies]
</table>
With some tweeking the code can be a 'New Topic code as well, This code ONLY works on the acornrack server and I do not claim it as my own.
04. Finishing up: Clean up useless codes and code your own things. Here is a very helpful site: http://www.w3schools.com/
This is a very simple tutorial, and much of it is quite easy, if you still need help, feel free to PMail me.
|