PHP Classes

File: Readme

Recommend this page to a friend!
  Classes of SteakOverCooked   Smiley Generator   Readme   Download  
File: Readme
Role: Documentation
Content type: text/plain
Description: Readme
Class: Smiley Generator
Display a list of smiley icons
Author: By
Last change:
Date: 15 years ago
Size: 1,826 bytes


Class file image Download
Important Instructions: First, put all your smileys in one folder, say, "images/smileys" Set the correct variables when you call constructor of Smiley $alls="images/smiley.jpg" - The target smiley.jpg $maps="images/" - The target html map file Because they are non-existent at the beginning , so just leave them alone for a little bit while $smileydir="images/smileys/" - The folder has All the smileys $width=720 - The smiley image width $space=1 - The space between each individual smiley Then Execute this file, the first time you execute the file, the php examines all the smileys in the folder and put them each by each in a image. Automatically, the html template which contains MAP tag and their co-ordinates are placed. IMPORTANT: You need to save the image by your self and upload to you ftp server and set the correct "$alls" variale so next time the class would skip the looping. You also need to save the html (by right click and see the source code) and save it in a html file , upload it in a similar way and set the correct "$maps" variable so next time the class would skip looping. The reason it does not automatically generate image and map to disk is that some ftp servers might disable that. Of course you can easily add "saving" to the program. OK, have fun! Let me know if anything comes up. One example is located at my website. Remember to tick "smileys" to see how many smileys i got :) PS. addSmiley is a javascript you need to develop, which inserts the smiley into textarea.