Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-04-2001, 11:27 PM
heretic's Avatar
heretic heretic is offline
 
Join Date: Nov 2001
Posts: 285
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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/posting...um=General+B.S

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


PHP Code:
$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+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm1.gif[/IMG] ';" COORDS="8,8,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm2.gif[/IMG] ';" COORDS="25,8,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm3.gif[/IMG] ';" COORDS="42,8,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm4.gif[/IMG] ';" COORDS="59,8,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm5.gif[/IMG] ';" COORDS="76,8,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm6.gif[/IMG] ';" COORDS="8,25,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm7.gif[/IMG] ';" COORDS="25,25,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm8.gif[/IMG] ';" COORDS="42,25,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm9.gif[/IMG] ';" COORDS="59,25,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm10.gif[/IMG] ';" COORDS="76,25,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm11.gif[/IMG] ';" COORDS="8,42,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm12.gif[/IMG] ';" COORDS="25,42,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm13.gif[/IMG] ';" COORDS="42,42,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm14.gif[/IMG] ';" COORDS="59,42,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm15.gif[/IMG] ';" COORDS="76,42,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm16.gif[/IMG] ';" COORDS="8,59,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm17.gif[/IMG] ';" COORDS="25,59,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm18.gif[/IMG] ';" COORDS="42,59,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm19.gif[/IMG] ';" COORDS="59,59,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm20.gif[/IMG] ';" COORDS="76,59,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm21.gif[/IMG] ';" COORDS="8,76,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm22.gif[/IMG] ';" COORDS="25,76,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm23.gif[/IMG] ';" COORDS="42,76,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm24.gif[/IMG] ';" COORDS="59,76,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm25.gif[/IMG] ';" COORDS="76,76,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm26.gif[/IMG] ';" COORDS="8,94,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm27.gif[/IMG] ';" COORDS="25,94,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm28.gif[/IMG] ';" COORDS="42,94,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm29.gif[/IMG] ';" COORDS="59,94,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm30.gif[/IMG] ';" COORDS="76,94,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm31.gif[/IMG] ';" COORDS="8,110,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm32.gif[/IMG] ';" COORDS="25,110,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm33.gif[/IMG] ';" COORDS="42,110,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm34.gif[/IMG] ';" COORDS="59,110,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm35.gif[/IMG] ';" COORDS="76,110,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm36.gif[/IMG] ';" COORDS="8,128,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm37.gif[/IMG] ';" COORDS="25,128,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm38.gif[/IMG] ';" COORDS="42,128,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm39.gif[/IMG] ';" COORDS="59,128,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm40.gif[/IMG] ';" COORDS="76,128,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm41.gif[/IMG] ';" COORDS="8,145,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm42.gif[/IMG] ';" COORDS="25,145,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm43.gif[/IMG] ';" COORDS="42,145,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm44.gif[/IMG] ';" COORDS="59,145,8">
<
AREA SHAPE="circle" href="javascript:void(0);" onClick="document.REPLIER.message.value+='[IMG]$vars_config{NonCGIURL}/cwmsmilies/cwm45.gif[/IMG] ';" COORDS="76,145,8">
<
AREA SHAPE="rec" href="http://www.smilecwm.com/" Target="_blank" Coords="0,153,85,170"><AREA SHAPE="default" NOHREF>
</
MAP>); 
Reply With Quote
  #2  
Old 11-04-2001, 11:39 PM
|DarkManX|'s Avatar
|DarkManX| |DarkManX| is offline
 
Join Date: Oct 2001
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this was a cool hack for ubb.........
Reply With Quote
  #3  
Old 11-05-2001, 06:48 PM
heretic's Avatar
heretic heretic is offline
 
Join Date: Nov 2001
Posts: 285
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:10 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04280 seconds
  • Memory Usage 2,257KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete