NP_BlogWithOffset, NP_PageLinkList and NP_OffsetEntriesLinks are deprecated. Please try NP_ShowBlogs

NP_BlogWithOffset.php

This plugin add a new skinvar similar to the blog or otherblog skinvars. But this skinvar accepts limit and/or offset in the query string, allowing one to dynamically specify how many entries to show.

General Plugin info
Current Version: v1.2a
Download: n/a
Code: click here
Demo: n/a
Forum Thread: forum here

Installing

  1. Copy the code from link above into a file called NP_BlogWithOffset.php
  2. Upload the file in your plugins directory
  3. Install it from plugin admin menu
  4. Replace all instances of the <%blog(…)%> or <%otherblog(…)%> skinvars in whichever skin you wish to use this plugin with calls like “<%Plugin(BlogWithOffset,templatename,numberofentries)%>”

Available SkinVars and/or TemplateVars

The use of the skinvar is same way compared to how the blog skinvar works. Examples:

  • <%Plugin(BlogWithOffset,templatename, numberofentries)%>
  • <%Plugin(BlogWithOffset, templatename, numberofentries, categoryname, otherblogname)%>

The skinvar has parameters:

  • templatename: the name of the template to display
  • numberofentries: number of entries to display
  • categoryname: category#, if only one category is to display
  • otherblogname: blog#, if display other than default blog

History

  • v1.2a - use sql_query
  • v1.2 - support for SqlTablePrefix
  • v1.1 - fix for FancyURL
  • v1.0 - initial version
blogwithoffset.txt · Last modified: 2006/07/05 13:03 (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