PDA

View Full Version : CWM smilie hack?


heretic
11-04-2001, 11:27 PM
this is what it'd be in perl, I have no idea what to use for php.
anyone know how I'd convert it, and where I would put it?

if you're not fimiliar with CWM's smilies, it's a hack that puts a little map on the post, you click and it puts the image in the text area.

example:
http://mysmilies.com/cgi-bin/postings.cgi?action=newtopic&number=1&forum=General+B.S

I know the name "REPLIER" would need to be changed, but what about defining the variable?



$SmileMapper = qq(&nbsp; <img src=$vars_config{NonCGIURL}/cwmsmilies/smileymap.gif usemap="#Smile" border=0 width=85 height=170><MAP NAME="Smile">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm1.gif ';" COORDS="8,8,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm2.gif ';" COORDS="25,8,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm3.gif ';" COORDS="42,8,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm4.gif ';" COORDS="59,8,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm5.gif ';" COORDS="76,8,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm6.gif ';" COORDS="8,25,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm7.gif ';" COORDS="25,25,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm8.gif ';" COORDS="42,25,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm9.gif ';" COORDS="59,25,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm10.gif ';" COORDS="76,25,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm11.gif ';" COORDS="8,42,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm12.gif ';" COORDS="25,42,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm13.gif ';" COORDS="42,42,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm14.gif ';" COORDS="59,42,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm15.gif ';" COORDS="76,42,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm16.gif ';" COORDS="8,59,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm17.gif ';" COORDS="25,59,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm18.gif ';" COORDS="42,59,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm19.gif ';" COORDS="59,59,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm20.gif ';" COORDS="76,59,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm21.gif ';" COORDS="8,76,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm22.gif ';" COORDS="25,76,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm23.gif ';" COORDS="42,76,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm24.gif ';" COORDS="59,76,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm25.gif ';" COORDS="76,76,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm26.gif ';" COORDS="8,94,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm27.gif ';" COORDS="25,94,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm28.gif ';" COORDS="42,94,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm29.gif ';" COORDS="59,94,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm30.gif ';" COORDS="76,94,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm31.gif ';" COORDS="8,110,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm32.gif ';" COORDS="25,110,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm33.gif ';" COORDS="42,110,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm34.gif ';" COORDS="59,110,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm35.gif ';" COORDS="76,110,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm36.gif ';" COORDS="8,128,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm37.gif ';" COORDS="25,128,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm38.gif ';" COORDS="42,128,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm39.gif ';" COORDS="59,128,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm40.gif ';" COORDS="76,128,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm41.gif ';" COORDS="8,145,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm42.gif ';" COORDS="25,145,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm43.gif ';" COORDS="42,145,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm44.gif ';" COORDS="59,145,8">
<AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='$vars_config{NonC GIURL}/cwmsmilies/cwm45.gif ';" COORDS="76,145,8">
<AREA SHAPE="rec" href="http://www.smilecwm.com/" Target="_blank" Coords="0,153,85,170"><AREA SHAPE="default" NOHREF>
</MAP>);

|DarkManX|
11-04-2001, 11:39 PM
this was a cool hack for ubb.........

heretic
11-05-2001, 06:48 PM
anyone?