PDA

View Full Version : How to find 1st post in a thread


Thr33
03-10-2010, 11:50 AM
Im trying to code an action into just the original post of a thread but not in replies. So for a new thread it will do something, but when replying in that thread it does something else. Ive been looking through similar related topics but can only find code written in older versions of vbulletin.

Example (in functions_newpost.php)
if $postinfo['postid'] == 0
This is Vbulletin 3.5 for finding the first post in a thread, but it dosnt work in Vbulletin 4.0+

Can anyone help?

Lynne
03-10-2010, 01:45 PM
Are you using a plugin for this? If so, what hook location? Or are you wanting to do a condition in a template? If so, what template. We really need as many details as possible in order to help.

Andy
03-11-2010, 04:14 AM
Im trying to code an action into just the original post of a thread but not in replies.

Please be more specific.

Thr33
03-14-2010, 01:48 AM
It dosnt matter now i worked it out..

if ($type == 'thread')

(TOPIC CLOSED)