additem

NP_AddItem

Add Item link

General Plugin info
Author: Peter Hardy, PiyoPiyoNaku
Current Version: v1.4
Download: here
or from the wiki here
Forum Thread: here

Installing

  1. Extract the zip and upload the contents to your plugin directory.
  2. Install the plugin from your Nucleus admin area.
  3. Place <%AddItem%> at the place where you want the “Add New Item” to appear.

Upgrading

If you are upgrading from version 1.1 or lower:

  1. Uninstall your previous installation of NP_AddItem
  2. Upload the new version to Nucleus plugin directory and replace the old one.
  3. Install the plugin from Nucleus admin area.

Usage

Place <%AddItem%> at the place where you want the “Add New Item” to appear.

<%AddItem(Create New Item,extlink)%>

  • Create New Item → will display the link as Create New Item (optional, default is アイテムの追加 for japanese-utf8 users or Add New Item for others)
  • extlink → open the link in new window (optional, default is opening it using pop-up)
    • extlink can be replaced with nopopup to open the link in the same window

Example

For Example can you use the AddItem skinvar in the sidebar.inc of the default skin. If you place it under the link for Admin Url it is only shown for users that are logged in (because of the skinvar <%if(loggedin)%>):

<!-- admin link, only visible if logged in -->
<%if(loggedin)%>
<dd><a href="<%adminurl%>" title="Admin Area">Admin</a></dd>
<dd><%AddItem%></dd>
<%endif%>

History

  • 1.4 - by PiyoPiyoNaku | 17 Mar 2007
    • won’t show the add item link if member is not logged in or not part of the current blog team
  • 1.3 - by PiyoPiyoNaku | 11 Mar 2007
    • Japanese-utf8 language supported
    • skinvar parameter AddItem(nantoka nantoka) will display the link as nantoka nantoka
    • skinvar parameter AddItem(,nopopup) will not open the link in popup while AddItem(,extlink) will open the link in new window
  • 1.2 - by PiyoPiyoNaku | 4 Feb 2007
    • fix the codes and will automatically get the url to bookmarklet.php
    • plugin blog option deleted
  • 1.1 - Use textarea for linktext blog option.
  • 1.0 - Initial release by Peter Hardy.

Plugin review

NP_AddItem version 1.4 works with Nucleus CMS 3.31 - 2007-10-26 kg

 
additem.txt · Last modified: 2009/06/29 22:09 by ftruscot