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 

Search, Next, and Previous

 
Post new topic   Reply to topic    boardom Forum Index -> How to ?
View previous topic :: View next topic  
Author Message
Ellen



Joined: 05 Oct 2004
Posts: 1
Location: Toronto, Ontario, Canada

PostPosted: Tue Jan 04, 2005 5:03 am    Post subject: Search, Next, and Previous Reply with quote

I edited the b2template to match my layout (http://ellen.feelslikerain.net/) and apparently, I really want to know the Search code, you know, the code to search through all the posts?!?!!? And does anyone know the Next and Previous post code, if there is one? I'm pretty sure there is, like er.. Here's a lil' example of what I mean..

THE POST IS HERE

Previous - Next

So er- Yeah... -_-
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Sigg3



Joined: 03 Jul 2003
Posts: 898
Location: Oslo, Norway

PostPosted: Tue Jan 04, 2005 10:08 am    Post subject: Reply with quote

Well, you know. This is quite essential information.
I think the world would've been a better place if gadgets' most essential information were in _one_ file.

BUT WAIT!

The world IS a better place!

http://cafelog.com/readme.html
No offence meant, but readme can easily be perceived as 'read me'.
..Which means that you should read me. Or it. The read me file. Read it.
_________________
Sigg3.net - You know you're worth it! | b2 Cafelog Resource Center | Fight my BattleImp!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
ranmajen



Joined: 22 Nov 2004
Posts: 13

PostPosted: Sat Feb 12, 2005 4:57 pm    Post subject: Reply with quote

i have found this in your mentioned page:

<?php posts_nav_link() ?>

but i don't know where to put is appropriate since if i put it in the index page, there will be the links in every post.....

i just want to have it appeared at the bottom of my index, let's say i mark 12 posts for the post paged, i want the link to be after 12th post from the latest.

post 1
post 2
post 3
post 4
post 5
post 6
post 7
post 8
post 9
post 10
post 11
post 12

<< Previous Page :: Next Page >>
_________________
The Dark Heaven
The Vampire Coven
Laputa
Ryoga Hibiki
Back to top
View user's profile Send private message
stevem



Joined: 15 Mar 2003
Posts: 365

PostPosted: Sun Feb 13, 2005 11:48 am    Post subject: Reply with quote

After
Code:
<!-- // this is just the end of the motor - don't touch that line either :) -->
   <?php } ?>

add
Code:
<br><?php posts_nav_link(); ?>
and it will appear where you want it.
Back to top
View user's profile Send private message
ranmajen



Joined: 22 Nov 2004
Posts: 13

PostPosted: Mon Feb 14, 2005 3:33 am    Post subject: Reply with quote

thanks a lot but i have searched another method to deal with it
I have now used the vbulletin page number method Smile
It is great!
_________________
The Dark Heaven
The Vampire Coven
Laputa
Ryoga Hibiki
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> How to ? 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