View Full Version : vba CMPS: Smilie Creator
KW802
08-05-2004, 10:00 PM
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/mods/showthread.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 (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....
Encourage your visitors to register (https://vborg.vbsupport.ru/showpost.php?p=548199&postcount=53)
REMINDER: To always be informed of updates & changes be sure to click the https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=68062) button. :classic:
Awesome! Thanks for sharing Pal!
*clicks install*
SnowBot
08-07-2004, 12:56 AM
hhhmm strange thing. I added it as a page. In the Page Template:i added adv_portal_smilie_creator I have enabled ALL usergroups to see it BUT as an admin i can see the page and it all works BUT none of my members can at all :(
Any ideas?
Romeos Tune
08-07-2004, 03:48 AM
I'm just thinking how cool it would be to be able to have it where maybe when viewing extra smilies there was another link to the smilie creator and then it brings up the window with the smilies. That's simple enough to put that link there.... But....What I'd like to see is the smilie to automatically be inserted into a message.
KW802
08-07-2004, 01:34 PM
hhhmm strange thing. I added it as a page. In the Page Template:i added adv_portal_smilie_creator I have enabled ALL usergroups to see it BUT as an admin i can see the page and it all works BUT none of my members can at all :(
Any ideas?SnowBot, what's the URL to check it out? I was testing it as my account (admin' only), a test account (registered users only) and as not being logged in with no problems. The security issues are really a CMPS thing but I'll see what I can do to help you out.
Have you tried going to the page with a test account or not logged in yet?
KW802
08-07-2004, 01:36 PM
I'm just thinking how cool it would be to be able to have it where maybe when viewing extra smilies there was another link to the smilie creator and then it brings up the window with the smilies. That's simple enough to put that link there.... But....What I'd like to see is the smilie to automatically be inserted into a message.Romeos Tune, check out the thread I mentioned over at VBT.com -- You can accomplish it through BB code alone. :nervous:
Snatch
08-07-2004, 02:44 PM
i don´t us CMPS, is there any way to use this hack without VBadvanced vBadvanced CMPS
Romeos Tune
08-07-2004, 04:52 PM
Awesome! I found that! :) Hey, I'd like to show you something...... Sending you a pm..... I used to run ubbthreads and switched over and had a great program like this.... Take a look at your pms...... And thanks! :)Romeos Tune, check out the thread I mentioned over at VBT.com -- You can accomplish it through BB code alone. :nervous:
KW802
08-07-2004, 06:39 PM
i don?t us CMPS, is there any way to use this hack without VBadvanced vBadvanced CMPSSnatch, you should be able to incorporate it into just about any page. There is a thread by Erwin I saw recently about using any HTML page from within VB -- To use this outside of CMPS you'd just have to reference the .html tempate and change your folder paths accordingly and then you should be good to go.
I've only got a few minutes right now but if you can't get it working outside of CMPS then give this thread a bump in the next day or so and I'll see what I can do.
Kevin
KW802
08-07-2004, 06:41 PM
Awesome! I found that! :) Hey, I'd like to show you something...... Sending you a pm..... I used to run ubbthreads and switched over and had a great program like this.... Take a look at your pms...... And thanks! :)When I get back home tonight I'll check it out; the SO is waiting for me downstairs so I've only got a few minutes. Playing around with this is a 'learning project' for me so if I think I can tackle it I'll give just about anything a try. :nervous:
SnowBot
08-07-2004, 06:55 PM
Sorry, the page is here
http://www.synergyforums.com/index.php?page=smilie
I can see it, some of my users can see it but others cant, dont know why :(
KW802
08-08-2004, 12:27 AM
Sorry, the page is here
http://www.synergyforums.com/index.php?page=smilie
I can see it, some of my users can see it but others cant, dont know why :(I just tried.... worked fine for me as unregistered and then again as registered (KW802, account created tonight). There is some javascript in the template, perhaps the users who are having problems are having issues with that? If the users who are having problems don't mind, could you find out what browser & version they are using? Also, do they see nothing at all, a blank page, or is just certain parts of the not working for them?
Thanks,
Kevin
Romeos Tune
08-08-2004, 12:58 AM
Sounds good..... I think you'll like that thing alot..... Prolly be easy for someone like you to port it to VB.... :)When I get back home tonight I'll check it out; the SO is waiting for me downstairs so I've only got a few minutes. Playing around with this is a 'learning project' for me so if I think I can tackle it I'll give just about anything a try. :nervous:
ranger2kxlt
08-09-2004, 12:15 AM
Will this hack work without CMPS?
Any fix for the .bmp problem!!
KW802
08-09-2004, 05:06 PM
ranger2kxlt: It's just a generic HTML template that calls the PHP file so you should have no problems getting it working from any page. If you use it on a non-vBulletin page then you'll have to change the template for your colors, etcetra. The reason why I geared it towards CMPS was because it would allow you to take advantage of CMPS features like security control.
xug: I'm working on it. I haven't been around much this weekend because I'm working on stuff with the fiance (wedding in less than 90 days) but I'll have it resolved shortly. Please bear with me just a little bit longer (I'm hoping to have some time tonight to work on it; if not tonight my next time 'window' is Thursday night).
KW802
08-10-2004, 03:14 AM
I am really starting to HATE Microsoft Internet Explorer! :mad:
The problem with the right-mouse "save picture as..." option in IE only occured if the text had spaces in it; if there was no spaces then it worked fine. Mozilla Firefox worked perfectly, it's only IE that was acting up.
To fix the problem find this code (line #23 in the original template).... var command = '$vboptions[bburl]/modules/fps_smilie_creator.php?text=%20'+text+'%20&typ='+smilie_type+'&col='+font_text_color+'&shcol='+font_background_color;
... and change "+text+" to "+text.replace(/ /g,"%20")+".
I've also tweaked the code a bit so that the <div> tags are no longer required. I'll be repackaging the zip shortly with the above fix and the tweaks (the tweaks won't affect nothing, it's just to reduce some HTML code in the template).
Remember to click "Install" to be kept up-to-date on future fixes & updates.
amykhar
08-10-2004, 01:50 PM
Thank you. The fix worked nicely.
sabret00the
08-10-2004, 01:54 PM
can i use this on my forums or do i need to have vba CMPS installed?
ranger2kxlt
08-10-2004, 03:43 PM
Works like a charm :-D love the hack...
question, why can't we link directly to the image? is there a way to do that? also what about making an add-on, so we can create images within our posts :-D
Thanks
yup, that would be nice ;)
KW802
08-10-2004, 04:49 PM
Works like a charm :-D love the hack...
question, why can't we link directly to the image? is there a way to do that? also what about making an add-on, so we can create images within our posts :-D
ThanksYou wouldn't want to link directly to the image because you'd really be linking to the PHP file that is generating the image on the fly. Just think about it.... if you have a 100 people viewing the same linked image then your server is doing 100 GD processes to create those images.
I put the message about no direct linking in there really for my benefit because I wouldn't want to kill my server. There is nothing stopping from you using the linked URL, but rather it's something you most likely wouldn't want to do.
In regards to inserting it directly into the posts, check out the link I gave for the VBT.com thread. The same end effect could be achieved without having to create a new image on the fly or even using GD at all. :)
If you guys/gals really want something that gets inserted directly into a post then let me know..... Romeo Tunes pointed me in the direction of something that most likely will be my next learning experiment that will do it but it will take a little bit of time for me to work on it.
ranger2kxlt
08-10-2004, 05:41 PM
In regards to inserting it directly into the posts, check out the link I gave for the VBT.com thread. The same end effect could be achieved without having to create a new image on the fly or even using GD at all. not sure where this can be found...
I would love to have the images be made and inserted on the fly while in posting mode :-D
KW802
08-10-2004, 05:43 PM
not sure where this can be found...
I would love to have the images be made and inserted on the fly while in posting mode :-DThe VBT.com thread can be found here (http://www.vbulletintemplates.com/mods/showthread.php?t=6671).
Hi all, I followed the instructions but I don't know how to be able to choose this mod option....
If I was a visitor and wanted to use this module, how would I do it..
And yes...I am a real noobe.
Romeos Tune
08-11-2004, 02:55 AM
yeahhhhh We want we want! lol...... This'll be great when you get that thing working...... :)
KW802
08-11-2004, 12:01 PM
KW802,
What is the fix for the bitmap issue, so the people who already installed know what we need to go in and fix?
FiberThe quick fix is a one word change on line #23 of the original template. Please see post #17 above (https://vborg.vbsupport.ru/showpost.php?p=541569&postcount=17) for the details.
For those not familiar with, or haven't come across it yet, the bitmap issue was....
Some people using IE were having problems when they went to right-click "Save Picture As..." on the new smilie. Instead of seeing the name "fps_smilie_creator" as the file name to be saved and PNG as the file type they would instead see "untitled" as the file name and "bitmap" as the file type. The file would still be saved and would work fine but by saving it as a bitmap instead of a PNG it wasn't saving the transparency of the graphic, instead the new smilie would appear with a white background. Because the file would still save some people didn't even realize that there was a problem and just assumed that the white background was normal.
To confuse matters even more not all IE users were experiencing it. I finally tracked it down to the fact it would only happen if there were spaces placed into the smilie message. In other words, an IE user creating a smilie with the message of "Cool!" would see "fps_smilie_creator" / PNG but an IE user creating a smilie with the message of "This is cool!" would see "untitled" / bitmap.
What was causing me frustration was the fact that only IE was experiencing the problem, Mozilla Firefox would always properly recognize both the file name and file type.
For people who already have it installed changing the one line I gave earlier (the part about "+text+") will fix the IE problem. Changing the one line will have no impact on either the template or the new smilie image, it'll just take care of the IE right-mouse issue.
I really do appreciate everybody's patience in dealing with the problem until I had a fix. Thanks, everybody! :D
KW802
08-11-2004, 12:14 PM
yeahhhhh We want we want! lol...... This'll be great when you get that thing working...... :):D Assuming that somebody else doesn't knock it out first it's the 2nd thing on my 'to do' list. The first thing on my list is that I'm trying to change the RSS Feed hack by VeloCD to hard-code some logic in the PHP to force all articles that contain a certain phrase into one particular forum regardless of what the original RSS Feed was or what forum that feed would normally be posted into. It's an ugly change, because it'd be hard-coded in the PHP instead of through the ACP menu, but for my site it'd be useful to do.
I think converting that UBB hack to be a VB hack would be another nice learning project so it's definitely something I'll be working on. I've looked at the code that you sent me and am currently seeing which code is for the actual function of the panel generator and which code is for the UBB functionality. Yeah, I'm a geek... I look at code for fun.
KW802
08-11-2004, 12:17 PM
Hi all, I followed the instructions but I don't know how to be able to choose this mod option....
If I was a visitor and wanted to use this module, how would I do it..
And yes...I am a real noobe.YLP1,
Good morning. OK, first question.... did you implement it as a CMPS add-on or as a seperate VB item? Assuming that you did it through CMPS, how did you do it? Did you create a new module, did you create a new page, or some other method?
Thanks,
Kevin
ranger2kxlt
08-11-2004, 06:32 PM
I'm confused on the VBT hack...how do users know about the other faces they can use? please explain how that works.
thanks
KW802
08-11-2004, 06:45 PM
I'm confused on the VBT hack...how do users know about the other faces they can use? please explain how that works.
thanksYou'd have to ask Hoffi that one in the VBT.com thread; I can only assume you'd have to write up instructions for it somewhere. On my site I've only been playing around with the default one that he provided.
YLP1,
Good morning. OK, first question.... did you implement it as a CMPS add-on or as a seperate VB item? Assuming that you did it through CMPS, how did you do it? Did you create a new module, did you create a new page, or some other method?
Thanks,
Kevin
Hi Kevin,
I created a CMPS module named adv_portal_fps_smilie_creator and chose the fps_smile_creator.php as the file include.
I also created a Custom template names adv_portal_fps_smilie_creator.
If I enable the module for the smilies, I get this error on my pages:
Warning: imagecopy(): supplied argument is not a valid Image resource in d:\myisp\web\lpsforum\modules\fps_smilie_creator.p hp on line 102
Warning: imagecopy(): supplied argument is not a valid Image resource in d:\myisp\web\lpsforum\modules\fps_smilie_creator.p hp on line 103
Warning: Cannot modify header information - headers already sent by (output started at d:\myisp\web\lpsforum\modules\fps_smilie_creator.p hp:102) in d:\myisp\web\lpsforum\modules\fps_smilie_creator.p hp on line 143
?PNG IHDR?%?/?? PLTE???~Q?]tRNS7????IDATx???=?0 ?sI[r?T"?yHd???mJK??P?P\?q)?Ò?H3)'+? ?Zx????V?????;#] V?o??С??W?u?j=????;=IEND?B`?
Warning: imagedestroy(): supplied argument is not a valid Image resource in d:\myisp\web\lpsforum\modules\fps_smilie_creator.p hp on line 146
KW802
08-12-2004, 12:54 AM
Hi Kevin,
I created a CMPS module named adv_portal_fps_smilie_creator and chose the fps_smile_creator.php as the file include.Ah! Thank you for being specific, it made it much easier to figure out. :D
The problem is that you don't want to include the PHP file! In your module you only have to include the template, not the PHP file, since the template is what calls the PHP.
Change the "File to Include" value to "None" and then change the "Or Template to Include" value to be the name of the template (minus the "adv_portal_" part of course).
Try that and let me know how it goes. :classic:
sabret00the
08-12-2004, 08:46 AM
can i use this on my forums or do i need to have vba CMPS installed?
bump, i had the vb2 version, not interested in the vb3 version but would like a straight answer (sorry for my abruptness)
KW802
08-12-2004, 01:02 PM
bump, i had the vb2 version, not interested in the vb3 version but would like a straight answer (sorry for my abruptness)Sabret00the, this issue has already been addressed in previous posts....
From post #1: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.....From post #9:Snatch, you should be able to incorporate it into just about any page. There is a thread by Erwin I saw recently about using any HTML page from within VB -- To use this outside of CMPS you'd just have to reference the .html tempate and change your folder paths accordingly and then you should be good to go.
I've only got a few minutes right now but if you can't get it working outside of CMPS then give this thread a bump in the next day or so and I'll see what I can do.From post #16:ranger2kxlt: It's just a generic HTML template that calls the PHP file so you should have no problems getting it working from any page. If you use it on a non-vBulletin page then you'll have to change the template for your colors, etcetra. The reason why I geared it towards CMPS was because it would allow you to take advantage of CMPS features like security control.As I've offered before, if anybody is trying to get this working on a non-CMPS page but is having problems just let me know how you're trying to use it (non-VB page, VB page but non-CMPS, etcetra) and I'll see what I can do to help out.
ranger2kxlt
08-12-2004, 02:38 PM
KW802, i'm using it now, on a vb-page but non-cmps, and works perfect :-D
www.thunderbirdnest.com/index.php?page=smiliecreator
Thanks for the help :-D
Hi Kevin,
Ok that got rid of the error...now for the really hard part....how does one use this mod? LOL
I don't see how to use it....
Sorry for being a pain in the butt...
Kevin, can you explain so that I can understand better why the include was not used and how the template thingie works?
I'm new at VB and I can't seem to grasp when to use an include versus a page template (or where the templates come from like do I create it and if so why).
Thanks in advance for any insight...
PS: If you click here http://www.yourlincolnpark.com/lpsforum/lpsforum.php I see the module now but it has an error see the red X...and this box is too wide for my page and when you click create nuthin happens.
Also, this module doesn't appear on any of the other forum pages like for instance http://www.yourlincolnpark.com/lpsforum/showthread.php?t=332 or http://www.yourlincolnpark.com/lpsforum/forumdisplay.php?f=21
I have the portal installed actually they installed it for me LOL...told ya I was a noobe...
KW802
08-12-2004, 04:06 PM
Kevin, can you explain so that I can understand better why the include was not used and how the template thingie works?
I'm new at VB and I can't seem to grasp when to use an include versus a page template (or where the templates come from like do I create it and if so why).
Thanks in advance for any insight...
PS: If you click here http://www.yourlincolnpark.com/lpsforum/lpsforum.php I see the module now but it has an error see the red X...and this box is too wide for my page and when you click create nuthin happens.
Also, this module doesn't appear on any of the other forum pages like for instance http://www.yourlincolnpark.com/lpsforum/showthread.php?t=332 or http://www.yourlincolnpark.com/lpsforum/forumdisplay.php?f=21
I have the portal installed actually they installed it for me LOL...told ya I was a noobe...No problem, hopefully I can explain some of the vBa CMPS stuff without confusing anybody.... :D
With the vBa CMPS stuff the rule of thumb is that all modules need a template. The template is what produces the square box you see on the portal front page. A PHP file may or not be included based upon what the template is doing. A quick way of remembering which file is to be included is that you need to include whatever that which is doing the action. To clarify, let's take a look at a few example modules.
Example #1 -- A module that does nothing but says "Hello World!" in bold: For this we would create a new template named "adv_portal_hello_world" with nothing in it but "<strong>Hello World!</strong>" and then we would create a new module that includes the template (referenced by "hello_world"). We wouldn't include a PHP file because we aren't doing anything related to the PHP language, we just want to display a message in plain HTML. The "action" is taking place entirely in the template so we want to include just the template. Since we've already included the template we can leave the "Templates Used" value in the module blank. To summarize... the action is in the template so we'll include the template and leave the Templates Used value blank.
Example #2 -- A module that displays a random quote from table: Now for this module we need to get a little bit more complicated because we need to extract the results of a database query. To do the database query we'll write a small PHP file named "get_results.php" and put it in the /modules folder. The PHP file will grab the quote and create a variable called "$quote" that contains the value it grabbed from the database. OK, the PHP file file will get our random quote but we need to display it on the page yet. Going by our rule of thumb we need to create a template so we'll create one called "adv_portal_random_quote" and inside of the template will be nothing but "$quote" (the variable name from the PHP file). OK, we've got a PHP file and and a template so it's time for the module. Where is the "action" taking place? Inside of the PHP file so this time we'll include the PHP file instead of the template. But the PHP file uses a template for it's results so this time we'll fill in the "Templates Used" value in the module with the name of the template that's being used ("adv_portal_random_quote"). To summarize... the action is in the PHP file which is using a template so we'll include the PHP and insert the template name in the Templates Used value.
Example #3 -- This smilie creator: This vBa CMPS module is a little different from most vBa CMPS modules in that I had wanted to make it is as generic as possible so that people could use it on non-vBa pages. Even though I called it a "vba CMPS module" it is in fact a generic chunk of code that could be used just about anywhere with just some minor tweaking. Because I wanted to make it generic the action is taking place inside of the template; the template calls the PHP file which is exactly opposite of Example #2 above. Because the action is taking place inside of the template we'll create the module like we did in Example #1 by including the template & leaving the Templates Used value blank. To summarize... the action is in the template which is using a PHP file so we'll include the template and leave the Templates Used value blank.
So in a simplified nutshell... all modules need a template to be displayed on the portal page and the module should include the file that is doing the action. If the action is in the PHP file then include the PHP and fill in the Templates Used value but if the action is in the template then include the template and leave the Templates Used value blank.
OK, on to some of the other issues...... :D
The red X... are you sure that your server has GD enabled? "GD" is a function of the PHP language installed on server that allows images to be worked with. For example, the PHP file in this case uses GD to create the new smilie on the fly. If you're not sure a quick check would be to go into your Administrators Control Panel (ACP) then choose "Import & Maintenance" at the buttom of the left hand menu area and then choose "View PHP info". If you then scroll down the window you should see a section entitled "gd" and it will list whether it is enabled and also what version. You want to make sure that it is enabled with "PNG Support" enabled as well.
The box is too wide... Yeah, it's definitely too wide to be in a left or right column! :nervous: If you really want it displayed all of the time I'd recommend then moving it the bottom of your center column. You can do this by going into ACP --> vBa CMPS --> Edit Module --> (what ever module name you chose) and then use the "Move To" arrows to move the module to the center column & then changing the index number (the little box to the right of the module name) to a number that is higher than anything else in the center column.
The box doesn't appear anywhere else... Because it was added as a vBa CMPS module it will only appear on vBa CMPS pages. Your front-page is in vBa CMPS but once you switch to the forums, for example, then you're no longer in vBa CMPS. Now you can do some mojo to have your vBa CMPS modules appear in your forum but for now let's just concentrate on getting it working.
When you have a few minutes I'd ask that you check out your PHP info page to verify the GD settings and then also move the column from the right to the center at the bottom so that until we get it working it doesn't make your right column bigger than it needs to be. After we get it working (assuming that your GD is enabled & working, etc.) then I'd recommend you changing it from being on your home page to be on it's own seperate page (don't worry, it's easy.... when the time comes we can walk you through it).
Kevin
Hi Kevin,
WOW thanks for the explanation...I think I understand it!!
Here is what my gd says in PHP Info
gd
GD Support enabled
GD Version bundled (2.0 compatible)
FreeType Support enabled
FreeType Linkage with freetype
JPG Support enabled
PNG Support enabled
WBMP Support enabled
KW802
08-12-2004, 05:33 PM
Hi Kevin,
WOW thanks for the explanation...I think I understand it!! Cool. :D
Here is what my gd says in PHP Info
gd
GD Support enabled
GD Version bundled (2.0 compatible)
FreeType Support enabled
FreeType Linkage with freetype
JPG Support enabled
PNG Support enabled
WBMP Support enabledOK, I just did a brief experiment and it looks like your host server is running Windows instead of Unix or Linux and that line #53 of the PHP file may be having issues with that. When I get home (late) tonight I'll poke around to see if I can find anything out; I don't have access to a Windows hosted site to play with so it might take me a little bit longer than usual. :o
Awesome, thanks Kevin...
Yes my forum is on a Windows server.
I'll be here....so whenever you find something...
KW802
08-12-2004, 05:52 PM
Awesome, thanks Kevin...
Yes my forum is on a Windows server.
I'll be here....so whenever you find something...If you're up for it..... Experiment #1!
Please try replacing the "fps_smilie_creator.php" file on your server with the one attached instead.
Thanks,
Kevin
K I uploaded the new one...same thing is happening.
OH gosh...take a look at this: http://www.yourlincolnpark.com/lpsforum/lpsforum.php
I moved the module to the center and look where it appears on the portal page LOL....
What's up with that?
KW802
08-12-2004, 06:21 PM
K I uploaded the new one...same thing is happening.I'm trying to come up with experiment #2 now.... in the mean time put the module back on the right side! We'll figure that one at later.
Edit: OK, experiment #2 attached.
Edit #2: YLP1, if it still doesn't work shoot me of a PM instead so I don't end up filling up the thread with experiments. :D
Ok installed the new file and moved the module back to the right...no changes.
Oops...sorry..just sent this via pm...didn't see that before I posted this.
KW802
08-13-2004, 12:20 PM
Ok installed the new file and moved the module back to the right...no changes.
Oops...sorry..just sent this via pm...didn't see that before I posted this.YLP1, I realized that I can't send attachments via PM so I've got to muddle up the thread a bit more.
Attached is experiment #3. If this one still doesn't work let's take it to email (kw802@farpointstation.org) so I can send attachments. :D
For everybody else reading this thread... sorry filling up the thread with this stuff. :o
YEAH, You rock Kevin!!!! It worked...go see http://www.yourlincolnpark.com/lpsforum/lpsforum.php
Oops....it doesn't like two lines in the signage though...
KW802
08-13-2004, 02:56 PM
YEAH, You rock Kevin!!!! It worked...go see http://www.yourlincolnpark.com/lpsforum/lpsforum.php
Oops....it doesn't like two lines in the signage though...We're getting there! :nervous:
Some experimenting later and you're absolutely correct, when it hits 33 characters or more it has problems. I'm seeing what I can do now.... We could always cheat and make the input limited to 32 characters but I'll have a solution for you.
Working nice at our website, as a center module, thanks for this cool addon! ;)
KW802
08-13-2004, 03:08 PM
Working nice at our website, as a center module, thanks for this cool addon! ;)https://vborg.vbsupport.ru/external/2009/02/1.gif Thanks, good to hear! I just wish everybody's install would go as smooth. Except for this Windows server issue I think I have all of the Unix/Linux people up & running.
Today's learning lesson for me will be to find out why parsing an array in PHP works fine on the Unix/Linux boxes but not on a Windows box. Man, I guess I am a geek.... I love doing this kind of stuff. I think the time has also come for me to visit my local Barnes & Noble up for some PHP books.
KW802
08-31-2004, 12:43 AM
Here's a small & quick modification to the template for vBa CMPS users to help encourage your visitors to register!
What I've noticed on the sites that have installed the Smilie Creator is that they either leave the security settings wide open so that anybody can use it or they turn the page off for users not logged in. One of my goals with this (besides it being a learning experiment :p ) was to help encourage users to register but with security opened up to everybody visitors had no reason to register and even then they couldn't see what benefit registering would do for them. Plus for people who implemented this as a module, instead of page, they couldn't restrict access to it as easily as people who implemented it as a new page.
The solution is a quick change to the template to use a vBulletin conditional to restrict access to the "create" button to only users logged in. Simple but I think it does the job so far. :)
A screen shot of this modification showing the output to visitors not logged in is attached.
To make this change find the following code in your template:<td align="center" valign="middle" colspan="2" class="alt1">
<br/><input type="button" name="Create_Smilie" value="Create my custom smilie!" onclick="createSmilie(get_radio_value(),document.smilie_for m.text.value,document.smilie_form.col.value,docume nt.smilie_form.shcol.value)"/>
</td>
And replace it with this code:<td align="center" valign="middle" colspan="2" class="alt1">
<br/>
<if condition="$bbuserinfo[userid]">
<!-- CODE TO DISPLAY IF THE USER IS LOGGED IN -->
<input type="button" name="Create_Smilie" value="Create my custom smilie!" onclick="createSmilie(get_radio_value(),document.smilie_for m.text.value,document.smilie_form.col.value,docume nt.smilie_form.shcol.value)"/>
<else />
<!-- MESSAGE FOR GUESTS -->
<hr width="95%">
<strong>If you were logged in right now a button would be here so that you could create your new smilie! If you haven't registered yet just click <a href="$vboptions[bburl]/register.php?$session[sessionurl]">here</a>. <i>It's fast, easy and free!</i></strong>
<hr width="95%">
</if>
</td>
If you come up with any other modifications that you'd like to share with the community please feel free to post your ideas! To be emailed any major updates or changes click "Install" in the upper-right hand corner of this thread.
IMPORTANT: If you're running the original 1.0.0 version of the template the command line has changed in the 1.0.1 template! You'll need to make the following modificatins only if you're using the original 1.0.0 template otherwise if you're using the newer version of the template use the code above. Only use the code below if you're using the original version of the template: Look for this code: <td align="center" valign="middle" colspan="2" class="alt1">
<br/>
<input type="button" name="Create_Smilie" value="Create my custom smilie!" onclick="createSmilie(get_radio_value(),document.smilie_for m.text.value,document.smilie_form.col.value,docume nt.smilie_form.shcol.value)"/>
</td>
And change it to:<td align="center" valign="middle" colspan="2" class="alt1">
<br/>
<if condition="$bbuserinfo[userid]">
<!-- CODE TO DISPLAY IF THE USER IS LOGGED IN -->
<input type="button" name="Create_Smilie" value="Create my custom smilie!" onclick="createSmilie(get_radio_value(),document.smilie_for m.text.value,document.smilie_form.col.value,docume nt.smilie_form.shcol.value)"/>
<else />
<!-- MESSAGE FOR GUESTS -->
<hr width="95%">
<strong>If you were logged in right now a button would be here so that you could create your new smilie! If you haven't registered yet just click <a href="$vboptions[bburl]/register.php?$session[sessionurl]">here</a>. <i>It's fast, easy and free!</i></strong>
<hr width="95%">
</if>
</td>
For some reason there keeps getting extra spaces inserted into the word "form" and "document" in the revised input command above. I've tried modifying it several times now and for some reason vBulletin keeps putting the spaces back in. In the revised code you'll need to remove the extra spaces before saving your template otherwise your page won't work and will display a script error message. :ermm:
https://vborg.vbsupport.ru/external/2009/02/1.gif Thanks, good to hear! I just wish everybody's install would go as smooth. Except for this Windows server issue I think I have all of the Unix/Linux people up & running.
Today's learning lesson for me will be to find out why parsing an array in PHP works fine on the Unix/Linux boxes but not on a Windows box. Man, I guess I am a geek.... I love doing this kind of stuff. I think the time has also come for me to visit my local Barnes & Noble up for some PHP books.
Hi KW802, you make any headway on the issues I had posted? I would love to use this but I still have those issues.
KW802
08-31-2004, 01:23 AM
Hi KW802, you make any headway on the issues I had posted? I would love to use this but I still have those issues.I didn't forget about you, I just don't have access to a windows box for testing. What I'm trying to do is piece together enough components from my spare parts bin to set up a box for testing. Why standard PHP would work fine on Unix/Linux boxes but not a Windows box has me puzzled yet but I'm determined to get a solution. :ermm:
Thank so you much....I will patient....
venomx
09-06-2004, 06:43 AM
Hey what is smilies.psd in the zip?
KW802
09-06-2004, 02:14 PM
Hey what is smilies.psd in the zip?VenomX,
It is a template smilie face so that new smilies can be created from it. It was part of the original VB2.x hack that this conversion was based upon. To create additional/new smilie faces use the PSD to make your smilie to how ever you'd like it and then when you upload it to your server just change the template to include it. As long as the new smilie is the same dimensions as the template then it'll work fine.
Kevin
Blam Forumz
09-25-2004, 02:00 PM
I get it to work, but when you save image as, it saves it as .php
help
KW802
09-25-2004, 02:04 PM
I get it to work, but when you save image as, it saves it as .php
helpBlam Forumz, are you using the most recent version of the template & code? The last revision should've taken care of that problem.
Blam Forumz
09-25-2004, 02:18 PM
I just downloaded it a few minutes ago :|
KW802
09-25-2004, 03:34 PM
I just downloaded it a few minutes ago :|Is there a URL I could check out to see it?
Cold Steel
09-25-2004, 10:09 PM
Excellent.
Thanks for the good work.
Blam Forumz
09-26-2004, 04:40 AM
<a href="http://www.blaminator.co.uk/cmps_index.php?page=smilie" target="_blank">www.blaminator.co.uk/cmps_index.php?page=smilie</a>
KW802
09-26-2004, 05:19 AM
www.blaminator.co.uk/cmps_index.php?page=smilie (http://www.blaminator.co.uk/cmps_index.php?page=smilie)Seems to be working fine. I tried that site with both IE 6.0.29 and Firefox .09 and both saved it as a PNG file.
Blam Forumz
09-26-2004, 05:22 AM
Hmm, probably just Firefox 1.0PR messing things up
KW802
09-26-2004, 05:26 AM
Hmm, probably just Firefox 1.0PR messing things upIt should work.... by any chance, is the file name in FireFox coming up as "fps_smilie_creator.php" and the Save as Type "PNG Image"?
Blam Forumz
09-26-2004, 12:05 PM
Indeed it is
KW802
09-26-2004, 02:22 PM
Indeed it isThat means you're running a Windows XP box with the "Folder Options / View / Hide Extensions for known file types" turned on. ;)
Firefox is picking up the name of "fps_smilie_creator.php.png" but it isn't showing you the ".png" part because the extensions are turned off but it is properly trying to save it as a "PNG Image". Go ahead and save the file to your hard-drive and then double-click it; it should launch in your image viewer. Try viewing the same page with IE and you'll see just "fps_smilie_creator" as the file name and "PNG" as the file type.
Blam Forumz
09-26-2004, 07:56 PM
The thing is, file extensions are on o_O I hate them turned off
KW802
09-27-2004, 01:55 AM
The thing is, file extensions are on o_O I hate them turned offDid you try saving the file yet?
Blam Forumz
09-27-2004, 05:13 AM
yeah, thanks, that worked fine, m just worried that people might end up saving .php files and not .png files and get confused
KW802
09-27-2004, 12:35 PM
yeah, thanks, that worked fine, m just worried that people might end up saving .php files and not .png files and get confusedI'll see what I can do. The curious part is why Firefox displays the ".php" part of it but IE doesn't.
ashley53680
10-02-2004, 04:14 AM
Oops, doesn't work for me *yet*.... the only thing I can think of is I saved the php file in the WRONG place. LOL
http://www.simply-baby.net/forum/vbaindex.php?page=smiliecreator
Thank you ahead of time! :)
ashley53680
10-02-2004, 04:17 AM
Nevermind... I fixed it... hehe
KW802
10-02-2004, 01:26 PM
Nevermind... I fixed it... heheAshley53680, good to see you go it working. :D
dieselpowered
10-03-2004, 07:12 PM
Hey that post at VBT not sure what that does?? Is it an addition to your hack? I would really like to use yours and allow people to click on the smilie created and have it place itself into the post? Forgive my ignorance!!
Mike
venomx
10-03-2004, 07:28 PM
The one at VBT is for only in the post its used it.. If they want one to take away they need this hack here...
dieselpowered
10-03-2004, 07:57 PM
Ok ya I am trying to get something that places the smilie in a post directly from the editor ;)
I am sure our buddy here can do that!!
Mike
KW802
10-04-2004, 02:22 AM
Hey that post at VBT not sure what that does?? Is it an addition to your hack? I would really like to use yours and allow people to click on the smilie created and have it place itself into the post? Forgive my ignorance!!
MikeMike,
The VBT trick is a BB code that creates the allusion of a smilie holding a sign. It does this by creating table that is 1 column by 2 rows; the first row has a border with a white background & contains the text that is typed in while the second row has no border & contains the smilie centered. The end result is a very nice looking table that gives the appearance of a smilie sign. It's a very simple & cool bb code trick. But, as others have pointed out, you can't save the image because it really isn't an image.
This hack creates an actual PNG file that the user can right-click save-as to their local PC. The problem appears to be that I was, to be candid, a bit short-sighted when I worked on it.
To clarify that last remark when I was working on this hack I knew about the VBT trick so in my head I thought that it eliminated the need of the original hack that this is based on because the same end results could be achieved, a smilie holding a sign inside of a post. That is why when I approached this hack as a learning experience I geared it more towards generic usage that could be used on just about any HTML page rather than just the VB forums. After all, I figured, why would anybody want to put additional overhead on their server to create the graphics inline, or to save all of the images on their server eating up drive space, if they didn't have to.
Well, based upon various feedback I was wrong. :ermm:
If you guys & gals can bear with me and give me a little bit of time I have a few ideas in floating around in my head on how to integrate this smilie maker with the VB3 editor. Priority wise I want to finish up some changes I'm doing to another hack, a modified version of external.php (search for FPS_EXTERNAL.PHP for that hack), and then my wedding is in a few weeks so my free time these days is very little but I would like to come back to this smilie creator and make the revisions to it so that it can be integrated into the VB3 editor. :nervous:
Mitsuaki
10-04-2004, 11:50 AM
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
KW802
10-04-2004, 12:12 PM
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 xMitsuaki,
Have a URL I can check out? What version of PHP are you running and on Linux or windows?
Kevin
Mitsuaki
10-04-2004, 12:48 PM
PHP Ver 4.3.9.. On Linux server
I send you PM with URL in
KW802
10-04-2004, 01:01 PM
PHP Ver 4.3.9.. On Linux server
I send you PM with URL inI'm replying via PM with an error message that I'm getting....
Mitsuaki
10-04-2004, 02:07 PM
I take it there is no way to fix then as u have not responded???
KW802
10-04-2004, 02:53 PM
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.
Mitsuaki
10-04-2004, 07:55 PM
: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.
oh ok sorry :surprised: thankyou for all your help
KW802
10-05-2004, 01:52 PM
oh ok sorry :surprised: thankyou for all your helpMitsuaki,
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.
Mitsuaki
10-05-2004, 06:09 PM
i hope i did this right... i uploaded that file to the modules dir replacing the old file... but exactly the same thing occurs...
KW802
10-05-2004, 07:35 PM
i hope i did this right... i uploaded that file to the modules dir replacing the old file... but exactly the same thing occurs...Is it still at the same URL that you sent via PM? If so I'll try to check it tonight when I'm back at the house.
Mitsuaki
10-06-2004, 04:28 PM
tis the same except the action is 'p' instead of 'page' so it will be 'index.php?p=smilie'
Chazz Layne
10-09-2004, 06:57 PM
...or to save all of the images on their server eating up drive space, if they didn't have to...
How difficult would it be to make it do just that, and list out previously created smilies? I fuddled around with it for a while, but I don't know the inner workings of vB well enough to get the results to show ON a vB page (specifically, the same page as the Smilie Creator as a second "module"). It would work well for situations like mine where only paid subscribers can access the Smilie Creator... :D
Great hack BTW, my members are gonna love this.
* Chazz Layne clicks install.
KW802
10-10-2004, 02:04 AM
Mitsuaki: I haven't forgotten about you, I just haven't been home much lately. I'm getting married in less than 4 weeks and my free time has been reduced further than I thought it was going to be. :(
Chazz: Getting it to save the images is just a matter changing the PHP file. What I'm picturing in my head for the next version is an option to pass in whether to save the file to the server or not. I'll have to take a look to see if there is an easy way of looping through the previously created images to build the page on the fly (I haven't done something like that before yet so it's now on my list of 'things to learn how to do' :D ). The first part shouldn't be a problem but the second part will require me to do some quick learning.
If either of you guys don't hear back from me within a few days hit me up with a PM. :)
KW802
10-11-2004, 07:47 PM
OK, is there anybody who is not using this with VB3? How about anybody who has access opened up to everybody including guests?
I'm working on saving the images to the server but need to come up with a naming convention. For my own purposes I'm thinking of using "{userid}_{YYYYMMDD}{HHMISS}_{file name of smileyselected}" -- Essentially I need to ensure that the file name is unique when saved to the server. The format I mentioned would result in a name like "1_20041011164111_vorlange1.png" which is a bit unwieldy but unique.
I wouldn't want to use the user name since it might contain characters like spaces, etcetra. The date & time ensure uniqueness and the source name would be just a nice thing to have in there. For people who have access opened up to non-guests then there might be an issue with having the userid in there because on a larget site it could happen that multiple guests are creating a smiley from the same source image at the same second. :ermm:
Thoughts? Bueller?
Chazz Layne
10-11-2004, 07:56 PM
That's exactly the way I was doing it, minus the userid. I have a PotD running the same way. I figured a paginated gallery (like avatars) would work best for retrieving them. The 2 problems I hit were both from not knowing the workings of vB well enough to get the filename to pass back to the template via variable to show the image after it's created (or the list of older images)... wish I had more time to read up on it.
OT: Congrats on the upcoming wedding. :D
Mitsuaki
10-18-2004, 05:36 PM
Mitsuaki: I haven't forgotten about you, I just haven't been home much lately. I'm getting married in less than 4 weeks and my free time has been reduced further than I thought it was going to be. :(
Chazz: Getting it to save the images is just a matter changing the PHP file. What I'm picturing in my head for the next version is an option to pass in whether to save the file to the server or not. I'll have to take a look to see if there is an easy way of looping through the previously created images to build the page on the fly (I haven't done something like that before yet so it's now on my list of 'things to learn how to do' :D ). The first part shouldn't be a problem but the second part will require me to do some quick learning.
If either of you guys don't hear back from me within a few days hit me up with a PM. :)
Np just as soon as u can....
Great job! :)
*Clicks Install
Makador
10-24-2004, 03:36 PM
Hm nice hack, but what is the matter with: "Please do not link directly to the smilie." As I see it works fine and the user doesn't have to save and upload it himself, if you link directly to the smilie. So where is the problem?
Chazz Layne
10-24-2004, 04:27 PM
Hm nice hack, but what is the matter with: "Please do not link directly to the smilie." As I see it works fine and the user doesn't have to save and upload it himself, if you link directly to the smilie. So where is the problem?
The direct link to the smilie as shown customised is actually to the script. If your users link to it that way it will re-create the custom smilie each time it's viewed, which will rapidly start to eat up resources. On a site that only gets a few hits it may not be a big deal, but in a forum environment I imagine it would get out of hand pretty quickly.
Makador
10-24-2004, 04:33 PM
Hm yes thats right. Would be nice to modify the script, that it saves the generated picture automatically in a forum directory and shows the user the link, because most people don't have their own webspace and it is too much work to save and upload it.
KW802
10-24-2004, 11:34 PM
Hm yes thats right. Would be nice to modify the script, that it saves the generated picture automatically in a forum directory and shows the user the link, because most people don't have their own webspace and it is too much work to save and upload it.It's being worked on. ;) Unfortunately my time for the next few weeks is almost completely filled up with wedding stuff but I'm slowly working on it.
The number one thing I've learned this summer is this: If you're getting married, hire a wedding planner! Doing the arrangements ourselves has ended up taking so much time away from us that nearly any time away from work, and even some time during, is taken up with working on the arrangements. Two more weeks and it'll all be over though. :lick:
Mattius
10-27-2004, 01:34 AM
Is there a way to change the background "outside" the banner to a colour other than white...? I notice the png files used are transparent initially in that spot
paulmjno
12-07-2004, 01:23 AM
The Mozilla Firefox browser does not recognise the smilies as images, IE does...I am using Mozilla FF 1.0.
Also: If someone knows the direct image link, they could keep visiting it, causing a load of work for the server, and possibly crashing it. People can ask directly link to the images putting them on their websites, and posting them to other boards, etc. Shouldn't this possibility be eliminated? While I have installed this, it is not currently under use. Mainly because of the FF issue, but also because of those other issues I mentioned. The image should be saved temporarily to the server, and a scheduled task should remove saved images. Now, a bonus would be for users to create their own selection of smilies, which they could use in postings. It would be wise, of course, to limit the amount of smilies a user can make.
HarryBO
12-22-2004, 03:36 PM
How can I create a new Page for the Creator? I don´t want the Smilie Creator on the Portal Side!
HarryBO
12-26-2004, 03:32 PM
Can nobody help?
KW802
02-04-2005, 05:56 PM
Paulmjno: FF recognizes it fine for me and other sites that I've seen it on. :confused:
HarryBO: Do you mean a seperate page without using CMPS?
Pamela
03-01-2005, 09:24 PM
Does anyone know how I can add more color selections to the font color and sign background colors?
What code changes would I need to make (I have no clue even where to start).
Thank you! :)
eva01_
03-01-2005, 09:31 PM
my guess would be to go into the fps_smilie_creator_template.html and then just add more colors after the white part before </select>
<!-- START: Text color -->
<tr>
<td align="left" valign="top" class="alt1">
<smallfont><strong>Choose the sign's text color: </strong></smallfont>
</td>
<td align="left" class="alt1">
<select name="col">
<option value="0,0,0" selected style="background-color:#000000; color:#FFFFFF">Black</option>
<option value="0,0,255" style="background-color:#0000FF">Blue</option>
<option value="185,207,232" style="background-color:#B9CFE8">Softblue</option>
<option value="255,153,0" style="background-color:#FF9900">Orange</option>
<option value="255,210,0" style="background-color:#FFD200">Yellow</option>
<option value="0,255,0" style="background-color:#00FF00">Green</option>
<option value="197,248,163" style="background-color:#C5F8A3">Softgreen</option>
<option value="13,105,3" style="background-color:#0D6900; color:#FFFFFF">Darkgreen</option>
<option value="147,81,3" style="background-color:#935103; color:#FFFFFF">Brown</option>
<option value="255,255,255">White</option>
</select>
</td>
</tr>
<!-- END: Text color -->
same thing for the background color just go into the background color code and add more
KW802
03-01-2005, 09:43 PM
my guess would be to go into the fps_smilie_creator_template.html and then just add more colors after the white part before </select>
<snip>
END: Text color -->[/html]
same thing for the background color just go into the background color code and add more
Exactly!
In a line like.... <option value="255,255,255">White</option>The "255,255,255" is simply the RGB value of the color to use.
Pamela
03-01-2005, 10:11 PM
Oh okay...that definitely seems easy enough! Thank you eva01 and KW802!!! :D
OK, I guess Im not understanding the install on this. I have installed alot of hacks, but Im not getting how to do it for vB....
Im lookin for members to be able to create a smiles and once done, click it to add right into a thread, just like you would do with the regular smilies....Am I missing something here and can anyone PLEASE point me in the right directoin on installing this and doing this..
Thanks Guys....Love to have this hack workin soon!
Vman
this hack only generates smillies with the little text at the top of it... users have to save them to their computer and then use them wherever they want... however what you want to do is a little more complex, but would definetly be something cool... maybe a coder would like to do that... but for now.. is only the default way ;)
Gottcha
04-28-2005, 02:56 AM
got it to all show up on my site but where the smilies are created is a red x...any help is appreciated
http://www.fragtraders.com/modules.php?name=smilies
got it to all show up on my site but where the smilies are created is a red x...any help is appreciated
http://www.fragtraders.com/modules.php?name=smilies
it doesnt work at all... wonder what could be the problem... maybe since you are not using the cmps... but this should be able to work without the cmps... oh well I hope kevin can help you out...
:Judge:
08-10-2005, 01:12 AM
wow this has been around for awhile.
I just got done adding it but I am also getting the broken image where the created smilie should be.
Here is a link:
http://www.cecilcountyx.com/index.php?page=smilies&
KW802
08-10-2005, 04:00 AM
Judge, does the .php file have execute permissions in the modules folder?
:Judge:
08-11-2005, 11:18 AM
Judge, does the .php file have execute permissions in the modules folder?
I just looked in the folder and I do NOT see anything about execute permissions.
This is a first I have heard of this. What is it that I need?
:Judge:
08-19-2005, 01:59 AM
Hey KW802 you still with me?
m0nde
08-19-2005, 06:57 PM
Very good idea and nice implementation! :up:
- Sid
Lea Verou
10-27-2005, 11:29 PM
This looks nice. Is there any chance it will be ported for 3.5? :)
KW802
10-28-2005, 01:27 AM
This looks nice. Is there any chance it will be ported for 3.5? :)It should work as-is with 3.5 since it isn't using any vB code.... as long as your server supports creating PNGs using GD then you should be good to go.
When I converted CinVin over to 3.5 the smilie creator came along without needing any revisions. Previously I was on vB 3.0.x with CMPS 2.0 for vB 3.0 and upgraded to vB 3.5 Gold and CMPS 2.0 for vB 3.5 at the same time and the creator continued working fine with no problems.
Lea Verou
10-28-2005, 01:36 AM
It should work as-is with 3.5 since it isn't using any vB code.... as long as your server supports creating PNGs using GD then you should be good to go.
When I converted CinVin over to 3.5 the smilie creator came along without needing any revisions. Previously I was on vB 3.0.x with CMPS 2.0 for vB 3.0 and upgraded to vB 3.5 Gold and CMPS 2.0 for vB 3.5 at the same time and the creator continued working fine with no problems.
Wow, that's great news! :)
Will I be able to change those images to match my forum smilies? :)
KW802
10-28-2005, 01:43 AM
Wow, that's great news! :)
Will I be able to change those images to match my forum smilies? :)If you're familiar with making your own graphics, you should be fine. What happens is that it takes any graphic as the source and then comes down a few pixels from the top and split it into two with the section in the middle becoming the sign.
For example, the original version of the smilie used in my signature is here: http://www.cinvin.com/forums/images/smilies/fps_smilie_creator/vorlage1.png
As you can see it splits the graphic into two pieces and then inserts the new section in between them. Inside of the zip file is the PSD file of the smilies that Kars released in his original version of this hack so you can create new smilies using that or use your own smilies. If you use your own smilies you just have to make sure you get the dimensions right so that you leave enough of the 'stick' at top so that it splits it into two but at the same you don't want the smilie so big that it splits the top of the smilies head. ;)
Lea Verou
10-28-2005, 10:32 AM
If you're familiar with making your own graphics, you should be fine. What happens is that it takes any graphic as the source and then comes down a few pixels from the top and split it into two with the section in the middle becoming the sign.
For example, the original version of the smilie used in my signature is here: http://www.cinvin.com/forums/images/smilies/fps_smilie_creator/vorlage1.png
As you can see it splits the graphic into two pieces and then inserts the new section in between them. Inside of the zip file is the PSD file of the smilies that Kars released in his original version of this hack so you can create new smilies using that or use your own smilies. If you use your own smilies you just have to make sure you get the dimensions right so that you leave enough of the 'stick' at top so that it splits it into two but at the same you don't want the smilie so big that it splits the top of the smilies head. ;)
Thanks a lot, I'll try my best! :D
Lea Verou
10-28-2005, 01:06 PM
Thanks a lot, I'll try my best! :D
I did the graphics and tried to install this.
I uploaded the appropriate files, created the template and added the page.
Probably I'm doing something wrong with the settings of the page as I don't see any smilie creator at all, not even a shell, nothing, only the other modules I've enabled for the page!
Also, I didin't find a place in the options of the page (I chose template) to input the php file... Is this supposed to be done automatically via the template? :confused:
Lea Verou
10-29-2005, 10:38 AM
Nevermind, strangely I just saw it! :D
I have another problem now... :(
Probably because my forum smilies are larger than the original ones they are "cut" at the bottom...
See for yourself: http://www.e-steki.com/?page=smcreator
:(
* Loukrhtia hopes this can be fixed :nervous:
pedrovazquez10
10-29-2005, 11:36 AM
Create a new VBA CMPS page or module. ????
how to create this ??? thanks!
KW802
10-29-2005, 05:35 PM
Create a new VBA CMPS page or module. ????
how to create this ??? thanks!Pedro, you'll need to be familiar with vBa before installing.
Lea Verou
10-29-2005, 05:57 PM
KW802 can you please see my post at the hack's thread in vbadvanced?
I can't correct the imagecopy to fit the new graphics!
The new graphics are 2 pixels wider in both width and height.
Thanks in advance :)
Lea Verou
10-29-2005, 10:00 PM
Ok, pasting here in case somebody can help... :nervous:
I found out that you have to alter the line:
imagecopy ($img, $vorlage, ($width / 2 - 3), ($height - 17), 0, 5, 29, 17); // Bildteil kopieren but no matter what I change the 17 (last number) to, it has absolutely no effect. All the other numbers in the function have an effect when they are changed but I need to change the src height as well!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.