vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   I asked this question before... Clickable message icons. (https://vborg.vbsupport.ru/showthread.php?t=26060)

Gutspiller 08-21-2001 09:44 PM

Somebody told me it would take a lot of work. But then I was just thinking. The icons in the smilie popup window are clickable. Would it be possible to copy that code from the popup window and make it so that the message icons work the same way. So that when you click on the message icons they too would be inserted into the message?

Sorry if this has already been asked.

Thanks for any hlep you can provide. :)

Steve Machol 08-21-2001 09:47 PM

This isn't really a 'How Do I', it's more of a Hack Request. I'm sure it's possible, but I think that it nonetheless take a lot of work to implement it into the forums.

Gutspiller 08-21-2001 09:51 PM

Can ya move it to the hacks forum, or should I as again, but in there?

MHR 08-22-2001 03:28 AM

urgh, this might help,
edit template posticonbit
replace this
Code:

<input type="radio" name="iconid" value="$iconid" $iconchecked>&nbsp;<img src="$iconpath" height="15" width="15" align="middle" alt="$alttext">&nbsp;&nbsp;&nbsp;&nbsp;
with this
Code:

<input type="radio" name="iconid" value="$iconid" $iconchecked>&nbsp;&nbsp;<a href="javascript:void(0);"><IMG SRC="$iconpath" BORDER=0 ALIGN=ABSCENTER onClick="vbform.message.value+='<img src=$iconpath> ';"></a> &nbsp;&nbsp;&nbsp;&nbsp;
:D

Gutspiller 08-22-2001 04:37 AM

Quote:

Originally posted by MHR
urgh, this might help,
edit template posticonbit
replace this
Code:

<input type="radio" name="iconid" value="$iconid" $iconchecked>&nbsp;<img src="$iconpath" height="15" width="15" align="middle" alt="$alttext">&nbsp;&nbsp;&nbsp;&nbsp;
with this
Code:

<input type="radio" name="iconid" value="$iconid" $iconchecked>&nbsp;&nbsp;<a href="javascript:void(0);"><IMG SRC="$iconpath" BORDER=0 ALIGN=ABSCENTER onClick="vbform.message.value+='<img src=$iconpath> ';"></a> &nbsp;&nbsp;&nbsp;&nbsp;
:D

ok that sorta worked. When I did what you said when you clicked on an icon it would insert the link to the image and then the page would change to a javascript void (0). I saw this in the added code so I took it out and now it works. BUT, when the mouse goes over the icons it doesn't turn into a hand with the finger extended.

Was it ok to remove that code, and is there a way to make it so that the cursor changes into the hand on rollover?


All times are GMT. The time now is 01:40 AM.

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.01386 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete