vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Using images instead of buttons for vB Code (https://vborg.vbsupport.ru/showthread.php?t=37505)

Tigga 04-16-2002 06:58 PM

Using images instead of buttons for vB Code
 
I tried posting this on the vBulletin.com board, but never could get any help with it so I was hoping that maybe someone here would be able to help. :)
I receintly added a bunch of new vB Codes for my members to use on the board. I would like to add some buttons in the format panel (the one's right above the text area that you can use to insert vB Code), but it would become really cluttered if I tried to add them all. I tried making some images to use instead, but I can't seem to get them to work right. I tried changing the code's so to something like this...

<input type="image" src="atbutton.gif" " title="Insert Email Address" onclick="namedlink(this.form,'EMAIL')" onmouseover="stat('email')">

But that didn't work and caused the buttons to act funny. Has anyone sucessfully done this or know how I would go about changing the buttons to images? Any help would be much appreciated.

Thanks,
Brian

Admin 04-16-2002 07:01 PM

This was wrong.

Anyway, I just tried using this for example:
Code:

<input type="image" src="images/go.gif" title="PHP CODE" onclick="vbcode(this.form,'PHP','')" onmouseover="stat('php')">
Instead of the PHP button, and it works good. :)

212rikanmofo 04-18-2002 12:15 PM

where do you go to change this? is it in the template or the php itself? i would also like to do this

Admin 04-18-2002 12:17 PM

In the template.

212rikanmofo 04-18-2002 12:37 PM

which template to be exact?

Tigga 04-27-2002 05:51 PM

Thank you very much sir. I will go try that now. :)

It's in the "vbcode_buttons" template 212.

Tigga 05-24-2002 06:03 AM

Hmmm... Well I tried doing it this way, but then whenever you click on the image it automatically tries to post the message. Anyone know how to fix this???

Admin 05-24-2002 06:25 AM

<a href="http://vbulletin.com/forum/showthread.php?s=&threadid=46612" target="_blank">http://vbulletin.com/forum/showthrea...threadid=46612</a>


All times are GMT. The time now is 03: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.01035 seconds
  • Memory Usage 1,717KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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