PDA

View Full Version : Smiliecreator v1.1


Kars10
03-18-2003, 10:00 PM
Hello Hackers!
Ok this is my first release here, so be gentle with me! ;)

Ok, what does this hack do?
With this hack you can easy generate your own custom Sign-Smilies.

Credits to: tkeil69575 (https://vborg.vbsupport.ru/member.php?s=&action=getinfo&userid=1691)

It should work with any vBVersions 2.x.x.

Files to modify: 2 (vbcode.js, misc.php)

Templates to add: 1 (vbcode_popup_smiliecreator)

Templates to edit: 1 (vbcode_smilies_getmore)

Installtime: 5 - 10 min

NOTE: This hack uses the PHP-GD Function, so be shure you have this enabled on your server.
If you don?t be shure about this, ask your host or look in your PHP-Info.
Also you must have Dynamic URL for [img] tags enabled in your Posting Code Settings.

Changelog:
- v1.0 First Release
- v1.1 Fixed Quotes-bug; credits to Slynderdale and FlyingDutchman


Update Information: from v1.0 to v1.1 / only replace the old text2schild.php with the new one

Screenshots in the next Posts. :)

Have Fun and please click install if you use this hack!
Kars

Kars10
03-19-2003, 10:29 AM
Screenshot of the Smiliecreator:

Kars10
03-19-2003, 10:29 AM
Screenshot of a generated Smile:

Slynderdale
03-19-2003, 10:39 AM
Real nice hack, I wouldnt recommend it to a high usage board because accessing GD so much tends to create a high server load. Some one crashed a webhost once that I was hosted on like that.

Hmm also, do you have an english translation?

Kars10
03-19-2003, 10:41 AM
@ Slynderdale, i will make a english translated - template. :)

Slynderdale
03-19-2003, 10:43 AM
Hmm, I have an idea to keep load off the server by having each image created with GD each time the server loads. Have it save the image to the hard drive and have the script check if the image is there, if it is, open the file and display it, if not, create it and save it to the hard drive and then display it.

Kars10
03-19-2003, 10:47 AM
Ok, for the translation ive updatet the Zip in first Post. :)

@ Slynderdale, good point. I will look into it. :)

Disturbed
03-19-2003, 11:02 AM
whoa thats sexy

will try it asap :)

NuclioN
03-19-2003, 11:20 AM
Very nice. It displays the url to the smiley and ten you must copy paste it, is this correct?

--edit-- aha i had the Allow Dynamic URL for [img] tags disabled, now it's working.

Kars10
03-19-2003, 11:56 AM
@ NuclioN, glad it works. :)

Dean C
03-19-2003, 12:07 PM
You already showed me this Kars and its awesome. Great hack and such an ingenious idea :)

- miSt

danielalon
03-19-2003, 12:43 PM
Thanks allot !!
another great hack !!!

thanks man

Slynderdale
03-19-2003, 12:48 PM
This is a great hack but I wanna make a note to people, because GD creates the image each time the page is loaded it adds to the serverload each time, and also if someone one does like

for($i=0;$i<1000000;$i++) {
echo "path to the image":
}

Theres a chance the server will crash from the load.

Thats why most webhosts have GD disabled.

Kevorkian
03-19-2003, 12:53 PM
nice hack ^_^ but kars why you ignore me? :(

Kars10
03-19-2003, 12:56 PM
Sorry, Kevorkian. I have much trouble these days...:(

FlyingDutchman
03-19-2003, 02:07 PM
really cool hack!
going to try it out!
hope my server won't get blasted by this heheh :D


* FlyingDutchman clicks install!

SmartGnome
03-19-2003, 02:18 PM
Hi Kars10

Great hack !!! :banana:

I know it from wbb but this one is nicer.

I have a problem. It's not showing the smilie in the post, its shows only the link to the smilie. Clicking the link gives the smilie, so it is created.

It should because GD is installed :D

Any idea ??

@Slynderdale

The versions 2+ of GD gives lower serverload. We have installed it back for our customers.

Greetzz

NuclioN
03-19-2003, 02:25 PM
Today at 04:18 PM SmartGnome said this in Post #17 (https://vborg.vbsupport.ru/showthread.php?postid=369278#post369278)
Hi Kars10

I have a problem. It's not showing the smilie in the post, its shows only the link to the smilie. Clicking the link gives the smilie, so it is created.

It should because GD is installed :D

Any idea ??




--edit-- aha i had the Allow Dynamic URL for [img] tags disabled, now it's working.

;)

kr?mel
03-19-2003, 02:38 PM
i have problems :(
http://www.kuruboard.de/vBB/showthread.php?s=&threadid=715

see here...

Kevorkian
03-19-2003, 02:40 PM
Today at 02:56 PM Kars10 said this in Post #15 (https://vborg.vbsupport.ru/showthread.php?postid=369240#post369240)
Sorry, Kevorkian. I have much trouble these days...:( contact me by pm, i need your help :(

SmartGnome
03-19-2003, 02:44 PM
@kr?mel


OOOhhhh stupid me :D :D

Thanks for the help

Greetzz

danielalon
03-19-2003, 03:12 PM
I cant see hebrew when I write hebrew in the smilie...

any ideas?

Kars10
03-19-2003, 03:13 PM
Sorry danielalon, but i don?t know about hebrew language.
Maybe someone can help you with that Problem... ;)

grog6
03-19-2003, 03:20 PM
Love it, great hacks, we'll make fun in our forums :)

I dl it and try it later but click install now :banana:

@Kars10 : I don't think it's hebrew but german ;)

Kars10
03-19-2003, 03:22 PM
@ Grog6, thank you. :)

I think he is running a board with hebrew language on... ;)

FlyingDutchman
03-19-2003, 03:23 PM
anyone has any links to some docs that explain how to enable GD?
i can't seem to get it up and running...

(hack is working 100% fine though! :) great work!!!)

