The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Kill first post in showthread.php
Any advice on what i can do to stop the first post from showing?
|
#2
|
||||
|
||||
Set it's visible property to zero ? (I can't remember if they have one, and cannot check from where I am).
|
#3
|
||||
|
||||
well when grabbing the posts for the thread tell it in the where query not to grab the first post. the first post id is defined in the thread table
|
#4
|
||||
|
||||
Perhaps if you elaborated - do you mean not show it for all topics dynamically, for just one topic, or just hide all old first posts ?.
|
#5
|
|||
|
|||
Quote:
So heres my theroy. When a user clicks on the thread it will open the showthread.php file so im using this query. $post['postid'] variable is the id of the first post. $foruminfo['killfirstpost'] == 1 is picking which forum to do this at. PHP Code:
|
#6
|
||||
|
||||
The answer depends on what you are trying to achieve and why.
|
#7
|
|||
|
|||
I told you want i'm trying to achive. I'm trying to stop the first post from showing up on the forums that i select. Why isn't really relevant. I'll figure it out...
|
#8
|
||||
|
||||
Gee, sorry I asked. I'll leave you too it.
|
#9
|
|||
|
|||
I figured it out, what i did it add the query when a user makes a new thread and i made a quick script to update all firstpost ids in my forum to set it to 0. Thanks Paul M, didn't know there was a visable row in the post table. I was just getting fustruated at the code, didn't mean to sound rude.
|
#10
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|