Random Quotes
There's been a lot of talk about adding random quotes to MT
pages. I like the idea and I'm starting to write code that
will do just that. It's just a PHP fragment right now, but I
plan to rewrite in Perl and make it an MT Plugin (as soon as
I figure out how.)
See it in action here.
(Press reload a few times for the full effect.)
To use, you need MT 2.6 or above, a MySQL database and PHP of
course. You need some way to create new tables in your
database (I use phpMyAdmin)
Short instructions:
-
Unpack the files in this
zip
file:download:
-
Copy db.inc.default to db.inc
-
Change $hostName, $databaseName, $username, and $password
to match your database values.
-
Upload db.inc and index.php to a new directory on your
server.
-
You also need to create a table as defined in mt_quotes.sql
-
Insert rows into your new table (I've included a few quotes
from America's Founding Fathers in founding_fathers.sql,
you can run that script on your database to get a start.)
Please
contact
me with any questions.
Posted by Jason at
03:43 PM
|
LazyWeb |
No related QuickLinks found.