kr?mel
03-19-2003, 03:28 PM
:(

Kars10
03-19-2003, 03:52 PM
@ Flying Dutchmen,

Find this line........... php.ini
;extension=php_gd.dll


uncomment it............


extension=php_gd.dll


restart............

FlyingDutchman
03-19-2003, 03:59 PM
that doesn't work...
i tried that...
also tried gd2
i did install the hack correctly... just the pic doesn't show up :(

Kars10
03-19-2003, 04:01 PM
@ FlyingDutchman, do you see the link to the Pic or nothing?
If you see a link, be shure to have dynamic Image-Tags enabled on your Posting Settings (vBulletin Options).

FlyingDutchman
03-19-2003, 04:02 PM
just the big red X...

all images show up when i load the smiliecreator page...
but when i try one in my post, it doesn't work
really strange, coz i don't think i did anything wrong...

Kars10
03-19-2003, 04:04 PM
Please PM me your URL, so i can have a look. ;)

jbear6
03-19-2003, 05:05 PM
Excellent!
Works like a charm :)
I noticed when I use an apostrope in the "sign text", a foward slash appears before the apostrope in the resulting smilie. It's no big deal, but is there a way to stop this from happening?>

Thanks Again,
Jbear6

Kars10
03-19-2003, 05:12 PM
Glad it works for you jbear6.

I have a look at this apostrope-thing! :)

Slynderdale
03-19-2003, 05:42 PM
Today at 02:05 PM jbear6 said this in Post #33 (https://vborg.vbsupport.ru/showthread.php?postid=369401#post369401)
Excellent!
Works like a charm :)
I noticed when I use an apostrope in the "sign text", a foward slash appears before the apostrope in the resulting smilie. It's no big deal, but is there a way to stop this from happening?>

Thanks Again,
Jbear6


stripslashes()

partang2
03-19-2003, 06:37 PM
Nice hack, thanks!

*Clicks Install*

Vile
03-19-2003, 06:43 PM
Looks awesome, I'll try it out :)

Mystis
03-19-2003, 06:53 PM
Today at 11:12 AM danielalon said this in Post #22 (https://vborg.vbsupport.ru/showthread.php?postid=369318#post369318)
I cant see hebrew when I write hebrew in the smilie...

any ideas?


Try replacing his font with a Hebrew language font, it's kinda hard to write vav hay daled when you're using a font that only has As, Bs, and Cs! :)

Schorsch
03-19-2003, 08:40 PM
hehe Danke Karsten, super arbeit!!! :)

Kars10
03-19-2003, 08:41 PM
Alles klar Schorsch!
Freu mich das es dir gef?llt.
Kuck ihn mir gleich mal bei dir an.
Gru? Kars :)

jbear6
03-19-2003, 09:25 PM
Today at 01:42 PM Slynderdale said this in Post #35 (https://vborg.vbsupport.ru/showthread.php?postid=369433#post369433)



stripslashes()


Thank you my friend, but you give me more credit than I deserve. Where would I put that?

Thanks,
Jbear6

Slynderdale
03-19-2003, 09:37 PM
find in text2schild.php:

<?

under it add:

function remove_magic_quotes(&$x,$keyname="") {
if (is_array($x)) {
while (list($key,$value) = each($x)) {
if ($value) remove_magic_quotes(&$x[$key],$key);
}
} else if (ini_get('magic_quotes_sybase')) {
$x = preg_replace("/''/", "'", $x);
} else if (ini_get('magic_quotes_runtime')) {
$x = preg_replace("/\\\"/", '"', $x);
} else if (ini_get('magic_quotes_gpc')) {
$x = stripslashes($x);
}
}


then find:

$text = rawurldecode($_GET["text"]);


under it add:

remove_magic_quotes(&$text);

jbear6
03-19-2003, 09:59 PM
Ummmm....I put this <?php
error_reporting(7);

$noheader=1;

require("./global.php");

to prevent non-members from linking to the smilie image URL, is that going to conflict with your first instruction?

Thanks,
Jbear6

Slynderdale
03-19-2003, 10:02 PM
No, you can basicly put that function any wheres, the slash you get is most likly due to having magic quotes turned on, with this, it will strip the extra slashes from the text.

Today at 06:59 PM jbear6 said this in Post #43 (https://vborg.vbsupport.ru/showthread.php?postid=369617#post369617)
Ummmm....I put this <?php
error_reporting(7);

$noheader=1;

require("./global.php");

to prevent non-members from linking to the smilie image URL, is that going to conflict with your first instruction?

Thanks,
Jbear6

jbear6
03-19-2003, 10:21 PM
Thanks Slynderdale :)

Jbear6

Lesane
03-20-2003, 09:56 AM
Great addon, well done.

I get 2 javascript errors though:


Line: 10
Char: 14
Error: 'document.schild.type' is not an object


And when i click on generate smilie then i get this javascript error:


Line: 275
Char: 1
Error: 'opener' is not an object


Any idea's?

Kars10
03-20-2003, 11:06 AM
@ Lesane, this is very strange.
Look in your vbcode_popup_smiliecreator-template and make shure that there is no error. Have you uploadet the modified vbcode.js? :)

Lesane
03-20-2003, 11:51 AM
It works now, i first tried to run it standalone.

Thanks.

Kars10
03-20-2003, 11:53 AM
No Problem. Glad that you like it! :)

Lesane
03-20-2003, 01:09 PM
It's a great addon.

I have it integrated in my store hack as standalone and it works perfect. They are forced to download the smilie to their computer and to not use the text2schild.php url(password protected) to prevent high server load.

Kars10
03-20-2003, 02:05 PM
@ Lesane, very cool addition to this hack!!
I think many other store-users would like to have this addon!! ;)

Kars

GameCrash
03-20-2003, 02:14 PM
I would add something like a cache mechanism... maybe storing the created pictures in a mysql table and using this everytime someone calls the text2schild.php with the same parameters... may be less ressource hungry...

