boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

php function for entry number?

 
Post new topic   Reply to topic    boardom Forum Index -> Template help
View previous topic :: View next topic  
Author Message
metr0-trash



Joined: 27 Dec 2004
Posts: 2

PostPosted: Mon Dec 27, 2004 12:39 am    Post subject: php function for entry number? Reply with quote

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! Smile
Back to top
View user's profile Send private message Visit poster's website AIM Address
stevem



Joined: 15 Mar 2003
Posts: 357

PostPosted: Mon Dec 27, 2004 3:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
metr0-trash



Joined: 27 Dec 2004
Posts: 2

PostPosted: Mon Dec 27, 2004 6:06 pm    Post subject: Reply with quote

i got it to work... forgot to mention that
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Template help All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group