Archive for December, 2003

Updated Show/Hide script - (with additional links in the same line)

Tuesday, December 30th, 2003

Long title. Sorry. :D Someone wanted to use the show/hide comments script but have more than just the “show comments”/”hide comments” text in the same line. Basically - what they wanted was :

Permalink | Show Comments(3) | Add Comment | Trackback(2)

Where the “Show Comments” would drop down and do the show/hide comments - and it would only be there IF there had been comments to display. (for this last part, to use this script, you need to be running PHP on your page)

I know this is a very particular case - but there’s pieces in here you could probably cut, mix, and match.
(more…)

PHP: Stripping out predicted text from a string

Tuesday, December 30th, 2003

(Sort of inline with the previous moblog post) All of Sam’s posts are accompanied by a few lines of text that the phone automatically adds. (There’s probably a setting to remove it, but we can’t find it at the moment). So I used the following script to hide the text using php.
(more…)

How to set up a moblog?

Tuesday, December 30th, 2003

Sam (my better half) recently got a new phone with a camera - and asked me to set up a moblog for him. Having seen many moblogs - but never having the capability myself, I thought there must be many tutorials/services/scripts out there to set one up. I found a few (not as many as I thought) - and ended up deciding to go with MfOP2. It was a pretty simple setup - now he can just email the photos from his phone, and they appear on his site. (No, I’m not linking to it, because at the moment, there’s a scary picture of me on there!) ;-)
I know there’s a few other services out there - have any of you tried them? What were your thoughts? Which one do you recommend?

(Yes, I’m aware that there’s some promise of mobile blogging in MT 3.0 - but I’m impatient)

Spoof Check bookmarklet

Sunday, December 28th, 2003

Several new scams are making their way around the internet (most recently a PayPal scam) that direct users to “spoofed” websites. These websites take advantage of a known flaw in Internet Explorer to display a fake URL in the address & status bar.

One of the suggestions from Microsoft to verify “suspicious” websites is to type in a Javascript string to verify that the page is hosted that URL displayed in the address bar. Given the length of the code needed to verify the address, this is a well-intended suggestion, but it’s just not practical.

Kevin Donahue has created a quick and easy bookmarklet to help prevent spoofed URLs in Internet Explorer using the Microsoft suggested code. If you’re an IE user this bookmarklet is a great way to verify the page you’re viewing isn’t spoofed, especially if you arrived there from an email message.

Visit Kevin’s website for the Spoof Check Bookmarklet.

Calendar modification

Sunday, December 28th, 2003

This is very basic - but I wanted to save the code somewhere. The default “Calendar” template has the dates linked to the last entry on that calendar day (mtpermalink) - but it would make more sense to have those links point to the DAILY ARCHIVE page (this assumes you have “daily” checked off as one of your archiving types in your weblog settings/archiving)
(more…)

Yearly Comment Leader Script

Tuesday, December 23rd, 2003

I just implemented the comment leaderboard script available here, but I wanted to feature the *yearly* comment leaders as opposed to the monthlies. I tinkered with it and lo and behold, it actually worked!
(more…)

MT 3.0 coming soon…

Monday, December 22nd, 2003

I’m sure this will quickly be making the rounds…
After a long time of no news about an MT upgrade - they say the beta of MT 3.0 is due in early Q1 2004… (and it will be a free download and upgrade)

Javascript: Pull-down menus with pop-up links

Thursday, December 11th, 2003
  • Original Script: The JavaScript Source
  • Corrections: The original was incorrectly pasted on the source page, so it failed to execute properly. I fixed that problem and also added an option for background and text colors on the pull-down menu. Scrollbars and toolbars were added to the pop-up links.
  • Instructions: Change the bold code to meet your site’s needs.
  • Customizations: Go for it! The menu font size is set at 10pt by default, but I use 9pt on BB. The background color is white and text is black, but delete the options or change to meet your needs.
    (more…)

  • Lorem Ipsum alternative, print out all links from a page)

    Thursday, December 11th, 2003

    Many cool links found on Jennifer’s etc:

    Original Lorem Ipsum
    Alternate to Lorem Ipsum text generator

    Print out all links from a page (as footnotes) (it’s a bookmarklet)

    Javascript: Removing new lines (”\n” or “\r”) from text

    Tuesday, December 2nd, 2003

    A line break can be created by either a new line (ie. “\n”) or a carriage return (ie. “\r”). (more info here)

    In my particular use, I had a field that could take several email address that would be seperated by either a comma, semicolon or line break:
    (more…)