Larry@IOG
03-20-2003, 11:39 PM
I would love to have this hack but my forums are huge. :(

Larry

Link14716
03-21-2003, 01:39 AM
I will probably release a store addon tommorow using this hack. It will output the image to a file, and then add that to the board's smilies. :)

Steve123
03-21-2003, 05:04 AM
How do u get rid of the / slashes that are created when u use " or '

/Steve

The Wedge
03-21-2003, 06:48 AM
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/virtual/site5/fst/var/www/html/board/text2schild.php on line 11

when i click on the smilecreate box it creates an error, but still pops the box up, than when im done creating the smile i want i put it to the reply or post and than post, and it comes up as a URL and when i click the link it gives me that error up there...

Kars10
03-21-2003, 07:15 AM
@ Link 14716, i would love to see a Storeintegration. ;)

@ Steve123, use the Fix by Slynderdale Link... (https://vborg.vbsupport.ru/showthread.php?postid=369598#post369598)

@ The Wedge, check everything twice. Also make shure to have dynamic image tags enabled in your Posting Code Settings.

Kars

iggy123
03-21-2003, 06:09 PM
Excellent --- we only have 20 members so we shouldn't need to worry for a while..

Steve123
03-21-2003, 09:06 PM
@ Kars10...

Ive tired using his fix, it dont work.. As soon as i add the function to the .php file, the images wont work...

Steve123
03-21-2003, 09:39 PM
also cant use #'s in the smilies...

Sanni
03-22-2003, 01:47 AM
03-20-03 at 04:04 AM Kars10 said this in Post #32 (https://vborg.vbsupport.ru/showthread.php?postid=369371#post369371)
Please PM me your URL, so i can have a look. ;)

Hi Kars, I am having the same problem as the flying dutchman (a red X is being displayed instead of the image, even though the smilies are viewable via the smiliecreator popup). I am running VB 2.3.

also if i copy and paste the url that is generated (http://www.ozforums.com/text2schild.php?text=test&typ=13&col=0,0,0&shcol=255,255,255) i get this error:

Fatal error: Call to undefined function: imagecreatefrompng() in /web/www.ozforums.com/htdocs/text2schild.php on line 60


my boards are located at http://www.ozforums.com (unfortunately you have to be a member to post)

FlyingDutchman
03-22-2003, 04:27 AM
well, my problem was the port of the server, the bb url didn't include it, stupid me, lol

FlyingDutchman
03-22-2003, 04:30 AM
Today at 12:06 AM Steve123 said this in Post #59 (https://vborg.vbsupport.ru/showthread.php?postid=370989#post370989)
@ Kars10...

Ive tired using his fix, it dont work.. As soon as i add the function to the .php file, the images wont work...

try this using this function instead (as the other one didn't work for me, i searched for a fix, heheh):


function remove_magic_quotes(&$x,$keyname="") {
if (is_array($x)) {
while (list($key,$value) = each($x)) {
if ($value) remove_magic_quotes(&$x[$key],$key);
}
} else if (ini_get('magic_quotes_sybase')) {
$x = preg_replace("/''/", "'", $x);
} else if (ini_get('magic_quotes_gpc')) {
$x = stripslashes($x);
}
}


remember you still need the call to the function... see Slynderdale's post...

Steve123
03-22-2003, 04:49 AM
^^ Thankyou that works!!..

Now gota figure out how to make it so u can use #'s and *'s

Kars10
03-22-2003, 06:59 AM
@ FlyingDutchman, you have a new PM! :)

Kars10
03-22-2003, 07:54 AM
Ok, updated Zip-File in First Post with the Quote-Bugfix by Slynderdale and FlyingDutchman.
To update from Version 1.0. just replace the text2schild.php with the new one from the Zip-File. :)

Kars

Steve123
03-22-2003, 08:10 AM
^^^

Cool but can u get # and *'s working in the pics :)

/Steve

Kars10
03-22-2003, 08:35 AM
@ Steve123, i?ve tested the *'s and it works perfect. ;)

The # don?t work yet.

Steve123
03-22-2003, 08:51 AM
damn.. mine dont work with *'s..

its weird cus when i put *'s in it..

it comes up as normal text.. like this..

[ img] blah blah *test* [img ]

so its not displaying the image just the url :S

SmartGnome
03-22-2003, 04:30 PM
Today at 04:47 AM Sanni said this in Post #61 (https://vborg.vbsupport.ru/showthread.php?postid=371082#post371082)


Hi Kars, I am having the same problem as the flying dutchman (a red X is being displayed instead of the image, even though the smilies are viewable via the smiliecreator popup). I am running VB 2.3.

also if i copy and paste the url that is generated (http://www.ozforums.com/text2schild.php?text=test&typ=13&col=0,0,0&shcol=255,255,255) i get this error:

Fatal error: Call to undefined function: imagecreatefrompng() in /web/www.ozforums.com/htdocs/text2schild.php on line 60


my boards are located at http://www.ozforums.com (unfortunately you have to be a member to post)


Looks like you have no GD_Lib available on your server.
imagecreatefrompng() is a call to the lib.

Cheers

SmartGnome
03-22-2003, 04:31 PM
Today at 11:51 AM Steve123 said this in Post #69 (https://vborg.vbsupport.ru/showthread.php?postid=371212#post371212)
damn.. mine dont work with *'s..

its weird cus when i put *'s in it..

it comes up as normal text.. like this..

[ img] blah blah *test* [img ]

so its not displaying the image just the url :S


:cross-eyed: Me have same problemo. Weird :D

Cheers

Sanni
03-23-2003, 04:16 AM
Today at 04:30 AM SmartGnome said this in Post #70 (https://vborg.vbsupport.ru/showthread.php?postid=371407#post371407)



Looks like you have no GD_Lib available on your server.
imagecreatefrompng() is a call to the lib.

Cheers



ahh yes i spoke to my sys admin before installing the hack and he said he thought that GD was installed....he is now going to look into it .

Thanks for the help :)

zefman
03-23-2003, 04:41 AM
thank you very much Kars10 for this !

my members are very happy with this fantastic addon

i had the same problem as SmartGnome & Steve123 for "*'s" but resolved with your new text2schild.php, thanks :)

another minor problem is in using the word "l?" for exemple (french typo) and it appears as a curious thing when posted, the "?" is converted as a "r" with an oblique bar on top of it. :surprised:

