A lot of visitors to this site already have a blog in one form or another, but for those that are considering setting one up, this is a great read – NSLog(); – Starting a Blog (with MovableType). Via Lockergnome.
A lot of visitors to this site already have a blog in one form or another, but for those that are considering setting one up, this is a great read – NSLog(); – Starting a Blog (with MovableType). Via Lockergnome.
14 Mar, 2003
Posted by: Jennifer In: Scripts
This was insipired by Quadsk8's comment here. I've actually been using this script for awhile on my personal blog, but realized I never posted the script here when GeekGrrl mentioned a longer download time on her pages when she added the show/hide script. Quadsk8 had originally suggested doing this using only MT tags – but I prefer to do it with php. I explain why at the very bottom of this post…
(note: this script requires your being able to use PHP on your page)
Read the rest of this entry »
As requested by Chris, here's a hack that will give you an extra field for your comments, and have the contents of that field included in your email notification.
(note: what this will NOT do is show those contents back on your site. I can think of a way to do that with php and mySQL (with a slight detour on the comment form submission – similar to the way comment subscribe works) and I can write up a second tutorial on that one if there's interest. OR 10 points to the person that can figure out how to hack that directly into MT.)
(another note: if/when you do upgrades to MT – you will need to do this hack again (or one similar depending on how much changes in the version of MT you're working with). This tutorial assumes you're using MT 2.63 – although it also applies to 2.62)
Read the rest of this entry »
Interesting php site: thephpguy.com – found by Sam (my better half) who's too cool to blog. 😉
If you admin a (U*ix) PHP server and…
If you recompile PHP periodically and…
If you use a lot of add-ins with PHP
do yourself a favor & save your "./configure…" command to a file with:
You can then chmod the file as you see fit so no one else can run it…
Then, when you want to reconfigure & recompile PHP, just delete config.cache & run sh configure.sh
Now back to figure out all the options I had compiled into PHP.. doh!
Matt Haughey has recently converted to using MT and has come up with a way to generate a Winamp playlist for your blog using MT's Trackback feature. Read more about it here. Personally, I would put all of the information in to an include file to keep the rebuilds for your site down to a minimum.
If you're like me, you get way too much spam. Dive Into Mark offers up a way to block spambots, ban spybots, and tell unwanted robots to go to hell.
Disclaimer: Most of the methods require that you have the ability to modify your .htaccess file. If you are hosted with a free hosting company, you probably do NOT have this ability. Sorry.
12 Mar, 2003
Posted by: dave In: Admin-type scripts
How often has it happened that you have a few hundred pages, with something that needs to be changed on each page? Luckily, PHP >= 4.2.0 ships with PCRE enabled by default, opening up the power of regular expressions to PHP scripters.
I'm not going to give a primer on REs (Regular Expressions), but if you don't know about them you should really sit right down & teach yourself. O'Reilly has an excellent book on them, and the program Visual REGEXP (search Freshmeat) is a great learning tool.
If you need help on running PHP from the command prompt, see my earlier post on the topic.
Here's the setup:
Read the rest of this entry »
Will asked about adjusting the date php displays to account for the fact that the server may not be in the same location as you. (I don't think this solved his problem with displaying the actual timezone differently – but thought it was worth putting up anyway…)
I'm sure there are other ways (if you got 'em feel free to post them or links to them in the comments. It's always interesting to see how different people solve the same problem)
Here's what I do:
Read the rest of this entry »
We are scriptygoddess… resistance is futile… you will be assimilated.
Added another author! Please welcome Lisa (aka Unix Gal) as a new scriptygoddess.