PDA

View Full Version : Using images instead of buttons for vB Code


Tigga
04-16-2002, 06:58 PM
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:
<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>