SmartGnome
03-23-2003, 07:52 AM
Today at 07:16 AM Sanni said this in Post #72 (https://vborg.vbsupport.ru/showthread.php?postid=371705#post371705)




ahh yes i spoke to my sys admin before installing the hack and he said he thought that GD was installed....he is now going to look into it .

Thanks for the help :)

There is a simple way to check it your self.

Create in a text editor a file called showme.php and put the following in that file:

<?
phpinfo()
?>

Upload to your server and call it in your browser. Scroll the file till you have the GD part and it schould look like the attached screenshot

Cheers

FlyingDutchman
03-23-2003, 08:39 AM
Today at 10:52 AM SmartGnome said this in Post #74 (https://vborg.vbsupport.ru/showthread.php?postid=371749#post371749)


There is a simple way to check it your self.

Create in a text editor a file called showme.php and put the following in that file:

<?
phpinfo()
?>

Upload to your server and call it in your browser. Scroll the file till you have the GD part and it schould look like the attached screenshot

Cheers


http://to.your.site/forums/admin/index.php?action=phpinfo

works too ;)
no need for a new file or anything, and not everyone can view it this way :P

Steve123
03-23-2003, 09:18 AM
Still dont work for me, using the new .php :S

Exo
03-23-2003, 06:47 PM
wie krieg ich den hintergrund von den erstellten smiles transparent?

sabret00the
03-24-2003, 03:04 PM
installing this as i type, well ot quite but in a minute

Kars10
03-25-2003, 04:36 AM
Ok, updatet template in First Post.
Now you have a "Color-Preview" in the Background and Textcolor-Dropdownmenu (and more colors)!
To update, simply replace your old template with the new template of the zip. :)

See the screenshot!

Have fun
Kars

C.Birch
03-25-2003, 04:43 AM
some of my members get a error on page and can not get it to pop up but others like my self can. any ideas why?

Kars10
03-25-2003, 04:48 AM
@ C. Birch, have no Idea.
Maybe a Browser-Problem?!? :confused:

Kars

mr e
03-25-2003, 04:52 AM
doesn't this whole hack work off javascript? if it does than anyone with jv disabled wont be able to run it

Kars10
03-25-2003, 04:54 AM
Yes Mr. E, it uses Javascript.
But i think most users should have Javascript enabled...

linuxfreaky
04-26-2003, 08:57 PM
hello
very nice hack was looking so long for it lol i saw it only for phpbb now i ahve it for vb may i ask what should i add text2schild.php
so i get my users use arabic posting in created smiles
what should it be add somthing simler to elseif ($font == "verdana.ttf") {
$align = 6;
$fontsize = 11;
}
what is aligan var :ninja:
iam lost and should i ask my hosting company to install some arabic fonts in /usr/local/fonts/ttf/
iam lost :dead: time to shut up.......
thanx for the help

redstaing0
05-17-2003, 12:36 PM
i have a porblem it is
whene i add a smile the can not show in the forum but give link
like theis

http://www.xxx.xxx.net/forum/text2schild.php?text=Tsts ur &typ=6&col=0,0,0&shcol=255,255,255


ican not se and pic befoer iam enter in the linke

Kars10
05-17-2003, 12:44 PM
@, redstaing0

19.03.03 at 14:27 Kars10 said this in Post #1 (https://vborg.vbsupport.ru/showthread.php?postid=369152#post369152)

NOTE: Also you must have Dynamic URL for [img] tags enabled in your Posting Code Settings.

gmarik
05-17-2003, 08:46 PM
Good idea.

vB-Host.com
05-18-2003, 11:22 AM
this works if i open in new window.. but i can't get the javascript to open by clicking it... java script works on my browser as i can open "get more smilies"

redstaing0
05-18-2003, 11:24 AM
Yesterday at 02:44 PM Kars10 said this in Post #86 (https://vborg.vbsupport.ru/showthread.php?postid=396137#post396137)
@, redstaing0


i will test it now :) :lick: :lick: :lick:

redstaing0
05-18-2003, 12:01 PM
i have tryed img code dont help it is enabellll 100%

Morpheus84
05-24-2003, 12:59 PM
For all german people, I translated the english Template into german :)

odl2000
05-25-2003, 12:25 AM
05-17-03 at 02:36 PM redstaing0 said this in Post #85 (https://vborg.vbsupport.ru/showthread.php?postid=396135#post396135)
i have a porblem it is
whene i add a smile the can not show in the forum but give link
like theis

http://www.xxx.xxx.net/forum/text2schild.php?text=Tsts ur &typ=6&col=0,0,0&shcol=255,255,255


ican not se and pic befoer iam enter in the linke

I have the same problem

If I add a smiley, i have this code :
http://www.mydomain.com/forum/text2schild.php?text=test un petit test&typ=1&col=255,210,0&shcol=197,248,163

But after submit, I don't see smiley, I just see the url code, and if I see the source code (html). I see this :
<a href="http://www.mydomain.com/forum/text2schild.php?text=test un petit test&typ=1&col=255,210,0&shcol=197,248,163" target="_blank">http://www.mydomain.com/forum/text2schild.php?text=test un petit test&typ=1&col=255,210,0&shcol=197,248,163</a>

Could you help me ?

Thanks

odl2000
05-25-2003, 09:26 AM
ACP --> vBulletin Options -->

Allow Dynamic URL for tags?
If this is set to 'no', the tag will not be displayed if the path to the image contains dynamic characters such as ? and &. This can prevent malicious use of the tag.

Thanks to ManagerJosh from :
http://www.vbulletin.com/forum/showthread.php?postid=458019#post458019

[i]Today at 02:25 AM odl2000 said this in Post #92 (https://vborg.vbsupport.ru/showthread.php?postid=399601#post399601)
I have the same problem

If I add a smiley, i have this code :
[img]http://www.mydomain.com/forum/text2schild.php?text=test un petit test&typ=1&col=255,210,0&shcol=197,248,163

