26

(1 replies, posted in PunBB 1.2 discussion)

I found this posting while searching for techniques to remove the View column.  I worked it out myself, by making small modifications to the viewforum.php file.  I don't really like hacking the main files directly, as it will doubtless make updates a little tricky, but it's fast and it works.

There are two lines to comment out in viewforum.php:

<th class="tc3" scope="col"><?php echo $lang_forum['Views'] ?></th>

and

<td class="tc3"><?php echo ($cur_topic['moved_to'] == null) ? $cur_topic['num_views'] : ' ' ?></td>

You could comment out these lines using the HTML commenting tags, but then the output of the column will still be visible in source.  Not that it's such a big deal, but I prefer to clean up the source as well, so I comment the lines out with:

<?php /* remove views    <th class="tc3" scope="col"><?php echo $lang_forum['Views'] ?></th>    */ ?>

and

<?php /* remove views    <td class="tc3"><?php echo ($cur_topic['moved_to'] == null) ? $cur_topic['num_views'] : ' ' ?></td>    */ ?>

This will eliminate those lines from your HTML source altogether.

I am trying to make some very minor changes to a new PunBB install.  I would, for example, like to add a graphic header to match an accompanying blog.  I'm usually pretty good at reading example source HTML and CSS and just hacking away, but I must admit the PunBB method for building an HTML page is a bit opaque.

Is there a tutorial or a forum thread anywhere that discusses this modification step by step?  I'd expect it would be pretty standard stuff.  A few forum searches didn't urn up anything.

TIA

Boy, that was easy.