View Full Version : Hide "Last Post" info for selected forums
Valter
12-09-2005, 02:34 AM
Is it possible to make this option in Forum Manager?
Show "Last Post" info? - Yes/No
"Private" or something like that will be shown instead of thread title, last poster info, time... for selected forums only.
aciurczak
12-10-2005, 05:03 AM
I'm not sure if it's doable from forum manager, but it's certainly doable. The templates you need to modify are the:
forumhome_forumbit_level1_post
forumhome_forumbit_level2_post
Find in the templates where it is posting the last post info. Should look something like this:
<td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
replace it with:
<td class="alt2" nowrap="nowrap"><if condition="$forum[forumid] == 17">-<else />$forum[lastpostinfo]</if></td>
This does it for forum #17, change it to whichever forum or forums you'd like to blank.
Valter
12-10-2005, 02:44 PM
Thanks but part of one plugin needs to add option to Forum Manager so I can set in forum options to show last post in that forum or not.
Chris M
12-10-2005, 03:28 PM
Its easily doable - Contact me via PM tomorrow and I'll hook you up with the code to do so :)
Chris
Valter
12-10-2005, 06:19 PM
Tyvm ;)
Hi Cyber,
Can you tell me how to do the same, but with only the TITLE? I would still like to show the rest of the userinfo :nervous:
Gromits
01-09-2006, 07:22 AM
I would also like the code to do the same as the initial poster. Actually for two selected forums.
Can you post here?
...replace it with:
<td class="alt2" nowrap="nowrap"><if condition="$forum[forumid] == 17">-<else />$forum[lastpostinfo]</if></td>
This does it for forum #17, change it to whichever forum or forums you'd like to blank.
Is there a way to add an OR statement into this for two or more fourms?
Such as == 17 or 18 ?
Cheers!
aciurczak
01-10-2006, 03:41 PM
Sure.
<td class="alt2" nowrap="nowrap"><if condition="($forum[forumid] == 17 OR $forum[forumid] == 18)">-<else />$forum[lastpostinfo]</if></td>
should work. If you want to do any more forums than that, you probably want to start using the in_array functions, but I always seem to screw them the first 6 times I code them.
Gromits
01-10-2006, 07:55 PM
Haha ok
Thanks Ill give it a crack.
Heck... Im using Aria + style from vBstyles (love it!) and this is what Ive got in its place: forumhome_forumbit_level2_post:
<td class="alt2" nowrap="nowrap" width="225"><if condition="$forum[link] != ''"><a style="float:$stylevar[right]; padding-top: 9px;" href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img src="$stylevar[imgdir_statusicon]/link_home.gif" alt="$vbphrase[aria_forum_link]" border="0" /></a><else />$forum[lastpostinfo]</if></td>
<td class="alt1" width="80"><if condition="$forum[link] != ''"> <else />$forum[threadcount]</if></td>
EricR
10-25-2006, 10:38 PM
Any idea why this would work for Level2 but not work for Level1? For some reason it isn't recognizing the forumid on Level1 but it does for Level2, and the code is identical. :(
I did some more testing, level1 does work it just doesn't work on the actual Forum Home page. If I open a category then Level1 does work. So what template is being used on the actual Forum Home page (the page that shows all categories and forums)?? How do I hide the "Last Post" content for a specific forum on the main forums page??
JohnBee
11-14-2006, 01:55 AM
Has anyone got this working yet?
I would like to hide the last post in forum home for select forums..
aciurczak
11-15-2006, 12:26 PM
It's working as advertised for me; I have two forums that I blank out last post, and another forum where I blank out post/thread counts, using the template mods right in this thread.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.