scriptygoddess

04 Dec, 2002

Plugin Directory

Posted by: kristine In: MT hacks

There's been so many great plugins developed for Movable Type since that functionality was added. To keep track of them all, and to help me in answering questions on the forums, I put together a Plugin Directory (powered by MT, of course!) It actually uses some of the plugins that I hadn't tried out yet (Columnize and Key Values are most notable).

So if you've been looking for a solution but don't have PHP, some of these perl-based plugins may help you out.

03 Dec, 2002

declaring variables as "global" in php

Posted by: Jennifer In: Lessons learned

I was just working on implementing this credit card validation script . I had been working with a similar version that was on devarticles.com and the script they have there did NOT work. (The one I linked DOES work!) In any case, I noticed in the one that didn't work, the author was declaring a lot of variables as "global" (this wasn't the reason why the script wasn't working), but it made me wonder when you needed to declare variables as global and when you didn't. A little search on Google, and I found this explanation here: (I am quoting them verbatim – on a side note, for those of you who are interested in a php site for newbies, phpbeginner.com looked pretty good!)
Read the rest of this entry »

01 Dec, 2002

Free Fonts

Posted by: Jennifer In: Bookmarks

You know you got 'em – so cough 'em up. What do you have bookmarked for free/shareware font sites? (no, this isn't "script related", but since I make the rules, I can break them) 😉

Abstract Fonts [found via a stolen moment]
Chank
1001 Free fonts
Larabie fonts
Font Freak

(Warning: some of these font sites love pop up ads… surf at your own annoyance)

Many of those have the same fonts… would love any links you have to more "original" fonts…

27 Nov, 2002

Wording based on time

Posted by: kristine In: MT hacks

Would you like to have a different saying below your post based on what time it was posted instead of (or in addition to) the date? A poster on the MT forums did, so I cooked up this little script yesterday.

<?
//set the beginning time for each time section – keep the quotes in there
$earlymorn = strtotime("4:30am");
$midmorn = strtotime("9:00am");
$lunch = strtotime("11:30am");
$afternoon = strtotime("1:00pm");
$evening = strtotime("5:00pm");
$bedtime = strtotime("9:00pm");

//This date format is for MT2.5 and above
$t = strtotime("<$MTEntryDate format="%X"$>");

//Modify the messages as necessary – note that the middle of the night one should be in there twice.
if ($t <= $earlymorn) { echo "Past Your Bedtime"; }
elseif ($t <= $midmorn) { echo "Early Morning"; }
elseif ($t <= $lunch) { echo "Mid-Morning"; }
elseif ($t <= $afternoon) { echo "Lunch time"; }
elseif ($t <= $evening) { echo "Afternoon"; }
elseif ($t <= $bedtime) { echo "Evening"; }
else echo "Past your bedtime";
?>

Enjoy! :)

26 Nov, 2002

IP blocking and custom 404 & 403 with htaccess

Posted by: Jennifer In: How to's

This is old news, but because I've often needed to look for the exact syntax, I'm putting it up here.
Read the rest of this entry »

20 Nov, 2002

Add "Listening To" & other fields to your entries

Posted by: promoguy In: MT hacks

This is a hack that reminds me a lot of "LiveJournal" blogs, and I know many MT users long for it.

So, Scott has made the hack. This one is not for the faint of heart, but it looks very snazzy when you are finished.

Read Scott's Tutorial here.
BTW, you must be using the mySQL database flava of MoveableType to use this tweak.

19 Nov, 2002

6 months of archives

Posted by: Jennifer In: MT hacks

Heather asked me if it were possible to make your archives listing only show the last 6 months one way, and then the rest another way.

She wanted the last 6 months of archives to display like:

November 2002
02 Nov 19: post title
02 Nov 02: post title

October 2002
02 Oct 30: post title…

and then the rest of the archives just in month format like this:

April 2002
March 2002

At first I would have said to do something with <MTArchiveList archive_type-"monthly" offset="6"> but it that "offset" attribute doesn't seem to get applied like that (it only offsets specific ENTRIES, not archive types). So I made a very (kind of scary) script to do exactly what she wanted. There may be some shortcuts I've overlooked, so please let me know if you think there's an easier way.
Read the rest of this entry »

18 Nov, 2002

Link, Bold, Italic links in comment text area

Posted by: Jennifer In: Scripts

Someone requested the code for how to do that "Link", "Bold", and "Italic" shortcut links in the comments section. I first saw it on Dawn's blog sometime ago, and actually, the code in the MT-Entry template is very similar. In either case here it is:
Read the rest of this entry »

15 Nov, 2002

mySQL statements – order by and group by

Posted by: Jennifer In: Call for help

Anyone out there know mySQL really well? I understand what order by does, and I understand what group by does. Can these two be used together? If so, how does it work? Does it group stuff together and then WITHIN the groups do the order_by? ie. If we had a database of people's info – and we did:

SELECT lastname, age FROM people GROUP BY lastname ORDER BY age DESC

would it list the the youngest to oldest people with the same last name – and then move onto the next group of lastnames, etc.? Would that be sorting the last names arbitrarily? If you wanted to sort the last names *reverse* alphabetically as well would you do this?:

SELECT lastname, age FROM people GROUP BY lastname ORDER BY lastname ASC, age DESC

Actually re-reading the GROUP BY descriptiong… maybe I DON'T understand GROUP BY… =sigh= anyone wanna help explain?

15 Nov, 2002

Best Known Blog

Posted by: Jennifer In: Announcements

According to Feeney's "Name That Blog" Scriptygoddess is the best known blog. Woohoo! (or maybe we're just the easiest to spot. Anything that starts off with stuff like this has to be from us: "So, you want to do this-that-and-the-other with PHP in your blog? No Problem! I was bored so I wrote a script to do it…")

Featured Sponsors

Genesis Framework for WordPress

Advertise Here


  • Scott: Just moved changed the site URL as WP's installed in a subfolder. Cookie clearance worked for me. Thanks!
  • Stephen Lareau: Hi great blog thanks. Just thought I would add that it helps to put target = like this:1-800-555-1212 and
  • Cord Blomquist: Jennifer, you may want to check out tp2wp.com, a new service my company just launched that converts TypePad and Movable Type export files into WordPre

About


Advertisements