View Full Version : Custom image buttons
Mumin
03-11-2006, 12:29 PM
I used to be using UBB (thank GOD I switched). Anyway, I had a nice feature there that I would like to emulate in vBulletin.
I had a custom block, similar to the Smilies block. The block had different buttons describing the images and when a member clicked the button, it would insert the image into the post. I did it by making a modification to the template.
Since vBulletin is completely different than UBB, I have no idea how to do it. Any suggestions? By the way, I would like to include it below the message edit box and above the Post Icons block.
Hello,
Couldn't you add it at the top of the posticons template?
Mumin
03-12-2006, 07:17 AM
Hello,
Couldn't you add it at the top of the posticons template?
Sure, but how would I do that? Which file do I modify and what modification do I need to make?
Hello,
Styles & Templates > Style Manager > (click the <<>>) > Post Icon Templates > posticons
At the very top of that template add:
<br />
your custom code here
<br />
Whatever you add between the breaks will be displayed where you want it. I obviously can't tell you what code to add their because I have no idea what UBB is and don't know exactly what it is you used for a modification. If you are just looking to add a block that displays like the smilies, you want to use this:
<fieldset class="fieldset">
<legend>Your Title</legend>
Whatever you want in here.
</fieldset>
Hope that helps.
Mumin
03-13-2006, 02:45 PM
Rich, I appreciate your help so far. One more question. Maybe you can help me. In the block that I just added, I want to have buttons representing different GIF images. When a user clicks on the button, it will insert the appropriate image. For example, if the button says "car" and the user clicks the button, it will insert the car.gif image.
Do you know how I can code it?
Mumin
03-15-2006, 10:08 AM
It did correctly insert the block above the icons. All I need to know now is the code for the smilies that inserts the image into the message box when selected. What I need to do is have a set of buttons that insert an image into the message editor, just as the smilies do.
Anyone know how?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.