View previous topic :: View next topic |
Author |
Message |
flowerglen
Joined: 27 May 2003 Posts: 24
|
Posted: Mon Jan 26, 2004 10:23 pm Post subject: Display 5 recent entries... |
|
|
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 |
|
 |
XianghuaALPHA
Joined: 05 Aug 2003 Posts: 79 Location: Tulsa, OK
|
Posted: Tue Jan 27, 2004 1:55 am Post subject: |
|
|
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 |
|
 |
Timi
Joined: 23 Jul 2003 Posts: 89 Location: Hungary
|
Posted: Tue Jan 27, 2004 4:04 pm Post subject: |
|
|
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 |
|
 |
XianghuaALPHA
Joined: 05 Aug 2003 Posts: 79 Location: Tulsa, OK
|
Posted: Tue Jan 27, 2004 6:33 pm Post subject: |
|
|
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 |
|
 |
XianghuaALPHA
Joined: 05 Aug 2003 Posts: 79 Location: Tulsa, OK
|
Posted: Thu Jan 29, 2004 4:36 pm Post subject: |
|
|
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 |
|
 |
turtelina
Joined: 25 Jan 2002 Posts: 38 Location: Austria
|
Posted: Sat Feb 07, 2004 5:39 pm Post subject: |
|
|
I have been looking for this since months! If you could share the code, it would be beyond brilliant.
 |
|
Back to top |
|
 |
XianghuaALPHA
Joined: 05 Aug 2003 Posts: 79 Location: Tulsa, OK
|
Posted: Tue Feb 10, 2004 7:47 pm Post subject: |
|
|
turtelina wrote: | I have been looking for this since months! If you could share the code, it would be beyond brilliant.
 |
Heh, I think your talkin to me I'll talk with my friend and get back up on here then 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 |
|
 |
turtelina
Joined: 25 Jan 2002 Posts: 38 Location: Austria
|
Posted: Wed Feb 11, 2004 11:55 am Post subject: |
|
|
Awesome, thank you so much and have a brilliant day!
|
|
Back to top |
|
 |
|