View previous topic :: View next topic |
Author |
Message |
kiss
Joined: 09 Sep 2004 Posts: 27 Location: Brooklyn
|
Posted: Thu Sep 09, 2004 6:01 am Post subject: "previous post" option |
|
|
In my b2 I only allow one blog entry to show at a time. I would like to know how can I add an option where I can have a link saying "previous post" on my CURRENT entry and viewers can see my previous post without having to go thru my monthly archives. Also, if their looking at a previous post an option that automatically says "previous post" AND "next post" without the extended comments in the post that shows. Just the post.
Last edited by kiss on Thu Sep 09, 2004 8:17 am; edited 1 time in total |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 620 Location: Oslo, Norway
|
|
Back to top |
|
 |
kiss
Joined: 09 Sep 2004 Posts: 27 Location: Brooklyn
|
Posted: Thu Sep 09, 2004 8:14 am Post subject: |
|
|
Don't you think I know that already? If you're not gonna help then don't reply at all. I'm seeing too much of ya'll saying that sarcastic shit. "It's in the readme". Obviously I READ the readme and i need further instructions on how to make the link DIFFERENT which is NOT in the ReadMe. |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 620 Location: Oslo, Norway
|
|
Back to top |
|
 |
kiss
Joined: 09 Sep 2004 Posts: 27 Location: Brooklyn
|
Posted: Thu Sep 09, 2004 8:19 am Post subject: |
|
|
I already have the link I just want it to show the entry without the comments that was made. I also want to edit what the link says. Whenever I try it on my own i get parse errors.
IE : The link now says "previous post : No Guarentees". I want to change the link where I have control over what's being said |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 620 Location: Oslo, Norway
|
Posted: Thu Sep 09, 2004 8:29 am Post subject: |
|
|
Changing what the link says is.... uhm... covered in the readme:9
Quote: | <?php next_post() ?> *
Displays a link to the next post(s). (Generally you might want to use that tag only in single-post templates)
Parameters:
format string for the link (default is "%", where % is replaced with the title of the next post)
text to display to announce the link (default is "next post: ")
"yes" or "no": display the title of the post, or no (default is "yes")
"yes" or "no": display a link to the next post only if the next post is in the same category (default is "no")
number: which next post ? if you make it '2', the 2nd next post is linked instead of the 1st next one (default is "1", which means first next post) |
BUT, as for your other issue, far more interesting, I'd look in the file called b2functions.php.
The trick is making it call the post without &more=1&c=1, but you've probably thought about that already. _________________ Sigg3 dot net - because you're worth it! | b2 Cafelog Resource Center |
|
Back to top |
|
 |
kiss
Joined: 09 Sep 2004 Posts: 27 Location: Brooklyn
|
Posted: Thu Sep 09, 2004 8:39 am Post subject: |
|
|
the text to display portion that's said in the manual doesn't tell me if i need to use a ' or a " or a , or another command |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 620 Location: Oslo, Norway
|
|
Back to top |
|
 |
kiss
Joined: 09 Sep 2004 Posts: 27 Location: Brooklyn
|
Posted: Sat Sep 11, 2004 9:28 pm Post subject: |
|
|
Sorry for the late response. I've been real busy. However, I don't have b2functions.php so what do i do about this?
PS - Everything else you've told me worked very well so I appreciate your help. |
|
Back to top |
|
 |
kiss
Joined: 09 Sep 2004 Posts: 27 Location: Brooklyn
|
Posted: Sat Sep 11, 2004 9:30 pm Post subject: |
|
|
nevermind found it...lemme play around with it a lil bit.... |
|
Back to top |
|
 |
kiss
Joined: 09 Sep 2004 Posts: 27 Location: Brooklyn
|
Posted: Sat Sep 11, 2004 9:36 pm Post subject: |
|
|
ok that whole thing looks like gibberish to me (lol) i am the WORSE at php. Any ideas? |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 620 Location: Oslo, Norway
|
|
Back to top |
|
 |
|