The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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 |
#2
|
|||
|
|||
FlyingDutchman... in the newthread and newreply.php the variable:
PHP Code:
g-force2k2 |
#3
|
||||
|
||||
yeah, that really helps
thanks man! *thumbs up* |
#4
|
||||
|
||||
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! :banana: [/edit] |
#5
|
||||
|
||||
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
|
#6
|
||||
|
||||
eww, i don't like sql queries much and since g-force's solution won't need any extra queries, it's super!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|