If you can add some beautiful pictures in the chat text ....... the generation of image code is the same as that of emoticons. you can select the menu or manually enter the image code. here, only the format and code are provided, and no explanation is given, please check the emoticons in the action part 1 file format // your picturefilename1?splitcoffee suit movie splitxw20151.jpg $ split2 $ split black $ splitxw2 if you can add some beautiful pictures in the chat text .......
The image code is generated in the same way as the emoticons. you can select the menu or manually enter the image code. here, only the format and code are provided, and no explanation is given. check the emoticons in the action section.
1 File format
// $ Picturefilename
1$splitcoffee West server ?splitxw20151.jpg $ split
2$splitblack $$splitxw201534.jpg $ split
Number + name + image name +
2 Programs
In my chat room, the image is displayed by // gift + number. Note that there are three backslashes, which are different from emoticons.
// Determine whether the first 7 characters in the speech are /// gift
If (substr ($ message, 0, 7) = "// gift ")
{
// Obtain the image number, which is a string of 2 characters starting from 7th characters (note: The character number starts from 0)
$ Id = substr ($ message, 7,2)-1;
// Read the image file
$ Giftmsg = file ($ picturefilename );
// Determine whether the serial number is valid
If ($ id> = 0) & ($ id <count ($ giftmsg )))
{
// Split the image rows
$ Gift = split ($ split, $ giftmsg [$ id], 99 );
// Generate the image's speech content
$ Message = "or = $ namecolor> $ name to o ') target = d> $ talkto a $ gift [1] 0 height = 60 border = 0> ";
// Mark of successful image generation
$ Specialsign = 1;
}
}
Is it easy? Don't try it now !!
Original Author: howtodo
Source: php2000.com