Shelley posted all her wordpress hacks – and one that I've been particularly interested in (and desperately needing) is the in context/full page preview (ie. preview your post – as it would appear on your site – before publishing).
(I still have to read through the rest of that post – I'm sure there's more I'm going to be doing)
[via Photomatt]
Comments Off on In Context/Full Page preview
UPDATE There's been a bit of debate about the need for a central database of plugins. There's a lot of developers now developing plugins, and it's quite a task to find them as a user, as well as a developer to see if something you want to do has already been done. In any case – this plugin has apparently already been done by coffee2code.com (with only some minimal differences).
I'll leave my post up in case it's still of value to anyone….
Christine asked for a plugin so that she could have a list of recent commenters on her blog (and the list needed to exclude herself) – as well, she wanted a way to show the posts that have been commented on most recently. While the two requests are different, I still put them in one plugin. (I want to note that this plugin was based heavily on the recent comments plugin by mtdewvirus.com)
Current Version: v 1.0
So here's the plugin – installation and use are pretty simple:
Read the rest of this entry »
04 Jul, 2004
Posted by: Jennifer In: Bookmarks
I looked around for a plugin that would automatically set comments to closed after a set number of days. I didn't find any, but I did find some code at the WordPress wiki that was useful, so I turned it into my own plugin.
It checks for posts to be closed every time the database is updated, so it doesn't require a cronjob.
Peggy emailed me about a problem I was having on this site with the Google Hi-Lite plugin that's included with 1.2. She did all the searching to find the fix the problem (which was posted on huddledmasses.org here ) (So all credit for finding this goes to her) Certain searches (I think ones that contain a backslash – you know how WP eats these for breakfast) 😉 will cause errors on the page.
Here's what you need to do to fix it. Look for these lines (should be Orig lines 104, 105, 106, 107)
if (!preg_match('/<.+>/',$text)) {
$text = preg_replace('/(b'.$term.'b)/i','<span
class="hilite">$1</span>',$text);
} else {
$text = preg_replace('/(?<=>)([^<]+)?(b'.$term.'b)/i','$1<span
class="hilite">$2</span>',$text);
Change those lines to this:
if (!preg_match('«<.+>«',$text)) {
$text = preg_replace('«(b'.$term.'b)«i','<span
class="hilite">$1</span>',$text);
} else {
$text = preg_replace('«(?<=>)([^<]+)?(b'.$term.'b)«i','$1<span
class="hilite">$2</span>',$text);
Comments Off on Google Hi-Lite fix
In WordPress, you can enable an option that requires commenters to supply a name and an email address, but oddly enough, it doesn't validate the email address submitted. This is simple enough to add, as WordPress already has a function for validating email addresses, and because it can be done via a REALLY simple plugin.
Read the rest of this entry »
Got a new PC-Phone – this one comes with a camera. So I've been looking for a way to do moblogs with WP – and found this:
Space Monkey Mafia – Moblog Hack
(Haven't tested it out yet – but probably will tonight) Works like a charm! 😀 One note if you try to use this script (a mistake I made, someone else might make the same…) in smm-getPop.php, there's a line you're supposed to edit for $tmp_folder – it doesn't say this – but this is the server path to the temp folder…
Neil had asked about adding a "remember me" checkbox to the login form. The idea here is that if you're really forgetful (like me! Ack!) and you know you're really forgetful – and you know you're probably going to forget to "logout" before closing your browser – if you don't click the "remember me" checkbox – then when you close your browser, you will be automatically logged out of WordPress. (This is good when you're working on a shared computer)
It does require some core WP editing – minor tweaks to just the wp-login.php page – but wanted to warn you up front (I have to apologize for the core edits. I'm more than welcome to hear suggestions of how one can do this WITHOUT doing the core editing – but I just can't come up with it)
Read the rest of this entry »