O'Reilly logo

Building Online Communities with phpBB 2 by Stoyan Stefanov, Mike Lothar, Jeremy Rogers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Modifying the Forum Body in viewforum_body.tpl

The next file we edit is the viewforum_body.tpl template. This is the file displaying the content of the forum after the index. Here is how our forum looks like before editing the .tpl file:

Modifying the Forum Body in viewforum_body.tpl

The first line of code in viewforum.tpl is a form object, which we leave unchanged. And, as with the index_body.tpl, we move the first table to the end of the file, so that we can get the black lines appearing at the top, right under the menu. In the start of the code, we now have the following table:

<table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline"> <tr> <th colspan="2" align="center" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required