ams3521
04-09-2007, 06:38 PM
I've asked the same question on vbulletin.com and org and nobody has been able to help me.
I'm just wondering if any of you guys know if its possible to exclude certain forums from showing on the 'last post' column in the forum home page.
If it helps i'm only concerened in omitting certain sub forums.
Thanks.
popowich
04-09-2007, 08:25 PM
What is the last post column? Do you mean new posts?
If you have a hack that is installed and creating that feature a screen shot may help us identify it.
-Raymond
Peggy
04-09-2007, 11:27 PM
No - he means Last Post. If you look on your forumhome, you'll see across the header strip Forums - Last Post - Threads - Posts
I am in a bit of a rush right now to get out the door to catch a train, but you can use a conditional in the forumhome template around the code that shows the last post column/information that checks for forumID and doesn't output the last post info if it is.
ams3521
04-10-2007, 03:15 AM
Thanks for the replies fellas and the attention. My friend posted this up for me whilst i was busy with something. I'll get him to reread all the replies. Here's a screenshot to try and explain more but Peggy has hit the nail on the head
http://img300.imageshack.us/img300/8144/forumscreenoh8.th.jpg (http://img300.imageshack.us/my.php?image=forumscreenoh8.jpg)
click to enlarge
I just dont want all the news forums to show on the forum index. Well not in the Last Post column. Ive sussed out how to exclude it from the New Posts list and i was hoping it would be something rather similar.
thanks for your time and consideration John. It would be great if it can be done as ive had to shelf a load of work because of it.
WhaLberg
04-10-2007, 03:53 AM
Go to your AdminCP -> Styles & Templates -> Style Manager -> Select Your Style -> Forum Home Templates -> forumhome_forumbit_level2_post
In that template find:
<td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
Replace it with:
<td class="alt2" nowrap="nowrap"><if condition="$forum[forumid] == ID">-<else />$forum[lastpostinfo]</if></td>
Don't forget to change the: $forum[forumid] == ID.
That's all.
Good luck.
ams3521
04-10-2007, 03:38 PM
Thanks for the replies, I'll go and see if the above works now and get back with the results.
ams3521
04-10-2007, 03:55 PM
No the above didnt seem to work, do i need to add the forum id's as there id numbers as all i did was just copy and paste in the code above over the line i had to replace.
If so could you plse leave an example.
Thanks.
WhaLberg
04-11-2007, 06:53 AM
<td class="alt2" nowrap="nowrap"><if condition="$forum[forumid] == ID">-<else />$forum[lastpostinfo]</if></td>
On the code above, you have to change the forumid, for example if the forum id is 2, you must change it to $forum[forumid] == 2
That's all you must do. If you only copied and pasted the code above and didn't changed the ID to your forum id, it won't work. :)
ams3521
04-11-2007, 05:50 PM
It still doesnt seem to work Whalberg as the subforum posts are still showing on the 'last post' column even when i put in the forum id.
Thanks for trying anyhow m8 and if u have any more thoughts then i'm all ears.
WhaLberg
04-12-2007, 07:55 AM
This works for me. It shows "-" if the last post belongs to the specified forum.