NP_LinkDump

A simple link dump.

General Plugin info
Author: Frederik Harwath
Current Version: 0.1
Download: NP_LinkDump-0.1.tar.gz
Code: NP_LinkDump_Code
Demo: -
Forum Thread: -

Note: This plugin has less functions than other plugins:

  • NP_LinkDB also administrate links in the frontend but offers addtionally categories for the links.
  • NP_Blogroll offers categories and the administration in the backend

Installation

  1. Download the plugin
  2. tar xzvf NP_LinkDump-0.1.tar.gz
  3. Install the plugin in the Plugins section of the Nucleus admin section
  4. Put <%LinkDump(form)%> somewhere in your skin to show the input form for new links
  5. Put <%LinkDump%> somewhere to show your linkdump or <%LinkDump(output, 20)%> to show your linkdump with the 20 latest 20 instead of the default of 10 recent links

Usage

Use the form to add new links or drag the bookmarklet to your browser's toolbar and add new links using it. Delete links with by clicking on the 'rm' next to every entry when logged in.

History

0.1 - first release (August 14th, 2004)

Bug/Fix

Error in the php code causes the GPL header to appear on every page.
Easy fix take the code from line 4 ”<?” and move to line 1.
e.g. Change this

# Nucleus LinkDump plugin by Frederik Harwath            #
# licensed under the terms and conditions of the GNU GPL #
# see the file LICENSE for the whole text of the GPL     #
<?

to this

<?
# Nucleus LinkDump plugin by Frederik Harwath            #
# licensed under the terms and conditions of the GNU GPL #
# see the file LICENSE for the whole text of the GPL     #

Suggestions / Hints

I modified the code so that the Add-URL-form is only visible when the user is logged in: go near line 100 and modify like this:

 } elseif($type == 'form') 
		{
		if($member->isLoggedIn() ) {
	echo "<form  id=\"linkdump-form\" method=\"get\" action=\"". $CONF['IndexURL'] . "/action.php?action=plugin&amp;name=LinkDump&amp;type=add\">\n";
	echo "	<input type=\"hidden\" name=\"action\" value=\"plugin\" />\n";
	echo "	<input type=\"hidden\" name=\"type\" value=\"add\" />\n";
	echo "	<input type=\"hidden\" name=\"name\" value=\"LinkDump\" />\n";
	echo "URL	<input type=\"text\" name=\"url\" class=\"formfield\" /><br />\n";
	echo "Title	<input type=\"text\" name=\"title\" class=\"formfield\" />\n";
	echo "	<input type=\"submit\" value=\"Add URL\" class=\"formbutton\" />\n";
	echo "</form>\n";
		}
	} 

Plugin review

NP_LinkDump version 0.1 works with Nucleus CMS version 3.31 - 2007-11-14 kg

Plugin overview

linkdump.txt · Last modified: 2007/11/14 00:30 (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