But after submit, I don't see smiley, I just see the url code, and if I see the source code (html). I see this :
<a href="http://www.mydomain.com/forum/text2schild.php?text=test un petit test&typ=1&col=255,210,0&shcol=197,248,163" target="_blank">http://www.mydomain.com/forum/text2schild.php?text=test un petit test&typ=1&col=255,210,0&shcol=197,248,163</a>

Could you help me ?

Thanks

GuN
05-27-2003, 01:04 PM
Thanks a lot for this good hack !
Fantastic !
(and thanks odl2000 ;) )

k?re
06-06-2003, 11:59 AM
i have done all steps..and the script not working.. it will not open smiliecreator when i try to push this link...then i get error... and no popup window is comming..

k?re
06-06-2003, 12:29 PM
i fixed it with changing this.

// Smiliecreatorhack by Kars10

function opensmileycreator(x,y,sessionhash) {
window.open("misc.php?action=getsmileycreator&s="+sessionhash, "smileycreator", "toolbar=no,scrollbars=yes,resizable=yes,width="+x+",height="+y);
}

// Smiliecreatorhack by Kars10 End


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~ 2. Open 'misc.php' ~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

search for:

?>

and above that add this:


// Smiliecreatorhack by Kars10

if ($action=="getsmileycreator") {
$templatesused = "vbcode_popup_smiliecreator";
include("./global.php");

eval("dooutput(\"".gettemplate("vbcode_popup_smiliecreator")."\");");
}

// Smiliecreatorhack by Kars10 End


with this


// Smiliecreatorhack by Kars10

function opensmilieycreator(x,y,sessionhash) {
window.open("misc.php?action=getsmilieycreator&s="+sessionhash, "smilieycreator", "toolbar=no,scrollbars=yes,resizable=yes,width="+x+",height="+y);
}

// Smiliecreatorhack by Kars10 End


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~ 2. Open 'misc.php' ~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

search for:

?>

and above that add this:


// Smiliecreatorhack by Kars10

if ($action=="getsmilieycreator") {
$templatesused = "vbcode_popup_smiliecreator";
include("./global.php");

eval("dooutput(\"".gettemplate("vbcode_popup_smiliecreator")."\");");
}

// Smiliecreatorhack by Kars10 End
:banana:

Sc0rp
06-06-2003, 12:35 PM
very very nice! would be ever better if u could have users make their own smilie sets.. :D

S.Shady
06-06-2003, 02:24 PM
this is my gd settings from phpinfo

gd
GD Support enabled
GD Version bundled (2.0.12 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled


would gif,jpg,png disabled make the images not to work for some ppl ?

k?re
06-06-2003, 03:34 PM
im not sure ..but this change made the error gone where i do my test before i upload files ect to the real board.. then this will not work.. i get error when i try push smilecreator.. can anyone please tell me why.???

Dark Shogun
06-08-2003, 07:14 AM
I am getting a link also. I checked and Dynamic Linking is ON and I have gd 2. Does anyone know why it is not showing the smilie only the link?

Dark Shogum

Dark Shogun
06-12-2003, 05:01 AM
I am still having this probably. Can anyone help?

Dark Shogun

subu1
06-17-2003, 07:43 AM
Allow BB IMG Code in posts must be on

Dark Shogun
06-17-2003, 08:29 AM
I had that on but it still didn't work. I have removed that board and fresh installed a vb3 anyway so it is no problem anymore.

Dark Shogun

subu1
06-17-2003, 08:22 PM
<script language="javascript">
<!--
var postmaxchars = $postmaxchars;
function validate(theform) {
if (theform.message.value=="") {
alert("Bitte f?lle Das Beitrags Feld aus.");
return false; }
if (postmaxchars != 0) {
if (theform.message.value.length > $postmaxchars) {
alert("Dein Beitrag ist zu lang.\n\nVerk?rze Deinen Beitrag auf $postmaxchars Zeichen.\nDein Beitrag ist "+theform.message.value.length+" Zeichen lang.");
return false; }
else { return true; }
} else { return true; }
}
function checklength(theform) {
if (postmaxchars != 0) { message = "\nDein Beitrag darf maximal $postmaxchars Zeichen lang sein."; }
else { message = ""; }
alert("Dein Beitrag ist "+theform.message.value.length+" Zeichen lang."+message);
}
//-->
</script>
<form enctype="multipart/form-data" action="newreply.php" name="vbform" method="post" onSubmit="return validate(this)">
<input type="hidden" name="s" value="$session[sessionhash]">
<input type="hidden" name="action" value="postreply">
<input type="hidden" name="threadid" value="$threadid">
<input type="hidden" name="title" value="">
<input type="hidden" name="iconid" value="0">
<input type="hidden" name="parseurl" value="yes">
<input type="hidden" name="email" value="">
<input type="hidden" name="disablesmilies" value="">
<input type="hidden" name="closethread" value="">
<input type="hidden" name="hiddenreply" value="">
<input type="hidden" name="signature" value="yes">
<input type="hidden" name="rating" value="0">

<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr>
<td bgcolor="{tableheadbgcolor}" colspan="2"><normalfont color="{tableheadtextcolor}" class="thtcolor"><b>schnelle Antwort Box :</b></normalfont></td>
</tr>
$logincode
<tr>
<td bgcolor="{secondaltcolor}"><normalfont><b>Betreff:</b></normalfont></td>
<td bgcolor="{secondaltcolor}"><normalfont><input type="text" class="bginput" name="title" value="$title" size="40" maxlength="85" tabindex="1"></normalfont> <smallfont>(Optional)</smallfont></td>
</tr>
<td bgcolor="{secondaltcolor}" valign="top" nowrap><normalfont><b>deine Antwort :</b></normalfont></td>
<td bgcolor="{secondaltcolor}">
<a href="http://www.burning-board.de/vBulletin/misc.php?action=getsmilies&s=" target="_blank">Smilies</a>
<a href="javascript:opensmileycreator(320,290,'$session[sessionhash]')">Smiliecreator</a>
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="top"> <textarea name="message" rows="7" cols="$textareacols" wrap="virtual" tabindex="1"></textarea><br>
<smallfont><a href="javascript:checklength(document.vbform);">[Beitragsl?nge pr?fen]</a></smallfont></td>
</tr>
</table>
</td>
</tr>
</table>
</td></tr></table>

<br>
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
<td align="center"><normalfont>
<input type="submit" class="bginput" name="submit" value="Antworten" accesskey="s" tabindex="3">
<input type="reset" class="bginput" name="reset" value="Antwort Zur?cksetzen" accesskey="r" tabindex="3">
</normalfont>
<input type="submit" class="bginput" name="preview" value="Vorschau" accesskey="p" tabindex="3"></td>
</tr>
</table>

</form>

bekomme nicht den Creatorlink in der Antwortbox ans laufen.

The Link in the Replybox don't work, why

can everybody hepl me

MrNase
06-17-2003, 09:03 PM
du bist nicht der einzige mit Problemen :)


