Version: 1.00, by KW802
Developer Last Online: Nov 2021
Version: 3.0.3
Rating:
Released: 08-05-2004
Last Update: Never
Installs: 62
No support by the author.
vBa CMPS: Smilie Creator v1.0.1
OVERVIEW: This is a conversion of an old VB2 hack (https://vborg.vbsupport.ru/showthread.php?t=50450) by Kars10 to create new smilie faces on the fly. The original version acted as a pop-up box from within a BB code so that the new smilie would be inserted into your forum message posting. A BB code trick posted over at vbulletintemplates.com (http://www.vbulletintemplates.com/mo...ead.php?t=6671) really eliminates the need of having to do this hack anymore since you can accomplish nearly the same thing without having to do any code changes. I was still interested in this old hack though because there are times I'd like to be able to create a new smilie on the fly either for my own personal usage or for my site. So looking at it as a learning experience my goals were to change the hack to be a more generic approach and make it easy to integrate into a site so making it into a vBadvanced CMPS (http://www.vbadvanced.com) module seemed the obvious answer. The other added benefit of making it into a vBadvanced CMPS module is the fact that it could then be added to a web site without doing any code modifications at all but still being able to, for instance, block access to it from non-registered users. I emphasis.... the PHP code is by Kars10, my only change to it was to remove the file name from being hard-coded and instead I'm passing it in from the template in order to make it easier to add new smilies in the future.
REQUIREMENTS: Since the template and PHP are really generic you should be able to easily get it working with just about configuration. For my purposes thought it was intended for.....
vBulletin 3.x.x
vBadvanced CMPS
A server that supports GD -- If you server is not running GD then it will not be able to create the new image.
INSTALLATION: Installation is really easy.....
Upload the fps_smilie_creator.php file to your /forums/modules directory (the folder where you keep your CMPS modules).
Upload the fps_smilie_creator folder to your /forums/images/smilies folder (the folder where you keep your VB smilies). The resulting path should then be /forums/images/smilies/fps_smilie_creator.
Copy & paste the contents of fps_smilie_creator_template.html into a new custom template named adv_portal_fps_smilie_creator (or whatever your prefer).
Create a new VBA CMPS page or module. This is really your choice. For my site I liked it better being a seperate page so when I created my page I used the Page Template option. If you add it as a module instead of a new page then do not include the PHP file in the new module, only include the template!
That's it, you're done! If you upload the PHP file to a folder other than your modules directory or if you upload the images to a folder other than ../images/smilies then you'll have to update the template path names.
UPDATES: Updates & changes....
2004-08-09: The problem with the right-mouse "Save Picture As..." in Microsoft Internet Explorer, where it would want to save it as a bitmap instead of a PNG, has been fixed. I also tweaked the template a little to no longer need the <div> tags.
TIPS & TRICKS: Some ways increase the functionality of your Smilie Creator....
I have installed this hack.... and well it looks great... just doesnt work... all i get is a cute little red x where the created smilie should be... i dont even get the "your new smilie will appear here" bit before you start... just a red x
I have installed this hack.... and well it looks great... just doesnt work... all i get is a cute little red x where the created smilie should be... i dont even get the "your new smilie will appear here" bit before you start... just a red x
Mitsuaki,
Have a URL I can check out? What version of PHP are you running and on Linux or windows?
I take it there is no way to fix then as u have not responded???
:ermm:
I'm at work right now (it's 11:51AM EDT) and as such can't really experiment that much right now to see what's going on with your server. When I get home I can send you a small PHP file to create a PNG file on the fly to rule out whether it's the server settings or this particular hack and we can go from there. I know that your server is capable of producing JPG files using GD so it's just a matter of figuring out if your server has issues with PNG files or this particular PHP script and if turns out to be this script then it's just a matter of seeing if a solution can be found.
I'm at work right now (it's 11:51AM EDT) and as such can't really experiment that much right now to see what's going on with your server. When I get home I can send you a small PHP file to create a PNG file on the fly to rule out whether it's the server settings or this particular hack and we can go from there. I know that your server is capable of producing JPG files using GD so it's just a matter of figuring out if your server has issues with PNG files or this particular PHP script and if turns out to be this script then it's just a matter of seeing if a solution can be found.
oh ok sorry :surprised: thankyou for all your help
oh ok sorry :surprised: thankyou for all your help
Mitsuaki,
Would you mind an experiment? Attached is a version of the script that will create the new image as a JPEG instead of a PNG. If this version works for you then we know that the problem is with your server handling PNG images. If this version doesn't work then we know the problem is somewhere with the script.
Thanks,
Kevin
PS: I'm writing this here in the thread because I can't attach files in PM.