Barry Price, the creator of the Ma.gnolia plugin for WordPress has set its development aside and has encouraged me to adopt the project. As I use the plugin heavily on this site, and I enjoy development, I decided to take him up on it.
This plugin makes it easy to output a list of your Ma.gnolia bookmarks anywhere on your site. You can set it to only pull bookmarks with a specific tag, which is great for listing sites related to a specific category or post.
Please download the plugin and provide me your feedback in the comments of this page. I’ll do my damnedest to fix any bugs you report and look forward to expanding it to be even more useful!
Update
I’ve updated the plugin. Please go to the official page for the latest version: Ma.gnolia Plugin.

Magnolia WordPress Plugin
Make sure to join the Plugin group on Ma.gnolia to add your site to the list if you are using this plugin!
Install
- Drop the entire plugin folder into wp-content/plugins/ – the final paths will be:
- wp-content/plugins/magnolia/last_rss.php
- wp-content/plugins/magnolia/magnolia.php
- Activate the plugin in the admin area of your wordpress install
To Use
This plugin is very basic at the moment, so all it takes once you’ve installed the plugin is a single line of PHP, inserted wherever you want the list of links to appear. You can pass the following variables to the plugin:
- $username is the Ma.gnolia account to use, this is typically your account.
- $numLinks sets the amount of links you want the tag to output, this defaults to 10.
- $showDescriptions tells the tag whether or not it should include descriptions in the output. This defaults to “Do Not Show”.
- $showPubDates tells the tag whether or not it should output the date the URL was bookmarked in Ma.gnolia. This defaults to “Do Not Show”.
- $useMagnoliaLinks determines whether the links should point directly to the bookmarked URL, or the bookmark’s page on Ma.gnolia. This defaults to the Bookmark’s actual URL.
- $tag allows you to pass in a tag to narrow down the list of results. Only bookmarks matching that tag will be output. This is empty by default, so it pulls all bookmarks regardless of their tags. Use a plus sign (+) to separate multi-word tags. For example “web+design”.
The output consists of an unordered list, each link contained in a separate list item tag.
Example of Usage
Here’s a snippet to output three bookmarks, with their associated descriptions from my bookmark list, regardless of the tag.
<?php magnolia('BaldTechnologist',3,1,0); ?>
Example Output
<ul>
<li><a href="http://www.flickr.com/photos/17328648@N00/sets/1737284/" title="Cool & Wacky Records - a photoset on Flickr:: No Description" class="ToolTip">Cool & Wacky Records - a photoset on Flickr</a></li>
<li><a href="http://www.fortymedia.com/blog/post/59" title="Attention Mapping: The 10-Point Exercise:: Attention is the most fundamental unit of design. Once you get past the color schemes, typography, layouts, graphical treatments, etc., it all comes down to guiding and shaping the viewer’s attention." class="ToolTip">Attention Mapping: The 10-Point Exercise</a></li>
<li><a href="http://haha.nu/misc/html-tags-illustrated/" title="HTML Tags illustrated:: A collection of photos that demonstrate HTML tags." class="ToolTip">HTML Tags illustrated</a></li>
<li class="MagnoliaLink"><a href="http://ma.gnolia.com/people/BaldTechnologist/bookmarks" title="Alex Jones on Ma.gnolia::Browse through the sites and pages that I have added to my bookmark list on Ma.gnolia. If you're a member, add me as a contact!" class="ToolTip">View my bookmarks on Ma.gnolia</a></li>
</ul>
Other Examples
Five Bookmarks Tagged with “Design”, No Descriptions, Pointing to the Original URL
<?php magnolia('BaldTechnologist',5,0,0,0,'design'); ?>
Ten Most Recent Bookmarks with their Descriptions and the Time they Were Saved to Ma.gnolia, Pointing to the Link’s Ma.gnolia URL
<?php magnolia('BaldTechnologist',10,1,0,0,'History'); ?>
Behind the Scenes
Barry Price built the first version of this plugin, and what you see here is a a modified version of his work the Last RSS Parser, which does much of the heavy lifting. At this point, Alex (BaldTechnologist on Ma.gnolia) has picked up the project and will be adding features as suggestions come in and time allows. If you have an idea, please contact me and I’ll see what I can do!
Contribute, for Free!
It’s easy to support this free plugin, and it won’t cost you a thing! Here are a few simple ways:
- When you plan to buy something from Amazon, follow this link (Amazon.com)
. It won’t cost you anything, but it will add a small amount of your purchase to my account.
- Write about the Ma.gnolia for WordPress plugin on your site
- Add a link back to my site (www.silverspider.com) from yours
- Drop me a line to say hi and let me know where you are running the plugin.
Changes Made
I’ve made some changes, both major and minor to the plugin, including:
- Changed quote usage from single quotes to double quotes to improve parsing efficiency.
- Improved comments within the script
- Moved the feed parser class (Last RSS) to a separate file for ease of maintenance.
- Various code, formatting and commenting changes
Upcoming Changes
These are not currently prioritized, but I want to add these features/implement these revisions:
- Add CRON abilities to pre-cache feeds instead of waiting for a request
- Add ability to search multiple tags (AND & OR)
- Add the ability to pull from groups in addition to by tags
- Documentation with some examples
- Improve configuration options
- …(this is where your suggestions come in)
Related Posts
- Ma.gnolia & MeRick, a great Web Developer with whom I’ve worked in the past, and now count as a friend was kind enough to write about me...
- Redesign '007Redesign ’007 has hit the site, it’s first form known as Ashes. In time I plan to add its alter-ego, Frost. For now though, let...
- SilverSpider Play ListI have rolled out the first release candidate of SilverSpider Play List , a set of PHP scripts that gathers a list of recently played...
- Firefox Spell Checker PluginI have just added another great plugin to my installation of Firefox, Spellbound is a straight forward, but feature-rich spell checker for form fields. Check...
- WordPress Plugin RepositoryWordPress Plugin Repository...
Thanks for picking up the plug-in. Can you write another one to display a list of one’s tags? Magnolia offers such a script but it does not use caching and is consequently abominably slow.
I just noticed the Tooltips–nice! Two more points:
1. You would get more comments without requiring registration.
2. You should add your plug-in to wp-plugins.net so people can use the great Update Manager (http://www.mutube.com/projects/wordpress/update-manager/) to track updates.
Could you make the “View my bookmarks in Magnolia” optional?
Hi emre! Thanks for leaving your feedback. Sorry about the delayed response, I’ve been out-of-pocket at SXSW. I’ll look into the mechanics of creating the tag list plugin as that sounds like a great idea. I will also make the My Bookmarks link optional.
I’ve disabled the login requirement, though I may re-enable it if I get hit by a bunch of spam which has happened in the past. The form looks a bit funky as I haven’t styled it appropriately, but I don’t have the time to fix it now.
Again, thanks for adding your feedback! Stay tuned for updates!
Hi Alex..
Is it possible for the Ma.gnolia links to function like Asides?
Here’s my ideal scenario:
I drop a little PHP statement in my template. When I add a new link to Ma.gnolia, it automatically shows up as a post in chronological order with comments, permalink, et. al.
Hi Kyle! That is one of the features I hope to implement in the near future as quite a few folks have asked for it, and I would love the functionality as well.
Thanks for your feedback, and please feel free to add any more features you’d like to the comments of the main plugin page, and I’ll see what I can do to get them in a future rev.
Alex, I tested some of your example php from your ma.gnolia site and it is retrieving the bookmarks (and in pages using the php plugin as well!).
However, for my own bookmarks I am now getting the message “Sorry no links found at Ma.gnolia!
view more bookmarks on Ma.gnolia.”
Is there some configuration on my ma.gnolia account that I have not done? I have bookmarks on my account, and I have them set to public.
Any thoughts?