for me, no popup is opening... i can click the link or lick the link... no popup is opening :(

Kars10
06-18-2003, 07:01 AM
@ Subu, ich muss mir das mal auf deinen Board ankucken. Schick dir später eine PN.
@ MrNase, hast du die vbcode.js richtig angepasst? Schick mir die mal zu.

MrNase
06-18-2003, 05:23 PM
oh, jetzt geht es... nur leider hab ich wohl keine gdlib installiert :(

Da wird ein rotes X angezeigt... ich guck mir mal die phpinfo() an :)


Doch, ist installiert!

GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with TTF library
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled


... und nun?


So sieht der Quelltext aus:

<img src="http://www.sportboard.de/v2/text2schild.php?text=opa - rente&typ=11&col=0,0,0&shcol=255,255,255" border="0" alt="">
Hier der Beitrag: http://www.sportboard.de/v2/showthread.php?s=&postid=5148#post5148

Kars10
06-18-2003, 05:59 PM
@ Mr. Nase can you make a admin account so i can have a look... ;)

MrNase
06-18-2003, 06:23 PM
you got a private message :)

tell me when you are finished :)

Bezane
06-26-2003, 01:46 PM
Hello,

I?ve got some bugs in my hack...
what kann I do?

Here are the bugs (http://mf-board.com/showthread.php?s=&threadid=275)

Bezane
06-27-2003, 12:07 PM
Hallo, kann mir jemand dabei helfen? ich sehe gerade das der bug hier schoneinmal in der selben form wie bei mir vorkam... aber es wurd per PN nicht ?ffentlich geregelt... somit kann ich auch nicht viel machen... :(

Ninth Dimension
06-27-2003, 02:36 PM
wow, fantastic little hack, adding just that personal touch, love it (and i'm sure my members will to).

one thing, can i suggest that you make the smile box close once it's been submitted to the form? I'm sure this is easy to do, but as I don't know JS i personally can't do it.

again thank you :)

Bezane
06-29-2003, 11:08 AM
kann mir hier keiner helfen? :(

Ninth Dimension
06-29-2003, 03:45 PM
For people annoyed at the smile box staying open after adding the smile, you can make the box close automaticly after clicking the button:

Open:
vbcode_popup_smiliecreator (template)

Find:<input type="button" value="Ok, generate Smilie!" onclick="opener.smilie('https://vborg.vbsupport.ru/');">Replace with:<input type="button" value="Generate Smilie!" onclick="opener.smilie('https://vborg.vbsupport.ru/');self.close();" class="bginput">

Additionally, this add's the standard button css class to your button so it's fits with the rest of the site, I hope this helps :)

voogru
07-03-2003, 09:36 PM
I keep getting 'document.schild.typ' is not an object" When opening the smily creator window.

Im not sure what the problem is, I followed instructions. Also they do not work with the [IMG] tags (And yes I did enable "Allow Dynamic URL for [img] tags" ).

It works fine if I use HTML to link the image.

What am I doing wrong? Running vb2.3.0

Bezane
07-04-2003, 09:24 AM
i have almost this bug....

voogru
07-07-2003, 03:53 AM
*Bump* Still need help on this :/

Eskito
07-07-2003, 08:50 PM
Sorry, my English is not the very Best and I could not understand all from the Posters before me.

The Hack works fine, but in the finaly Posting I get the f... red x. Can anybody explain me where my Problem could be?

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

Hallo zusammen,

habe versucht diesen Hack einzubauen, es funktioniert auch soweit alles. Wenn ich jedoch abschliessend zu meinem Posting gehe wird nur das rote x angezeigt. Hat jemand eine Idee, da ich die englischen Postings nicht in allen Einzelheiten verstehe.

Gruss Uwe

fantasma
07-08-2003, 12:18 AM
I get the same error "'document.schild.typ' is not an object etc."

I delete the line below from the template "vbcode_popup_smiliecreator":

var vtyp = findtyp();

and then all works fine.

I'm not expert in Javascript and I don't understand wich is the scope for this line.

In anyway thanks to Kars10 for this great Hack!

Bezane
07-08-2003, 03:34 AM
i?ve done it... bug ist already existing...

can i have your hack files?

or make an example at this here:


<html>
<head>
<title>$bbtitle Smiliecreator</title>
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<meta http-equiv="MSThemeCompatible" content="Yes">

<script>
function findtyp() {
var szReturn;
for (var i=0;i<document.schild.typ.length;i++) {
if (document.schild.typ[i].checked) {
szReturn = document.schild.typ[i].value;
break;
}
}
return szReturn;
}

var vtyp = findtyp();
</script>

$headinclude
</head>

<body>
<br>
<center>
<form name="schild"><table width="90%" border="0" cellpadding="4" cellspacing="1" bgcolor="{tablebordercolor}">
<tr>
<td align="center" bgcolor="{categorybackcolor}"><normalfont color="{categoryfontcolor}"><strong>$bbtitle
Smiliecreator</strong></normalfont></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}"><table bgcolor="" width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td width="99%" valign="top">
<table width="100%" border="0" cellpadding="1" cellspacing="1">
<tr>
<td width="33%" bgcolor="{firstaltcolor}"> <input name="typ" type="radio" value="1" checked>
<img src="images/smilies/schilde/vorlage1.png" alt="" width="29" height="22" border="0"></td>
<td width="33%" bgcolor="{firstaltcolor}"> <input type="radio" name="typ" value="6">
<img src="images/smilies/schilde/vorlage6.png" alt="" width="29" height="22" border="0"></td>
<td width="33%" bgcolor="{firstaltcolor}"> <input type="radio" name="typ" value="11">
<img src="images/smilies/schilde/vorlage11.png" alt="" width="29" height="22" border="0"></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}"><input type="radio" name="typ" value="2">
<img src="images/smilies/schilde/vorlage2.png" alt="" width="29" height="22" border="0"></td>
<td bgcolor="{firstaltcolor}"><input type="radio" name="typ" value="7">
<img src="images/smilies/schilde/vorlage7.png" alt="" width="29" height="22" border="0"></td>
<td bgcolor="{firstaltcolor}"><input type="radio" name="typ" value="12">
<img src="images/smilies/schilde/vorlage12.png" alt="" width="29" height="22" border="0"></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}"><input type="radio" name="typ" value="3">
<img src="images/smilies/schilde/vorlage3.png" alt="" width="29" height="22" border="0"></td>
<td bgcolor="{firstaltcolor}"><input type="radio" name="typ" value="8">
<img src="images/smilies/schilde/vorlage8.png" alt="" width="29" height="22" border="0"></td>
<td bgcolor="{firstaltcolor}"><input type="radio" name="typ" value="13">
<img src="images/smilies/schilde/vorlage13.png" alt="" width="29" height="22" border="0"></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}"><input type="radio" name="typ" value="4">
<img src="images/smilies/schilde/vorlage4.png" alt="" width="29" height="22" border="0"></td>
<td bgcolor="{firstaltcolor}"><input type="radio" name="typ" value="9">
<img src="images/smilies/schilde/vorlage9.png" alt="" width="29" height="22" border="0"></td>
<td bgcolor="{firstaltcolor}"><input type="radio" name="typ" value="14">
<img src="images/smilies/schilde/vorlage14.png" alt="" width="29" height="22" border="0"></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}"><input type="radio" name="typ" value="5">
<img src="images/smilies/schilde/vorlage5.png" alt="" width="29" height="22" border="0"></td>
<td bgcolor="{firstaltcolor}"><input type="radio" name="typ" value="10">
<img src="images/smilies/schilde/vorlage10.png" alt="" width="29" height="22" border="0"></td>
<td bgcolor="{firstaltcolor}"><input type="radio" name="typ" value="15">
<img src="images/smilies/schilde/vorlage15.png" alt="" width="29" height="22" border="0"></td>
</tr>
</table>
<br> <table border="0" width="100%" cellpadding="3" cellspacing="1">
<tr>
<td colspan="2" bgcolor="{firstaltcolor}"><smallfont><strong>Your Text:</strong></smallfont></td>
</tr>
<tr>
<td colspan="2" bgcolor="{firstaltcolor}" align="center"><input name="text" type="text" onFocus="this.value='';" onBlur="if (this.value=='') {this.value='Enter your Text...';}" value="Enter your Text" size="35" maxlength="50"></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}"><smallfont><strong>Fontcolor:</strong></smallfont></td>
<td bgcolor="{firstaltcolor}"><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>
<tr>
<td bgcolor="{firstaltcolor}"><smallfont><strong>Background:</strong></smallfont></td>
<td bgcolor="{firstaltcolor}"><select name="shcol">

