Log in

View Full Version : How can I hide the last post, threads and posts columns in a forum?


ryancooper
04-19-2011, 10:18 PM
I want to hide the last post, threads and posts columns in a forum and sub forum. See Attachment. :) Can some one help me with what i would need to do?

I assume I can edit the template and add a if/else statement but I can not figure it out.

Thanks,
Ryan C:eek:

ryancooper
04-20-2011, 07:36 PM
Can anyone help on this?

kh99
04-20-2011, 07:57 PM
I think you want to edit templates forumhome_forumbit_level1_post and forumhome_forumbit_level2_post and take out the columns you don't want. I believe the headings are in the FORUMHOME template.

ryancooper
04-20-2011, 08:10 PM
But can I do it with a conditional so it only removes them in certain forums? Like this?

<if condition="$forum[forumid] != X">
CODE
</if>


Thanks for the reply!

kh99
04-20-2011, 08:33 PM
Yes. You could do something like:

<if condition="!in_array($forum[forumid], array(1, 2, 3))">
<td class="alt2">$forum[lastpostinfo]</td>
<td class="alt1">$forum[threadcount]</td>
<td class="alt2">$forum[replycount]</td>
</if>

ryancooper
04-27-2011, 02:04 PM
Thanks for the reply i am going to play with this today!

Pirates Ale
11-07-2011, 12:05 PM
Just to bring this up again, I'm wondering how to take out the headers Threads and Posts?

I have been able to take out the data but left with the headers.

Pirates Ale
11-08-2011, 03:28 PM
Just to bring this up again, I'm wondering how to take out the headers Threads and Posts?

I have been able to take out the data but left with the headers.

Anyone have an idea where the header code is located?

Lynne
11-08-2011, 04:35 PM
To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. (Sometimes the template is the one mentioned at the very top of the page source.)