Recent Topics

1 Sep 12, 2007 10:26    

My b2evolution Version: 1.10.x

Okey, need some help with this one.

I would like to include the latest post, and only the latest post in a sigle website.

I thought about using a iframe to do so. I would make a small and simple PHP file that display the lates post, and include it in an other page via an iframe.

The question is, what PHP code do I need, to display only the latest post in a specific blog ?

Can it be done at all ? 8|

2 Sep 12, 2007 18:49

Check backoffice -> Blog settings -> YOUR BLOG -> Display and set Posts/Days per page: to 1.

Good luck

3 Sep 13, 2007 08:23

Afwas,

Thanks for your reply.

What I was looking for was a way to make a standalone direct access PHP file which would be very simple and only shows the latest post from a specific blog.

Your advice would mean that I had to edit the _main.php file for that specific blog skin - would'nt it ? A solution I can't use, cause I need my blog skin as it is now.

By the way...

Check backoffice -> Blog settings -> YOUR BLOG -> Display and set Posts/Days per page: to 1.

Where do I find this setting ?

http://skagenmedia.com/b2evo_ex001.jpg

4 Sep 13, 2007 09:44

You could use a simple RSS parser, fetch your RSS feed and display only the last item. One such very simple software is lastRSS (http://lastrss.oslab.net/).

The setting Afwas mentions is in App Settings -> General for your b2evo version. I think maybe Afwas is already using 2.0.0 where you can set number of posts per page on an individual blog basis (awsome, btw) :)


Form is loading...