Advanced template based forum system

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tusaki
Forum Newbie
Posts: 2
Joined: Sun Jan 05, 2003 9:34 am

Advanced template based forum system

Post by tusaki »

Hi,

AtomicBoard v0.6.1 was just released, please have a look, since we need your feedback. AtomicBoard attempts to create a forum-system which can mimic all other forum systems, and allows skin-designers full freedom. It features one of the most advanced template-engines out there. It is currently in Alpha stage and we are still looking for PHP developers who wish to contribute to the project.

have a look at:
http://cal007300.student.utwente.nl/atomicboard/

Cheers,
- Vincent
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Post by Gen-ik »

I've done something similar to this on my own Forum and it's not too difficult to do.

I use PHP to generate a style-sheet based on a small amount of colours which are stored in an array. A PHP function then calculates any other colours it needs from these 'base' colours.

The actual page layout, or layout of the forum, can be changed using a similar method, but this time using PHP to generate the table layout of the page.

Forum headings and what you want to appear on the actual forum ect are also changable.

All done by reading variables from a standard TXT file which can be easily edited.
tusaki
Forum Newbie
Posts: 2
Joined: Sun Jan 05, 2003 9:34 am

Post by tusaki »

Our template system is a little more advanced than using an array to create tables or stylesheets, let me give an example:

<atomic:userList>
<atomic:userName/>
<atomic:userEmail/>
</atomic:userList>

AtomicBoard will parse this and give a list of users like this

UserA
UserA@mail.com
UserB
UserB@mail.com

a more advanced example:

<atomic:ifUserIsLoggedIn>
<atomic:then>
<atomic:userName/>.
</atomic:then>
<atomic:else>
Guest. Please <atomic:link href="login.def">Login</atomic:link> or
<atomic:link href="register.def"> Register. </atomic:link>
</atomic:else>
</atomic:ifUserIsLoggedIn>

This will generate the current UserName or present the user with an option to login or register him/herself.

for a more complete description of the template-system used in AtomicBoard please have a look here:
http://cal007300.student.utwente.nl/ato ... atemanager

Cheers,
- Vincent
Post Reply