Thread Starter
Anonymous
Anyone get a chance to try this out? If so, any suggestions?
Thank you,
perogi
perogi.org
Give me a couple of days to play with it, and I’ll let you know.
TG
On second thought, I dumped it. For something as simple as this should be, there seemed to be an aweful lot of editing. Plus, rather than using the plugin system, you’ve opted for the older my-haks.php way of doing things. Any reason why?
TG
Thread Starter
Anonymous
Simple reason? I have no idea how to make a plug-in and don’t have the desire to learn atm =)
Thanks for the effort tho TG!
perogi
Thread Starter
Anonymous
Speaking of plug-ins, I searched and couldn’t find the devs spot to learn the framework for creating plug-ins, any help please?
perogi.
perogi.org
This sounds a lot like some quote hacks I wrote back in the b2 days. I even had a quote manager for the admin interface. I found an easier way all within WP.
I created a “Random Quotes” link category with a sort order ‘rand’ and limit 1. Where I wanted the quote is under the blog name (where the description would go). I yanked out the description and put in the following code:
<div class="description"><?php /* bloginfo('description'); */ $links = get_linkobjects(2, 'rand', 1); if ($links) { foreach ($links as $link) { echo $link->link_name; } } ?></div>
This was taken pretty much from the wp-links.php for the get_linkobjects() function. At the time, I was going to put the quote in the link_notes field, but decided to put it in the link_name instead, without a URL.
As an aside, now that I think about it, all the get_link* functions should use the defaults from the link info stored in the database instead of hard coded defaults in the function. I may work on that sometime…….
PS. You can see what I mean at my website blackrobes.net, now in its fourth iteration and undergoing massive construction. Using WP 1.2 and Kubrick.
Thread Starter
Anonymous
This hack does use the database. Although, I am sure that we have many similarities, I can assure you that I did not use anyone else’s code in the construction of this hack (besides WP core functionality).
This hack does contain a quote manager in the admin part of the site. I actually give full permission to add/edit/delete to all of my bloggers.
I hope more people get to use this if this is what they are looking for. My site: http://www.perogi.org/ displays the quote directly under my ‘logo’.
perogi.
perogi.org