vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   i want to put some code ( by click on picture) on the text area (https://vborg.vbsupport.ru/showthread.php?t=95602)

php4dev 09-04-2005 01:44 AM

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

Marco van Herwaarden 09-04-2005 05:15 AM

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.

php4dev 09-04-2005 01:52 PM

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 -->

i put this code in new file but it is didn't work ..

if you don't mean this please tell what did you mean ?


thanks

Marco van Herwaarden 09-04-2005 04:43 PM

This line is handling it:
HTML Code:

                        <a href="newreply.php?do=newreply&amp;p=767717" onclick="return doMultiQuote('MarcoH64', 767717);"><img src="images/smoothblue/buttons/quickreply.gif" alt="Quick reply to this message" border="0" /></a>
Tohether with a JavaScript piece i didn't see so fast.

php4dev 09-12-2005 01:09 AM

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


All times are GMT. The time now is 04:16 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.01101 seconds
  • Memory Usage 1,729KB
  • 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
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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