![]() |
function to check if post is the first post or not...
I need this little bit of code for some hacks I'm working on... but i just can't seem to figure out hor to do this, so I request this piece of code here.
I hope anyone can halp me with this, I just need a function (or a simple if-statement, if there are any variables i dunno of that i can use to do this) to check if a post is the first post in a thread or not. Big thanks to anyone who can help me out with this problem! FlyingDutchman |
FlyingDutchman... in the newthread and newreply.php the variable:
PHP Code:
g-force2k2 |
yeah, that really helps :D
thanks man! *thumbs up* |
what version are you talking about? because I am using 2.2.6, and there's is no '$isfirst' in any vbulletin file?
please help me ;) [edit]Never mind, already found it in editpost.php, just where I needed it! :D :banana: [/edit] |
logically the post with lowest id in a thread would be the first post either (does not apply to old MYSQL versions), but g-force's solution is much better of course :)
|
eww, i don't like sql queries much :) and since g-force's solution won't need any extra queries, it's super! :D
|
All times are GMT. The time now is 07:13 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|