If condition for posts that aren't the first?
PK8 Offline
Junior Member
**
Posts: 13
Joined: Oct 2010
Post: #1
If condition for posts that aren't the first?
Heya, I'm trying to figure out how to create a php if conditional for posts that aren't the first in a thread but I'm having trouble with that. I assume it involves usage of MySQL but that's something I know nothing about. Tongue

MyBB 1.6 + XThreads fan.
(This post was last modified: 12-09-2011 09:36 AM by PK8.)
12-09-2011 09:35 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: If condition for posts that aren't the first?

Code:
<if $postcounter > 1 then>
...
</if>


My Blog
12-09-2011 07:33 PM
Find all posts by this user Quote this message in a reply
MattR Offline
Junior Member
**
Posts: 40
Joined: Jul 2010
Post: #3
RE: If condition for posts that aren't the first?
Or I'd do:

PHP Code:
1
2
3
4
5
6
7
8
if($post['pid'] != $thread['firstpost'])
{
// not first
}
else
{
// first
}


But either should work.

12-09-2011 08:00 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: