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 

"previous post" option

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



Joined: 09 Sep 2004
Posts: 27
Location: Brooklyn

PostPosted: Thu Sep 09, 2004 6:01 am    Post subject: "previous post" option Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
Sigg3



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

PostPosted: Thu Sep 09, 2004 8:11 am    Post subject: Reply with quote

This is covered in the manual:

http://www.cafelog.com/readme.html
_________________
Sigg3 dot net - because you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
kiss



Joined: 09 Sep 2004
Posts: 27
Location: Brooklyn

PostPosted: Thu Sep 09, 2004 8:14 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
Sigg3



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

PostPosted: Thu Sep 09, 2004 8:16 am    Post subject: Reply with quote

Sorry, it's just that there's alot of people neglecting it. I think alot of people don't even know about it.

You want the previous post link in your b2-loop?
_________________
Sigg3 dot net - because you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
kiss



Joined: 09 Sep 2004
Posts: 27
Location: Brooklyn

PostPosted: Thu Sep 09, 2004 8:19 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
Sigg3



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

PostPosted: Thu Sep 09, 2004 8:29 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
kiss



Joined: 09 Sep 2004
Posts: 27
Location: Brooklyn

PostPosted: Thu Sep 09, 2004 8:39 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
Sigg3



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

PostPosted: Thu Sep 09, 2004 8:31 pm    Post subject: Reply with quote

The string variables are presented chronologically. i.e:

<?php next_post("%","what you want to be before the title","displaytitleyes/no") ?>

% is the title of the concerned post, btw.
_________________
Sigg3 dot net - because you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
kiss



Joined: 09 Sep 2004
Posts: 27
Location: Brooklyn

PostPosted: Sat Sep 11, 2004 9:28 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
kiss



Joined: 09 Sep 2004
Posts: 27
Location: Brooklyn

PostPosted: Sat Sep 11, 2004 9:30 pm    Post subject: Reply with quote

nevermind found it...lemme play around with it a lil bit....
Back to top
View user's profile Send private message Visit poster's website AIM Address
kiss



Joined: 09 Sep 2004
Posts: 27
Location: Brooklyn

PostPosted: Sat Sep 11, 2004 9:36 pm    Post subject: Reply with quote

ok that whole thing looks like gibberish to me (lol) i am the WORSE at php. Any ideas?
Back to top
View user's profile Send private message Visit poster's website AIM Address
Sigg3



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

PostPosted: Mon Sep 13, 2004 3:20 pm    Post subject: Reply with quote

I'm not the right man, I just assume. PM Stevem:)
_________________
Sigg3 dot net - because you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
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