View Full Version : Custom BB codes in quick reply
Flow Fusion
02-17-2005, 05:59 AM
OK has someone done this? But what I want is for my user to be able to click the windows media player, quicktime or iframe tags in the quick reply box.
You mean as in add BB codes other then "B", "I", "U" and "Quote" that's there by default?
Flow Fusion
02-17-2005, 06:41 PM
Uh.... yeah I mean at the bottom of this page right? I would like to know if I can add my own custom BB codes. But on my site.
mholtum
02-17-2005, 07:06 PM
Right out of the Admincp:
Custom BB Codes
BB Code Manager
Add New BB Code
You have to do some template editing to add the BB codes to the quickreply. In showthread_quickreply find <td><div class="imagebutton" id="cmd_wrap0_quote"><img src="$stylevar[imgdir_editor]/quote.gif" alt="$vbphrase[wrap_quote_tags]" width="21" height="20" /></div></td>below it add<td><div class="imagebutton" id="cmd_BBCODE"><img src="$stylevar[imgdir_editor]/FILENAME.gif" alt="$vbphrase[BBCODE]" width="21" height="20" /></div></td>Change the BBCODE and FILENAME text. The problem is that you need to know the BBCODE corresponding to the icon itself. I havn't manage to understand this yet.
If you want to add a seperator, use<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>Hope I understod your question. :P
Flow Fusion
02-17-2005, 09:35 PM
<td><div class="imagebutton" id="cmd_BBCODE"><img src="$stylevar[imgdir_editor]/http://www.kefalonia.net.gr/images/icon_windowsmedia9_small.gif" alt="$vbphrase[wmv]" width="21" height="20" /></div></td>
I tried this is this what you meant? Cause it didn't work. And when I tried to put the entire code into the wmv space I got errors.
It should be<td><div class="imagebutton" id="cmd_wmv"><img src="http://www.kefalonia.net.gr/images/icon_windowsmedia9_small.gif" alt="$vbphrase[wmv]" width="21" height="20" /></div></td>I have no idea if this will work for you or not.
Edit: I forgot, there are two places you need to add this code. Find<td><div class="imagebutton"><a href="#" onclick="return vbcode('QUOTE', '')"><img src="$stylevar[imgdir_editor]/quote.gif" alt="$vbphrase[wrap_quote_tags]" title="$vbphrase[wrap_quote_tags]" width="21" height="21" border="0" /></a></div></td>and add below<td><div class="imagebutton"><a href="#" onclick="return vbcode('wmv', '')"><img src="http://www.kefalonia.net.gr/images/icon_windowsmedia9_small.gif" alt="$vbphrase[wmv]" title="$vbphrase[wmv]" width="21" height="21" border="0" /></a></div></td>
Flow Fusion
02-17-2005, 11:54 PM
Yup that did it just great!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.