The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Exclude certain forums from "last post"
I'm not talkiong about the latest posts or new posts etc. I mean the last post down the forum index. Can you use the "&exclude=x" code somewhere?
|
#2
|
|||
|
|||
You could edit the forumhome_lastpostby template and surround all the code by a condition, like:
Code:
<vb:if condition="!in_array($lastpostinfo[forumid], array(1, 2, 3))"> // existing template </vb:if> and of course you'd replace 1, 2, 3 with the forumids you want to exclude. |
#3
|
|||
|
|||
Hey this will just remove the last post from the respectable forum? I'm saying that if there's a subforum within another forum...
Eg. Forum 1 -- Forum1sub In the last post, forum1sub will display under forum 1 in the main index? I just want to exclude this forum from the last post. |
#4
|
|||
|
|||
I'm not sure if you're asking a question or telling me that it's not working. It seems like the answer to your question is that it should only remove the last post from the forums that you list.
If you're saying that doesn't work like you wanted, please explain again. |
#5
|
|||
|
|||
Sorry mate. I don't want the last posts box to be removed.
I'm saying I don't want a subforum to be included in the last post. I think that when you have a sub forum within another forum the sub forum is included with the parents forums last posts. For example... If I have: Forum A --Sub Forum A And I post a thread in sub forum A. The thread will be displayed in the 'last post' in the main index. I don't want that forums posts to be included in the last post box. |
#6
|
|||
|
|||
OK, yeah, that's a lot different. I don't see any way to do that through options or a template edit.
If you're interested in doing some php programming, it looks like the last post that's displayed is determined by function fetch_last_post_array() in includes/functions_forumlist.php. The only hook before that is forumhome_start, and at that point you don't even know the parent forumid yet, so it would be a bit difficult to do it by plug-ins (although it probably could be done). It might be easier if you're willing to edit the functions_forumlist.php file. |
#7
|
|||
|
|||
How could I do this? I'm not very good with php though.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|