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:
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.
0.1 - first release (August 14th, 2004)
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 #
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&name=LinkDump&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";
}
}
NP_LinkDump version 0.1 works with Nucleus CMS version 3.31 - 2007-11-14 kg