I'd like to make an sddition as a contribution towards the knowledge I gained here.
In older skins of versions prior to IPB 3, the headers were repeated as well for pinned and other topics. That is still possible with a little extra code, IOW, to go from this:
to this:
You need to do soem further tweaking, as follows:
You can achieve this as follows:
In ACP go to Look & Feel -> Manage Skin Sets & Templates > IP.Board, or a copy thereof if you like.
In Templates, open the Forum View and click on forumIndexTemplate.
In the editing window for the template, find:
<table class='ipb_table topic_list' summary='{$this->lang->words['forum_topic_list']} "{$forum_data['name']}"' id='forum_table'>
Remove the following lines after the [code</caption][/code] statement, just thereafter actually (select and cut, because you need them further down):
<tr class='header'>
<th scope='col' class='col_f_icon'> </th>
<th scope='col' class='col_f_topic'>{$this->lang->words['forum_topic']}</th>
<th scope='col' class='col_f_starter short'>{$this->lang->words['forum_started_by']}</th>
<th scope='col' class='col_f_views stats'>{$this->lang->words['forum_stats']}</th>
<th scope='col' class='col_f_post'>{$this->lang->words['forum_last_post_info']}</th>
<if test="topicsismod:|:$this->memberData['is_mod'] == 1">
<th scope='col' class='col_f_mod short'> <input type='checkbox' id='tmod_all' class='input_check' title='{$this->lang->words['topic_select_all']}' value='1' /> </th>
</if>
</tr>
Now find
<!-- BEGIN TOPICS -->
And just nefore the end if statement insert the code you just cut from higher up:
<!-- Addition for pinned topics separator; Wim G 2010-02-13; BEGIN -->
<tr class='header'>
<th scope='col' class='col_f_icon'> </th>
<th scope='col' class='col_f_topic'>{$this->lang->words['forum_topic']}</th>
<th scope='col' class='col_f_starter short'>{$this->lang->words['forum_started_by']}</th>
<th scope='col' class='col_f_views stats'>{$this->lang->words['forum_stats']}</th>
<th scope='col' class='col_f_post'>{$this->lang->words['forum_last_post_info']}</th>
<if test="topicsismod:|:$this->memberData['is_mod'] == 1">
<th scope='col' class='col_f_mod short'> <input type='checkbox' id='tmod_all' class='input_check' title='{$this->lang->words['topic_select_all']}' value='1' /> </th>
</if>
</tr>
Be careful, it should be between the end tr and end if statements to lign up properly. I edited one too many at first, so I had to add it again.
Now I also want th eheaders filled in properly. In order to do that, first scroll down a little further, to the BEGIN TOPICS segment, and just after the start of the first "for each" loop there, just before the first start "if", add the following code:
<if test="!$this->subHeadShow">
<tr class='subhead altbar'>
<th scope='col' colspan='<if test="endannouncements:|:$this->memberData['is_mod'] == 1">6<else />5</if>'>
<if test="$data['pinned']">
Important Topics
<else />
Forum Topics
</if>
</th>
</tr>
<tr class='header2'>
<th scope='col' class='col_f_icon'> </th>
<th scope='col' class='col_f_topic'>{$this->lang->words['forum_topic']}</th>
<th scope='col' class='col_f_starter short'>{$this->lang->words['forum_started_by']}</th>
<th scope='col' class='col_f_views stats'>{$this->lang->words['forum_stats']}</th>
<th scope='col' class='col_f_post'>{$this->lang->words['forum_last_post_info']}</th>
<if test="topicsismod:|:$this->memberData['is_mod'] == 1">
<th scope='col' class='col_f_mod short'> <input type='checkbox' id='tmod_all' class='input_check' title='{$this->lang->words['topic_select_all']}' value='1' /> </th>
</if>
</tr>
<if test="$this->subHeadShow=1"> </if>
</if>
<if test="$data['pinned']">
<if test="$this->hasPinned=1"> </if>
<else />
<if test="$this->hasPinned">
<if test="$this->hasPinned=0"> </if>
<tr class='subhead altbar'>
<if test="$this->memberData['is_mod'] == 1">
<th scope='col' colspan='6'>
<else />
<th scope='col' colspan='5'>
</if>
Forum Topics
</th>
</tr>
<tr class='header2'>
<th scope='col' class='col_f_icon'> </th>
<th scope='col' class='col_f_topic'>{$this->lang->words['forum_topic']}</th>
<th scope='col' class='col_f_starter short'>{$this->lang->words['forum_started_by']}</th>
<th scope='col' class='col_f_views stats'>{$this->lang->words['forum_stats']}</th>
<th scope='col' class='col_f_post'>{$this->lang->words['forum_last_post_info']}</th>
<if test="topicsismod:|:$this->memberData['is_mod'] == 1">
<th scope='col' class='col_f_mod short'> <input type='checkbox' id='tmod_all' class='input_check' title='{$this->lang->words['topic_select_all']}' value='1' /> </th>
</if>
</tr>
</if>
</if>
Note that I called pinned topics "Important Topics, and other topics "Forum Topics". You can name those whatever you like, just that "Forum Topics" in this instance occurs twice, and has to be edited twice too.
Ok, save and recache, and off you go.
I hope you find this a worthwhile tweak.
Kindest regards, Wim