scriptygoddess RSS Feed
 
 
 
 

Archive for Scripts

404 Error Handling part II

In this post I grabbed this bit of code so that I would be emailed whenever someone hit a 404 page on my site. However, I found out that my 404 page was visited quite often… usually for the same three files.
So I modified the script a bit - so that it would keep a [...]

cron jobs

Sometimes the simplest thing are the things that seem the hardest. You're almost embarrassed when you finally figure it out - and realize how simple it was.
Cron jobs. Did you know you can create a script (that could technically be run if you pulled the page up in a browser) - but lets say you [...]

Radio Button - Changing selection (checked) and focus

Just some snippets for safe keeping regarding radio buttons. One that will change which radio button is selected. The other that will change the focus to the appropriate radio button (useful when validating that fields are filled out in a form)

another revision to the show/hide script

This is in reference to this post which included a link to a revised version of the show/hide (collapsing/expanding) script. That one was designed specifically for entries. Most people use this script for their comments to, so I made a slight change to it so that you can use ONE function that will work with [...]

Using Dada/Mojo Mail to send MovableType Entries Nightly (or how to ditch Bloglet)

Guest authored by
Jake Ortman - utterlyboring.com

PHP: Stripping out predicted text from a string

(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.

Javascript: Pull-down menus with pop-up links

Guest authored by
Jenni - bloggiebroad.com

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

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:

Using PHP to FTP - and import a CSV file into a database

I needed to grab a (CSV) file via FTP and import it into a database. The part that I thought would be the hardest (the FTP part) was actually very simple. Once again, PHP saves the day with incredibly powerful built in functionality. Here is the simple code that will connect to an FTP server [...]

Skinnable Comment Pop Ups

Guest authored by
Sphinx - pixelsphinx.com

You are currently browsing the archives for the Scripts category.

Categories

Archives

Bookmarks

WordPress Resources

Meta

Random Stuff