tye

tye

Joined
Sep 19, 2003
Location
Canada
Website
Interests
Web Development

Code Snippets

tye created a Page  -  Feb 07, 2007

Modify the %swears variable to the words you want to warn/kick on. Change the %warnings to the number of warnings you want to give out.

tye created a Page  -  Dec 31, 2006
11,334 

Shows differences in two strings of text.

  2 Threads   PHP  
tye created a Page  -  Sep 26, 2005

This snippet is for PHP 5+.

  3 Threads   PHP  
tye created a Page  -  Aug 29, 2005
350 

This function will brand an image with some text. You can give it a filename or an image resource. You can use built-in gd fonts or, with some modification, TrueType fonts if GD on the server supports it. Usage when giving the function a filename: brand_image('/path/to/file','text',font); The font is the built-in GDfont number. This number can be from 1 to 4. See also the PHP function imageloadfont()..

  2 Threads   PHP  
tye created a Page  -  Mar 10, 2005

This uses the GD library to create a thumbnail out of an image. $infile = path to source image $outfile = file and path to write the thumbnail to $maxw = Maximum width of the thumbnail $maxh = Maximum height of the thumbnail $stretch = Stretch image if it is smaller than the maxw and maxh The function will preserve the aspect ratio of the image. If you specify 0 for either $maxw or $maxh then the function..

tye created a Page  -  Sep 07, 2004

This small snippet will create an RSS feed. I've tested the format using several popular RSS readers and it seems to work fine.

  7 Threads   PHP  
tye created a Page  -  Sep 02, 2004
1 225 

Returns the size of a file using binary prefixes when given the file size in bytes.

  8 Threads   PHP  
tye created a Page  -  Feb 07, 2004
4,484 

These code snippets will scan for and kick/ban clones.

tye created a Page  -  Oct 20, 2003

This snippet will retrieve the first search result for a query off of Google and execute a command on it.

tye created a Page  -  Oct 02, 2003

Keeps track of the last time you saw a user.

tye created a Page  -  Sep 29, 2003
1,864 

This snippet uses hash tables to track which nicknames a user has used. It displays a user's nicknames when they join a channel or when you request the information through the nicklist popup. This snippet uses mask type 3 to track users.

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.