PDA

View Full Version : Dynamically creating Smilies using BB Code with FPS Smilie Creator installed


fuse3k
09-21-2004, 07:56 PM
This is a small addition will allow your forum users to dynamically create Sign Smilies using BB Code. Please be advised: With the server dynamically creating these images this could put a significant load on your server if are running a large forum.

Instructions:

Assuming you already have the FPS Smilie Creator installed in you CMPS, follow these steps:

1.) Go to your AdminCP>Custom BB Codes>Add New BB Code
2.) Fill in the form with the following information

Title: Dynamic Smilie
Tag: smilie
Replace: <img src="$vboptions/forum/modules/fps_smilie_creator.php?text=%20{param}%20&typ=$vboptions[bburl]/images/smilies/fps_smilie_creator/vorlage{option}.png&col=0,0,0&shcol=255,255,255"
[B]Example: Hello%20there!
Description: Create your own smilies using this BB Code
Use {option}: Yes

Using this setup if an end-user used "Hello There" it would output a PNG image of the Smilie Sign using the " :) " face. The "Option" variable dictates the smiliey used (1-14).

------------------

If you only want one pacticular smilie to generate the signs use these instructions instead:

Title: Dynamic Smilie
Tag: smilie
Replace: <img src="$vboptions/modules/fps_smilie_creator.php?text=%20{param}%20&typ=$vboptions[bburl]/images/smilies/fps_smilie_creator/vorlage[B]{XXX}.png&col=0,0,0&shcol=255,255,255"
Example: Hello%20there!
Description: Create your own smilies using this BB Code
Use {option}: No

NOTE: Replace {XXX} with the image number you want to use (1-14)

Using this setup if an end-user used "Hello There" it would output a PNG image of the Smilie Sign using the " :) " face.
----------------


I'm sure there's room for improvement with this so if anyone has better ideas feel free to comment.

58sniper
09-21-2004, 08:10 PM
Title: Dynamic Smilie
Tag: smilie
Replace: <img src="http://www.yourwebsitename.com/forum/modules/fps_smilie_creator.php?text=%20{param}%20&typ=http://server1a.woolnet.net/~fuse3k/forum/images/smilies/fps_smilie_creator/vorlage{option}.png&col=0,0,0&shcol=255,255,255"
Example: Hello%20there!
Description: Create your own smilies using this BB Code
Use {option}: Yes
Would probably be better as
Title: Dynamic Smilie
Tag: smilie
Replace: <img src="$vboptions/modules/fps_smilie_creator.php?text=%20{param}%20&typ=$vboptions/images/smilies/fps_smilie_creator/vorlage{option}.png&col=0,0,0&shcol=255,255,255"
[b]Example: Hello%20there!
Description: Create your own smilies using this BB Code
Use {option}: Yes

If you only want one pacticular smilie to generate the signs use these instructions instead:

Title: Dynamic Smilie
Tag: smilie
Replace: <img src="[b]http://www.yourwebsitename.com/ (http://www.yourwebsitename.com/)forum/modules/fps_smilie_creator.php?text=%20{param}%20&typ=http://server1a.woolnet.net/~fuse3k/forum/images/smilies/fps_smilie_creator/vorlage{XXX}.png&col=0,0,0&shcol=255,255,255"
Example: Hello%20there!
Description: Create your own smilies using this BB Code
Use {option}: No
Would also probably be better as
Title: Dynamic Smilie
Tag: smilie
Replace: <img src="$vboptions/modules/fps_smilie_creator.php?text=%20{param}%20&typ=$vboptions[bburl]/images/smilies/fps_smilie_creator/vorlage[b]{XXX}.png&col=0,0,0&shcol=255,255,255"
Example: Hello%20there!
Description: Create your own smilies using this BB Code
Use {option}: No

This is untested, but should be okay. I'm sure you don't want people using your images and/or bandwidth! :-)

Our Sponsors
 

fuse3k
09-21-2004, 08:16 PM
oops ;)

EDITTED

Fiber
09-22-2004, 09:16 PM
does'nt work

Our Sponsors
 

fuse3k
09-23-2004, 02:37 AM
Is the path correct to the Smilie Creator CMPS Module?

Fiber
09-23-2004, 01:44 PM
Sure is

fuse3k
09-24-2004, 01:38 AM
Replace "$vboptions[bburl]/modules/fps_smilie_creator.php" with the full URL to your FPS Smilie Creator Module and see if that makes any difference. :)

dieselpowered
10-05-2004, 01:37 PM
So does this allow you to create a smilie in the creator and then dynamically place it within a post without having to "right click save as"

If so...THANK YOU!!! :)

fuse3k
10-06-2004, 08:00 PM
Sure does. It dynamically creates the image and adds it to the post using HTML. No need to save the file.