showblogs

NP_ShowBlogs.php

This plugin provides page link list function.

NP_ShowBlogs is a plugin that carries out the same operation as NP_BlogWithOffset + NP_PageLinkList + NP_OffsetEntriesLink. It’s working on all Nucleus versions starting from version 2.0. This plugin is prefixproof so you can use it with a Nucleus install which uses table prefixes.

General Plugin info
Author: Taka + nakahara21 + kimitake + shizuki
Current Version: 2.7
Download: http://japan.nucleuscms.org/bb/download.php?id=976 [zip] [12KB] [4 files and 1 folder]
Code: Code
Demo: N/A
Forum Thread: nucleus forum

Installing

  1. Unzip the file and upload the contents to your plugin directory
  2. Install the plugin...
  3. Edit your mainindex skin and replace <%blog(...)%> skinvar with <%ShowBlogs(...)%> (see below for syntax details).
  4. Also remember to download and install NP_0PatchBlogid to patch a known vulnerability. See why here: http://forum.nucleuscms.org/viewtopic.php?t=13359

How to use the plugin

:!: Remember to replace <%blog(...)%> skinvar with <%ShowBlogs(...)%>.

Simple: <%ShowBlogs(default/index,15)%>

or: <%ShowBlogs(default/index,15,,2)%>

Full: <%ShowBlogs(grey/short,15,all,2,ASC,15/56,grey/sticky)%>

Available SkinVars and/or TemplateVars

<%ShowBlogs(grey/short,15,all,2,ASC,15/56,grey/sticky)%>

  • parameter1 : name of template
  • parameter2 : amount of items per page
  • parameter3 : blog mode (all:=NP_ShowEveryThing)
  • parameter4(*1): ‘pageswith’ mode (0:none, 1: prev/next only, 2:phpbb type)
  • parameter5 : sort mode (DESC:newest item first, ASC:oldest item first)
  • parameter6(*2): sticky itemID (devided with slash) *
  • parameter7 : templatename used to display sticky item
  • (*1) pageswitch will be displayed top and bottom, twice.
  • (*2) sticky item(s) will be displayed on the first page only.

Options

Tips and Tricks

To style the navigation, add this CSS into your skin css file and modify it to your needs:

/*************************************************** 
   Pagination for NP_ShowBlogs (Inspired from Tipos.com.br)
 **************************************************/ 
.pageswitch { 
   font-family: verdana, sans-serif; 
   font-size: 11px; 
   line-height: 15px; 
   text-align: center; 
} 

.pageswitch a, .pageswitch span { 
   display: block; 
   float: left; 
   padding: 1px 5px 2px; 
   margin-right: 0.1em; 
   border: 1px solid #fff; 
   background: #fff; 
} 

.pageswitch span.current { 
   border: 1px solid #000; 
   font-weight: bold; 
   background: #9F9F9F; 
   color: #fff; 
} 

.pageswitch a { 
   border: 1px solid #9F9F9F; 
   text-decoration: none; 
} 

.pageswitch a:hover { 
   border-color: #000; 
} 

.pageswitch a.nextprev { 
   font-weight: bold; 
} 

.pageswitch span.nextprev { 
   color: #666; 
} 

.pageswitch span.nextprev { 
      border: 1px solid #ddd; 
      color: #999; 
} 

.pageswitch input { 
   font-family: verdana, sans-serif; 
   font-size: 10px; 
   font-weight:bold; 
   float:right; 
   width:20px; 
   border: 3px solid #ddd; 
} 

Wishlist

Bugs

History

Plugin review

NP_ShowBlogs version 2.7 works with Nucleus CMS version 3.31. - 2007-11-28 kg

 
showblogs.txt · Last modified: 2009/11/07 14:04 by aiyumibr