vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Enable cut/copy/paste (https://vborg.vbsupport.ru/showthread.php?t=173134)

carrlos 03-15-2008 10:38 PM

Enable cut/copy/paste
 
I understand that the cut/copy/paste feature is built into vB 3.7 but is commented out. How can I enable it?

R1lover 03-15-2008 10:40 PM

what makes you think it's commented out?
:confused

Opserty 03-15-2008 10:48 PM

I don't understand what you are getting at here... there is no option to enable/disable it... there never has been such an option. Where in vBulletin are you referring to? You need to provide more details.

carrlos 03-15-2008 10:55 PM

This is the first part of editor_toolbar_on. I am putting the commented part about cut/copy/paste in red.

Code:

$vBeditTemplate[clientscript]
<table cellpadding="0" cellspacing="0" border="0">
<tr>
        <td id="$editorid" class="vBulletin_editor" width="100%">
                <div id="{$editorid}_controls" class="controlbar">
                        <table cellpadding="0" cellspacing="0" border="0">
                        <tr>
                                <td><div class="imagebutton" id="{$editorid}_cmd_removeformat"><img src="$stylevar[imgdir_editor]/removeformat.gif" width="21" height="20" alt="$vbphrase[remove_text_formatting]" /></div></td>
                        <if condition="$show['font_bbcode'] OR $show['size_bbcode']">
                                <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
                        </if>
                        <if condition="$show['font_bbcode']">
                                <td><div class="imagebutton" id="{$editorid}_popup_fontname" title="$vbphrase[fonts]">
                                        <table cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                                <td class="popup_feedback"><div id="{$editorid}_font_out" style="width:91px">&nbsp;</div></td>
                                                <td class="popup_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
                                        </tr>
                                        </table>
                                </div></td>
                        </if>
                        <if condition="$show['size_bbcode']">
                                <td><div class="imagebutton" id="{$editorid}_popup_fontsize" title="$vbphrase[sizes]">
                                        <table cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                                <td class="popup_feedback"><div id="{$editorid}_size_out" style="width:25px">&nbsp;</div></td>
                                                <td class="popup_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
                                        </tr>
                                        </table>
                                </div></td>
                        </if>
                        <if condition="$show['color_bbcode']">
                                <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
                                <td><div class="imagebutton" id="{$editorid}_popup_forecolor" title="$vbphrase[colors]">
                                        <table cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                                <td id="{$editorid}_color_out"><img src="$stylevar[imgdir_editor]/color.gif" width="21" height="16" alt="" /><br /><img src="$vboptions[cleargifurl]" id="{$editorid}_color_bar" alt="" style="background-color:black" width="21" height="4" /></td>
                                                <td class="alt_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
                                        </tr>
                                        </table>
                                </div></td>
                        </if>
                        <if condition="$show['wysiwygsmilies']">
                                <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
                                <td><div class="imagebutton" id="{$editorid}_popup_smilie" title="$vbphrase[smilies]">
                                        <table cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                                <td><img src="$stylevar[imgdir_editor]/smilie.gif" alt="" width="21" height="20" /></td>
                                                <td class="alt_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
                                        </tr>
                                        </table>
                                </div></td>
                        </if>
                        <if condition="$show['attach']">
                                <td><div class="imagebutton" id="{$editorid}_popup_attach" title="$vbphrase[attachments]">
                                        <table cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                                <td><img src="$stylevar[imgdir_editor]/attach.gif" alt="" width="21" height="20" /></td>
                                                <td class="alt_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
                                        </tr>
                                        </table>
                                </div></td>
                        </if>
                                <!--
                                <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
                                <td><div class="imagebutton" id="{$editorid}_cmd_cut"><img src="$stylevar[imgdir_editor]/cut.gif" width="21" height="20" alt="$vbphrase[cut]" /></div></td>
                                <td><div class="imagebutton" id="{$editorid}_cmd_copy"><img src="$stylevar[imgdir_editor]/copy.gif" width="21" height="20" alt="$vbphrase[copy]" /></div></td>
                                <td><div class="imagebutton" id="{$editorid}_cmd_paste"><img src="$stylevar[imgdir_editor]/paste.gif" width="21" height="20" alt="$vbphrase[paste]" /></div></td>
                                -->


                                <if condition="$show['basicbbcodeonly']">
                                        <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
                                        <if condition="$show['basic_bbcode']">
                                                <td><div class="imagebutton" id="{$editorid}_cmd_bold"><img src="$stylevar[imgdir_editor]/bold.gif" width="21" height="20" alt="$vbphrase[bold]" /></div></td>
                                                <td><div class="imagebutton" id="{$editorid}_cmd_italic"><img src="$stylevar[imgdir_editor]/italic.gif" width="21" height="20" alt="$vbphrase[italic]" /></div></td>
                                                <td><div class="imagebutton" id="{$editorid}_cmd_underline"><img src="$stylevar[imgdir_editor]/underline.gif" width="21" height="20" alt="$vbphrase[underline]" /></div></td>

Any other questions? :rolleyes:

Opserty 03-15-2008 11:15 PM

Oh you are talking about the Editor buttons, I see now. Hmm I'm not sure, maybe they were planned functions or something. We'll see if anyone else can shed some light on this.

nexialys 03-15-2008 11:46 PM

it is commented because it is not working on 50% of the browsers... and the javascript is not really working either.

carrlos 03-16-2008 05:09 AM

Never mind everyone. I did it myself! :D

http://img178.imageshack.us/img178/9...eenshottj4.gif

Editor_toolbar_cut-copy-paste_carrlos.rar

--------------- Added [DATE]1205680972[/DATE] at [TIME]1205680972[/TIME] ---------------

If anyone discovers any issues with this, please let me know! ;)


All times are GMT. The time now is 03:51 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.01027 seconds
  • Memory Usage 1,759KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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