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 

Display 5 recent entries...

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



Joined: 27 May 2003
Posts: 24

PostPosted: Mon Jan 26, 2004 10:23 pm    Post subject: Display 5 recent entries... Reply with quote

how do you get a list of the recent 5 or so entries on your index file. like if i wanted to put it in the sidebar.
Back to top
View user's profile Send private message
XianghuaALPHA



Joined: 05 Aug 2003
Posts: 79
Location: Tulsa, OK

PostPosted: Tue Jan 27, 2004 1:55 am    Post subject: Reply with quote

I too was curious about doing this... Only located on another page - like the front of my site that is also a php document - so like - doing it with a include?


I've done a massive search on this and could not find how to pull this off... Help is appreciated!



X A
_________________
[ [ - - There can be only 2 or 3 - - ]]

You know what. On a quite board - you end up talking to yourself alot....


Friends don't let friends play Tekken™
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Timi



Joined: 23 Jul 2003
Posts: 89
Location: Hungary

PostPosted: Tue Jan 27, 2004 4:04 pm    Post subject: Reply with quote

I don't know exactly, but here's what the readme says:

Quote:
Code:
To include your archives:

<?php include("b2archives.php") ?>
this will include the links to your archives, one link per line.
if your archive mode is "monthly", it will display the names of the months and the years, like "july 2001".
if your archive mode is "post by post", it will display the titles of your posts, one title per line. if a post is untitled it will display the ID (number) of this post.

Back to top
View user's profile Send private message Visit poster's website
XianghuaALPHA



Joined: 05 Aug 2003
Posts: 79
Location: Tulsa, OK

PostPosted: Tue Jan 27, 2004 6:33 pm    Post subject: Reply with quote

Timi wrote:
I don't know exactly, but here's what the readme says:

Quote:
Code:
To include your archives:

<?php include("b2archives.php") ?>
this will include the links to your archives, one link per line.
if your archive mode is "monthly", it will display the names of the months and the years, like "july 2001".
if your archive mode is "post by post", it will display the titles of your posts, one title per line. if a post is untitled it will display the ID (number) of this post.



Yes, but unfortunately I believe that's coming from the perspective of editing the TEMPLATE - and thus that doesn't answer qauestions for -

- What has to be included in a off template page

- what needs to be put into the archive call.

--

However - Flowerglen - I think I've found your answer at least, on another page. It requires some extra coding into a new page, and then the call - but works, and I have it running - in my side bar Lemme go look for that....


http://cafelog.com/board/viewtopic.php?t=1046

Ha - and on that thread from Pimptress, yea, they've got some good looking stuff. Anyway - that thread has some confusing aspects - to which I've inquired - but yea, good times - it works - and is what you asked for at least.



X A
_________________
[ [ - - There can be only 2 or 3 - - ]]

You know what. On a quite board - you end up talking to yourself alot....


Friends don't let friends play Tekken™
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
XianghuaALPHA



Joined: 05 Aug 2003
Posts: 79
Location: Tulsa, OK

PostPosted: Thu Jan 29, 2004 4:36 pm    Post subject: Reply with quote

Well while the original question of the poster, imo, has been answered - the title still goes for / means what I was after as well - so I'll continue posting info here.


Anyway - so the answer to the 'will those other solutions work' is a clear and ringing NO from what I understand - if your dealing with b2 in it's own directory - and you've got ANYTHING else that includes it - like a LJ cloning version - so on so forth - php 101 newb class from what I've heard.

Anyway, so if you want to have the last 5 display on a php page - you have to have a seperate page written up from what I'm understanding - but it works, as you can see here on my first page now -

http://www.onedamnpixel.com

If you note also, I've got it working on my blog still - and that *IS* the solution from before, jus edited a bit - but not much.

--

So - if your looking to have your last 5 entries display on a page nonb2 and outside the b2 dir - looks like there has to be some php magic worked. Luckily I know a PHP God - and also work with him - so he was able to write me up this magical and godlike script.

I believe he's open to sharing it / wanted to as there was no 'nearly as good as his' versions out there anyway - so if anyone is interested in such a hack / php loving, just tell me and I'll ask, and then post up the code.



X A

[/url]
_________________
[ [ - - There can be only 2 or 3 - - ]]

You know what. On a quite board - you end up talking to yourself alot....


Friends don't let friends play Tekken™
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
turtelina



Joined: 25 Jan 2002
Posts: 38
Location: Austria

PostPosted: Sat Feb 07, 2004 5:39 pm    Post subject: Reply with quote

I have been looking for this since months! If you could share the code, it would be beyond brilliant.

Very Happy
Back to top
View user's profile Send private message Visit poster's website
XianghuaALPHA



Joined: 05 Aug 2003
Posts: 79
Location: Tulsa, OK

PostPosted: Tue Feb 10, 2004 7:47 pm    Post subject: Reply with quote

turtelina wrote:
I have been looking for this since months! If you could share the code, it would be beyond brilliant.

Very Happy


Heh, I think your talkin to me Smile I'll talk with my friend and get back up on here then Smile Nice site too btw.



X A
_________________
[ [ - - There can be only 2 or 3 - - ]]

You know what. On a quite board - you end up talking to yourself alot....


Friends don't let friends play Tekken™
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
turtelina



Joined: 25 Jan 2002
Posts: 38
Location: Austria

PostPosted: Wed Feb 11, 2004 11:55 am    Post subject: Reply with quote

Awesome, thank you so much and have a brilliant day!

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