NP_LatestPosts

Show a list with the latest updated items.

General Plugin info
Author: Curtis A. Weyant,
mod by Edmond Hui (admun),
mod by Rork
Current Version: 0.9
Download: np_latestposts_v0.9.zip
Code: code
Demo: -
Forum Thread: here

Instructions

  1. Download and extract the plugin or copy the code and save it as NP_LatestPosts.php
  2. Upload NP_LatestPosts.php to you /plugins directory.
  3. Install it at Plugins Management (if you already have an older version, uninstall it and install the new one).
  4. Put <%LatestPosts%> somewhere in your skin.

Options in Plugins Management

  • Maximum number of entries to display.
  • Offset of posts to display. This can be used to show recent posts outside of the main page (i.e. If you display 10 posts on the main page, you can set this to 10 and have the recent posts show not duplicate with those on the main page)
  • Date format (as used by PHP date() function)
  • Header, Item, and Footer format
  • Type of list to create: Latest entries from current or supplied blog, latest entries from all blogs, or latest entry from each blog (shows only one item from each blog on the site; maximum number is ignored)
  • Length of author, title and blogname

Parameters

  • No parameters will show the default number of latest posts from all blogs
    • <%LatestPosts%>
  • The first parameter still how many items that will be show:
    • <%LatestPosts(10)%> Will show the 10 latest posts from all blogs (overrides default maximum)
  • the second parameter defines from which blog the items will come:
    • if no 2nd parameter is defined, the plugin will show the latest items among all blogs. (see example above);
    • <%LatestPosts(10,myblog)%>: show 10 latest posts from myblog;
    • <%LatestPosts(10,2)%>: show 10 latest posts from blog number 2;

Item format variables

The following variables can be used in the item format:

  • %b = Shortened blog name
  • %B = Blog name
  • %a = Shortened author
  • %A = Author name
  • %d = Post Date
  • %t = Shortened title
  • %T = Title
  • %u = URL to post

Bugs, doubts, hacks and suggestions

Post bugs, doubts, hacks and suggestions here at the Nucleus forum.

Plugin review

NP_LatestPosts version 0.8 works with Nucleus CMS version 3.31 - 2007-11-13 kg

latestposts.txt · Last modified: 2010/11/15 15:32 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki