The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
i want to put some code ( by click on picture) on the text area
hello ..
i want to make new file inside it text area and above text area some pictures , every picture have a little code , if you click on the picture , its code will written on the text area . It is like smilies idea ... please help me to do this or give me any example . Best Regards |
#2
|
|||
|
|||
Just look at the source of a thread here at vb.org. Look how the Arraow down icon in a post (the one next to quote) is handled.
|
#3
|
|||
|
|||
Do you mean this ?
HTML Code:
<!-- standard quick reply --> <div id="controlbar"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td><div class="imagebutton"><a href="#" onclick="return vbcode('B', '')"><img src="images/editor/bold.gif" alt="Bold" width="21" height="20" border="0" /></a></div></td> <td><div class="imagebutton"><a href="#" onclick="return vbcode('I', '')"><img src="images/editor/italic.gif" alt="Italic" width="21" height="20" border="0" /></a></div></td> <td><div class="imagebutton"><a href="#" onclick="return vbcode('U', '')"><img src="images/editor/underline.gif" alt="Underline" width="21" height="20" border="0" /></a></div></td> <td><img src="images/editor/separator.gif" alt="" width="6" height="20" /></td> <td><div class="imagebutton"><a href="#" onclick="return vbcode('QUOTE', '')"><img src="images/editor/quote.gif" alt="Wrap [QUOTE] tags around selected text" title="Wrap [QUOTE] tags around selected text" width="21" height="21" border="0" /></a></div></td> </tr> </table> </div> <div class="controlbar"> <textarea name="message" id="qr_message" class="bginput" style="width:600px; height:100px" cols="60" rows="5" tabindex="1"></textarea> </div> <script type="text/javascript" src="clientscript/vbulletin_editor.js"></script> <script type="text/javascript" src="clientscript/vbulletin_stdedit.js"></script> <!-- / standard quick reply --> if you don't mean this please tell what did you mean ? thanks |
#4
|
|||
|
|||
This line is handling it:
HTML Code:
<a href="newreply.php?do=newreply&p=767717" onclick="return doMultiQuote('MarcoH64', 767717);"><img src="images/smoothblue/buttons/quickreply.gif" alt="Quick reply to this message" border="0" /></a> |
#5
|
|||
|
|||
I couldn't do it ....
if you can : please make a new file includes a textarea and some buttons above it .. Thank you very much for your help |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|