To override the settings specified inside of the plugin settings page, the two commands can be called with options. Here is the syntax to call these options:
[link-library-cats categorylistoverride="28"]
Overrides the list of categories to be displayed in the category list
[link-library-cats excludecategoryoverride="28"]
Overrides the list of categories to be excluded in the category list
[link-library categorylistoverride="28"]
Overrides the list of categories to be displayed in the link list
[link-library excludecategoryoverride="28"]
Overrides the list of categories to be excluded in the link list
[link-library notesoverride=0]
Set to 0 or 1 to display or not display link notes
[link-library descoverride=0]
Set to 0 or 1 to display or not display link descriptions
[link-library rssoverride=0]
Set to 0 or 1 to display or not display rss information
[link-library tableoverride=0]
Set to 0 or 1 to display links in an unordered list or a table.
For legacy users of Link Library (pre-1.0), it is still possible to call the back-end functions of the plugin from PHP code to display the contents of your library directly from a page template.
The main differences are that the function names have been changed to reflect the plugin name. However, the parameters are compatible with the previous function, with a few additions having been made. Also, it is important to note that the function does not output the Link Library content by themselves as they did. You now need to print the return value of these functions, which can be simply done with the echo command. Finally, it is possible to call these PHP functions with a single argument ('AdminSettings1', 'AdminSettings2', 'AdminSettings3', 'AdminSettings4' or 'AdminSettings5') so that the settings defined in the Admin section are used.
Here would be the installation procedure:
Use the following functions in a new template and select this template for your page that should display your Link Library.
<?php echo LinkLibraryCategories('name', 1, 100, 3, 1, 0, '', '', '', false, '', ''); ?>
<br />
<?php echo LinkLibrary('name', 1, 1, 1, 1, 0, 0, '', 0, 0, 1, 1, '<td>', '</td>', 1, '', '<tr>', '</tr>', '<td>', '</td>', 1, '<td>', '</td>', 1, "Application", "Description", "Similar to", 1, '', '', '', false, 'linklistcatname', false, 0, null, null, null, false, false, false, false, '', ''); ?>
=function LinkLibraryCategories()=
Output a list of all links categories, listed by category, using the settings in $wpdb->linkcategories and output it as table
Parameters:
order (default 'name') - Sort link categories by 'name', 'id', 'catlist'. When set to 'AdminSettings', will use parameters set in Admin Settings Panel.
hideifempty (default true) - Supress listing empty link categories
tablewitdh (default 100) - Width of table, percentage
numcolumns (default 1) - Number of columns in table
catanchor (default false) - Determines if links to generated anchors should be created
flatlist (default false) - When set to true, displays an unordered list instead of a table
categorylist (default null) - Specifies a comma-separate list of the only categories that should be displayed
excludecategorylist (default null) - Specifies a comma-separate list of the categories that should not be displayed
showcategorydescheaders (default null) - Show category descriptions in category list
showonecatonly (default false) - Enable AJAX mode showing only one category at a time
settings (default NULL) - Settings Set ID, only used when showonecatonly is true
loadingicon (default NULL) - Path to icon to display when only show one category at a time
=function LinkCategory()=
Output a list of all links, listed by category, using the settings in $wpdb->linkcategories and output it as a nested HTML unordered list. Can also insert anchors for categories
Parameters:
order (default 'name') - Sort link categories by 'name', 'id' or 'catlist'. When set to 'AdminSettings', will use parameters set in Admin Settings Panel.
hideifempty (default true) - Supress listing empty link categories
catanchor (default false) - Adds name anchors to categorie links to be able to link directly to categories
showdescription (default false) - Displays link descriptions. Added for 2.1 since link categories no longer have this setting
shownotes (default false) - Shows notes in addition to description for links (useful since notes field is larger than description)
showrating (default false) - Displays link ratings. Added for 2.1 since link categories no longer have this setting
showupdated (default false) - Displays link updated date. Added for 2.1 since link categories no longer have this setting
categorylist (default null) - Only show links inside of selected categories. Enter category numbers in a string separated by commas
showimages (default false) - Displays link images. Added for 2.1 since link categories no longer have this setting
showimageandname (default false) - Show both image and name instead of only one or the other
usehtmltags (default false) - Use HTML tags for formatting instead of just displaying them
showrss (default false) - Display RSS URI if available in link description
beforenote (default <br />) - Code to print out between the description and notes
nofollow (default false) - Adds nofollow tag to outgoing links
excludecategorylist (default null) - Specifies a comma-separate list of the categories that should not be displayed
afternote (default null) - Code / Text to be displayed after note
beforeitem (default null) - Code / Text to be displayed before item
afteritem (default null) - Code / Text to be displayed after item
beforedesc (default null) - Code / Text to be displayed before description
afterdesc (default null) - Code / Text to be displayed after description
displayastable (default false) - Display lists of links as a table (when true) or as an unordered list (when false)
beforelink (default null) - Code / Text to be displayed before link
afterlink (default null) - Code / Text to be displayed after link
showcolumnheaders (default false) - Show column headers if rendering in table mode
linkheader (default null) - Text to be shown in link column when displaying as table
descheader (default null) - Text to be shown in desc column when displaying as table
notesheader (default null) - Text to be shown in notes column when displaying as table
catlistwrappers (default 1) - Number of different sets of alternating elements to be placed before and after each link category section
beforecatlist1 (default null) - First element to be placed before a link category section
beforecatlist2 (default null) - Second element to be placed before a link category section
beforecatlist3 (default null) - Third element to be placed before a link category section
divorheader (default false) - Output div before and after cat name if false, output heading tag if true
catnameoutput (default linklistcatname) - Name of div class or heading to output
showrssicon (default false) - Output RSS URI if available and assign to standard RSS icon
linkaddfrequency (default 0) - Frequency at which extra before and after output should be placed around links
addbeforelink (default null) - Addition output to be placed before link
addafterlink (default null) - Addition output to be placed after link
linktarget (default null) - Specifies the link target window
showcategorydescheaders (default false) - Display link category description when printing category list
showcategorydesclinks (default false) - Display link category description when printing links
showadmineditlinks (default false) - Display edit links in output if logged in as administrator
showonecatonly (default false) - Only show one category at a time
AJAXcatid (default null) - Category ID for AJAX sub-queries
defaultsinglecat (default null) - ID of first category to be shown in single category mode
rsspreview (default false) - Add preview links after RSS feed addresses
rssfeedpreviewcount(default 3) - Number of RSS feed items to show in preview
rssfeedinline (default false) - Shows latest feed items inline with link list
rssfeedinlinecontent (default false) - Shows latest feed items contents inline with link list
rssfeedinlinecount (default 1) - Number of RSS feed items to show inline
beforerss (default null) - String to output before RSS block
afterrss (default null) - String to output after RSS block




