View previous topic :: View next topic |
Author |
Message |
metr0-trash
Joined: 27 Dec 2004 Posts: 2
|
Posted: Mon Dec 27, 2004 12:39 am Post subject: php function for entry number? |
|
|
hey, i'm having a bit of a unique problem with b2... what's the php call for the entry number of the post? trying to make my site look spiffy but my comments are retarding my progress.. thanks tons!  |
|
Back to top |
|
 |
stevem
Joined: 15 Mar 2003 Posts: 357
|
Posted: Mon Dec 27, 2004 3:51 pm Post subject: |
|
|
Not sure what you mean. If you are in the b2 loop in the template the current post number is given by $ID.
In this loop, which starts in blog.header.php, there is the line Code: | $request = " SELECT $distinct * FROM $tableposts WHERE 1=1".$where." ORDER BY post_$orderby $limits"; | and the post number is given by the ID field in the posts table. |
|
Back to top |
|
 |
metr0-trash
Joined: 27 Dec 2004 Posts: 2
|
Posted: Mon Dec 27, 2004 6:06 pm Post subject: |
|
|
i got it to work... forgot to mention that |
|
Back to top |
|
 |
|