Back to vBulletin 3.5 Template Modifications

php copy icon
Mod Version: 1.00, by Barakat

This modification is in the archives.
vB Version: 3.5.4 Rating: (0 vote - 0 average) Installs: 2
Released: 03 Jun 2006 Last Update: Never Downloads: 4
Not Supported  

i make this code while requesting from some one to do it but i think it need some magic touch ! from some one here on this great forum

need the way to mark all the text inside the php by clicking on a new icon like "mark text" then "copy code" icon so as to paste it without useing the right click then copy and sooo on !!

anyway here what i have

open ur bbcode_php and replace all by this code :

PHP Code:
<script type="text/javascript">

function 
selectText(strTxtArea){
 
document.getElementById(strTxtArea).focus();
 
document.getElementById(strTxtArea).select();
 }


function 
CopyToClipboard()

{
CopiedTxt document.selection.createRange();
CopiedTxt.execCommand("Copy");
}

</
script>

<
form name="Form1">

<
br /><div style="margin:20px; margin-top:5px">
    <
div class="smallfont" style="margin-bottom:4px">$vbphrase[php_code]:</div>
    <
div class="alt2" style="margin:0px; padding:$stylevar[cellpadding]px; border:1px inset; width:$stylevar[codeblockwidth]; height:{$blockheight}px; overflow:auto">
        <
code style="white-space:nowrap">
        <
div dir="ltr" style="text-align:left;">
            <!-- 
php buffer start -->$code<!-- php buffer end -->
        </
div>
        </
code>
    </
div>

<
input type="button" onClick="CopyToClipboard()" value="copy code" />
</
div>
</
form

Download

This modification is archived and cannot be downloaded.

Screenshots

   


vblts.ru supports vBulletin®, 2022-2024