<option value="255,255,255" selected>White</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="248,241,163" style="background-color:#F8F1A3">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="248,203,251" style="background-color:#F8CBFB">Pink</option>

<option value="228,195,164" style="background-color:#E4C3A4">Brown</option>

<option value="0,0,0" style="background-color:#000000; color=#FFFFFF">Black</option>

</select>
</td>
</tr>
<tr>
<td colspan="2" align="center" height="30" valign="bottom"><input type="button" value="Ok, generate Smilie!" onclick="opener.smilie('$bburl/text2schild.php?text='+document.schild.text.value+ '&typ='+findtyp()+'&col='+document.schild.col.value+'&shcol='+document.schild.shcol.value+'');">
<br>
<br>
<smallfont><a href="javascript:self.close()">Close Window</a></smallfont></td>
</tr>
</table>
</td>
</table></td>
</tr>
</table></form></td>
</center>
</body>
</html>

fantasma
07-08-2003, 09:16 AM
I just add a double slash before "var vtyp = findtyp();"

<html>
<head>
<title>$bbtitle Smiliecreator</title>
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<meta http-equiv="MSThemeCompatible" content="Yes">

<script>
function findtyp() {
var szReturn;
for (var i=0;i<document.schild.typ.length;i++) {
if (document.schild.typ[i].checked) {
szReturn = document.schild.typ[i].value;
break;
}
}
return szReturn;
}

//var vtyp = findtyp();
</script>

Bezane
07-08-2003, 09:25 AM
look at http://www.MF-Board.com/ @ News...

i?ve made the // but it doesn?t work...

Eskito
07-13-2003, 09:27 PM
Sorry, the Problem isn't fixed and I'll go to uninstall the Hack next Days. Many other Things should be done on our Community and I've not Time enough to wait too many Days for an Idea.

Bezane
07-14-2003, 06:53 AM
i´ll make the same in 4 days (fr.)

Aaron1
07-14-2003, 09:05 AM
Love this hack, but i got trouble running it, although the gd library is installed & png support is available.

These are the errors i have:
from here:

