Recommend this page to a friend! |
Download .zip |
Info | View files (4) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2007-06-01 (9 years ago) | Not yet rated by the users | Total: 389 | All time: 6,306 This week: 1,043 |
Version | License | PHP version | Categories | |||
smiley_php 0.1 | GNU General Publi... | 3.0 | HTML, Graphics |
Description | Author | |||||||||||||
This class can be used to display a list of smiley icons all at once in a Web page. |
|
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/smiley.map.html" - 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 :) http://www.zhihua-lai.com/?do=Comments.All&cmode=post PS. addSmiley is a javascript you need to develop, which inserts the smiley into textarea. |
Files |
File | Role | Description |
---|---|---|
class.smiley.php | Class | Smiley Generator Class |
Readme | Doc. | Readme |
smiley.jpg | Output | The smiley image , generated by this php class. |
smiley.map.php | Output | HTML Generated by This php class, remeber to modify it to suit your website |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|