Originally posted at http://blog.kevindonahue.com
I presented Jennifer with a question: How do I remove skins? or –to be more specific– How do I let users delete their skin preferences and use the current default?
Read the rest of this entry »
Originally posted at http://blog.kevindonahue.com
I presented Jennifer with a question: How do I remove skins? or –to be more specific– How do I let users delete their skin preferences and use the current default?
Read the rest of this entry »
The accesskey attribute is a useful feature that allows users to navigate websites via the keyboard instead of a mouse. Unfortunately not knowing what accesskeys are associated with each link makes them of limited value. Revealing Accesskey Info is a short article demonstrating how to use the :before and :after pseudo-elements to selectively display the accesskey assignments to modern web browsers.
Jennifer's note: Also of note relating to this is an article about access keys on A List Apart also by Stuart Robertson – seen thanks to Simon Willison and Nate of Web-Graphics.
17 Jun, 2003
Posted by: Jennifer In: Bookmarks
There are a few demonstrations out there of how to invoke a search on the current text selection.
This is a stab at doing it in a non-intrusive way.
I love bookmarklets, oh yes I do… 😀 And this site: squarefree.com/bookmarklets/ has a TON! Very cool!
[link via Melissa/GeekGrrl]
A while back Chris had asked about getting an extra field in the comments form. At the time all I could do was figure out a way to get the field emailed to you. But thanks to a few lessons I learned in the last script/MT-hack I wrote – I've figured out how to do it all. So this is part MT-hack and part plugin.
Here's a summary of what this does:
You add a field in your comments form to collect RSS feed's from your commenters and then you can display it back in your comments on your site – just like you do with their blog-URL.
What's involved:
You'll be editing any template you use that displays comments or the comment form, and install a plugin (which is as simple as uploading a file to your site) As well, You'll need to edit two MT files and the mt-database. If you're not comfortable doing this – I suggest you set up a test MT install and play with this first.
Here is the download for the plugin. The tags associated with the plugin will not work on their own – you'll need to follow all of the instructions (below).
Some credit notes: A MASSIVELY HUGE THANK YOU to "Milbertus" (A.) of milbertus.com for writing the plugin for the MTCommentFeed tag (MTCommentPreviewFeed tags still in development at this time) (I wrote the plugin for the MTCommentIfRSS tag. w00t!)
Read the rest of this entry »
This Script/MT Hack will make it so that all comments to your blog(s) will go into a "pending" status. You can login into the script, see all the "pending" comments. Review them. Edit them. Delete the ones you don't want on your site. Approve the ones you do.
For people who want to have their blogs open for anyone/everyone to join in on, but don't like the idea of forcing registration before allowing comments from visitors, this is a great alternative. This way anyone can still comment on your site (without forcing them to register) – but you still control what actually goes on your site.
This script requires PHP to run the "review/edit/approve/delete" part. But you don't need to have it running on your page. (ie. this will even work with the popupcomments)
This script also requires modifying two MT files and the MT database. (If you're nervous about doing this – I suggest 1) backup your stuff before installing the script 2) set up another MT in a test environment – that way you can practice and test it out first.
One thing I would have liked to incorporate is integrating the mt-rebuild plugin/utility. If somone can figure out how to do that – please post it in the comments!
This script now needs the mt-rebuild script to work. (Simply download that file, upload it to the same directory as your MT files – no need to edit it). You will need to do this BEFORE you upgrade or install the Comment Queue Script.
Download the script/mt-hack here.
Current Version
version .03 – released June 25, 2003
What's new in the latest version:
v.03:
fixed bug with wrong title displaying. (Thanks Marco!)
v.02:
Script now uses the mt-rebuild script to rebuild posts. (This is a seperate download. Go here to download the mt-rebuild script) No more poping up seperate windows to rebuild posts. This also fixes the bug with the "allow pings" box getting unchecked. Also fixed bug where the script assumes your blog pages are all .php.
Upgrade Instructions
Upgrade from previous versions – download .zip using above link – follow upgrade instructions included.
IMPORTANT: I've tried to be as specific as possible in the documentation and comments on pages that need to be edited. Before posting a question, please look over the included instructions very carefully.
Update 8/20/03: (David has a perl version of this here – his will work even if you're not running MT with mySQL!)
I posted how to do this in ASP, but since I needed something similar in PHP for that last post, I thought I'd post the PHP version as well.
This script snippet will play back everything that was just submitted in the form (code found in the each function page in the PHP manual.)
Read the rest of this entry »
Let's say you have some optional items to your form. (Maybe extra address info) and your form is long enough as it is. You can pop up a secondary form, where the user can enter their extra info, and have it saved to the main form and submitted with the main form. (see example here)
Read the rest of this entry »
05 Jun, 2003
Posted by: Jennifer In: Bookmarks
Needed this for a script I'm working on where one button will be doing one thing, another will be deleting stuff. So I needed a button that had a "confirm" message before going ahead and deleting stuff – but both buttons needed to submit the form (I would check the VALUE of the submit button via php). This script shows how to tie a confirm message to one button.
Someone asked me how they can set up a box of text and limit the width to a certain number of characters. the PRE tag (in some things I found online) used to (?) to have a width attribute, but it doesn't seem to work in IE 5+. The only way I could do is like this:
Read the rest of this entry »