http://www.housequake.com/forum/text2schild.php?text=test&typ=3&col=255,153,0&shcol=2,255,255

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/sites/site5/web/forum/text2schild.php on line 6

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of remove_magic_quotes(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/sites/site5/web/forum/text2schild.php on line 30

Warning: Cannot add header information - headers already sent by (output started at /home/sites/site5/web/forum/text2schild.php:6) in /home/sites/site5/web/forum/text2schild.php on line 126
?PNG  IHDR<%)?z3PLTE???????????????????KLL???????????? ??????x?rttRNS@??f"IDATx?͖Y?? E? ????v???-*?]9??????F&??????R?偱?l????0捷???9˲e9?wk??*?v?p^? ?? x?vQ?g???????e??ݧ??P???Va3??Gr?2? ???9??k?U?)Xk?ae??6k&p???$ho:?? N?*LK?-B?s????!??8Š?????g8"J???????]R!Ly?α)????xr???ͬ?/.r..4?[W? ?ۉ?K[e!m??ϓ0;,?h+??????-?6?gCt?韪???? ħاIEND?B`?

Do you guys/girls have any clue what i did wrong?
Thanks for helping me out if you can!

Aaron1
07-14-2003, 10:22 AM
I removed the magic_quotes function and now suddenly it works again!
Strange, anyone know why?

Bezane
07-14-2003, 10:46 AM
now it´s deleted!

Pikok
07-25-2003, 08:33 AM
I did everything that you guys said, I even checked if GD was on (it is)

GD Support enabled
GD Version bundled (2.0.12 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled


Warning: imagecreatefrompng(./images/smilies/schilde/vorlage.png): failed to open stream: No such file or directory in /home/httpd/vhosts/fu-all.explorerhost.com/httpdocs/pyrio/vb/text2schild.php on line 77

Warning: imagecopy(): supplied argument is not a valid Image resource in /home/httpd/vhosts/fu-all.explorerhost.com/httpdocs/pyrio/vb/text2schild.php on line 85

Warning: imagecopy(): supplied argument is not a valid Image resource in /home/httpd/vhosts/fu-all.explorerhost.com/httpdocs/pyrio/vb/text2schild.php on line 86

Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/fu-all.explorerhost.com/httpdocs/pyrio/vb/text2schild.php:77) in /home/httpd/vhosts/fu-all.explorerhost.com/httpdocs/pyrio/vb/text2schild.php on line 126
?PNG  IHDR?%?/?? PLTE???~Q?]tRNS@??f?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 /home/httpd/vhosts/fu-all.explorerhost.com/httpdocs/pyrio/vb/text2schild.php on line 129

Akex
07-25-2003, 05:03 PM
Thx a lot for this, great job :)

Sc0rp
07-30-2003, 06:33 AM
tha java window wont open.. getting an error on the page.. I edited the vbcode.js and I pasted:

<a href="javascript:opensmileycreator(320,290,'$session[sessionhash]')">[Create Smilie]</a>

inside showthread_replybox template.. any idea why it aint working?

[edit]

nvr mind I pasted the java code above in the replybox template and it worked:) thanks mate! *clicks install

Sc0rp
07-30-2003, 08:45 AM
another problem, if I use it in the quick reply box all works fine untill I press Ok, then it does not insert the code into the quick reply box's text field.. any idea how to solve this?

Matrixgl
08-14-2003, 03:01 AM
I did everything properly, yet the window is not opening :(

68 Z-28
01-03-2004, 06:58 PM
Is there a posibility of getting this ported over to vb3?

Extremea
02-03-2004, 11:56 AM
I'm having a problem truning on my Dynamic URL for [img] tags. I go to the CP and turn them on but on the forum is says that they are off.

Any ideas on how to fix this?

egyptsons
02-15-2004, 01:59 PM
:(
it dosen't support the Arabic language

how can I make it writ arabic ??

http://www.egyptsons.com/misr/text2schild.php?text=ها كده أيه النظام ؟&typ=7&col=0,0,0&shcol=255,255,255


just writ english
http://www.egyptsons.com/misr/text2schild.php?text=I must writ it in english&typ=15&col=0,0,0&shcol=248,203,251

can u help me in this :( to writ with arabic ??

Emmy2
02-27-2004, 08:05 PM
Excellent and fun hack! I installed it on vB 2.3.4 without a hitch. My board is small so the extra juice to run the program shouldn't be a problem.

datainternet
04-07-2004, 05:04 PM
Is it possible to convert this hack to VB3?

My User really liked this hack und they miss the smilie creator now.

MFG datainternet

Hoffi
06-16-2004, 10:44 AM
Is it possible to convert this hack to VB3?

My User really liked this hack und they miss the smilie creator now.

MFG datainternet
For vB3 I have developed an simple BB-Code for Smilies with Signs. No Hacking required.

msimplay
06-16-2004, 02:46 PM
For vB3 I have developed an simple BB-Code for Smilies with Signs. No Hacking required.
details please :p

sabret00the
06-27-2004, 12:58 PM
wouldn't porting this to vb3 just be a matter of pointing the clickables to the vb3-textarea instead of the vb2 one?

Hoffi
06-28-2004, 04:28 PM
No Hacking required for this.

Take the following Image and following BBCode:

Title: Schield

Tag: schield (or whatever you want)

Replacement:

<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" style="background-color: White; border: 1px solid Black; padding: 1px;"><normalfont>{param}</normalfont></td>
</tr>
<tr><td align="center">
<img src="absolut/path/to/your/image.gif" alt="" border="0">
</td></tr>
</table>


Use Option: No

Works on vB2 and vB3

If you want more than one Image use the Option tag and name the Images to schield1.gif etc. and use Filepath shield{option}.gif
Than call with [ schield=1]test[/shield]

I attached a Smilie.

Have fun.

sabret00the
06-29-2004, 01:55 AM
wow that's awesome, you should release it over at vBT hoffi :)

Hoffi
06-30-2004, 12:19 PM
I have released it at vb.com months ago. But you are right... I'll do it soon.

KW802
08-11-2004, 12:24 PM
If anybody is interested....

This hack has been converted into a vbadvanced CMPS module.

https://vborg.vbsupport.ru/showthread.php?t=68062

The table trick by Hoffi nearly eliminates the need of having to do this as a VB3 hack so I did it geared towards vBa CMPS more as a learning experience than anything else; I figured it'd be a fun toy for the users to play with and also for me for when I want to create new smilies for misc. image work.