This is small hack used Script selectCode.
Install:
1. Open Temp: headinclude
Add below:
PHP Code:
<script type="text/javascript">
function selectCode(a)
{
var e = a.parentNode.parentNode.getElementsByTagName('PRE')[0];
if (window.getSelection)
{
var s = window.getSelection();
if (s.setBaseAndExtent)
{
s.setBaseAndExtent(e, 0, e, e.innerText.length - 1);
}
else
{
var r = document.createRange();
r.selectNodeContents(e);
s.removeAllRanges();
s.addRange(r);
}
}
else if (document.getSelection)
{
var s = document.getSelection();
var r = document.createRange();
r.selectNodeContents(e);
s.removeAllRanges();
s.addRange(r);
}
else if (document.selection)
{
var r = document.body.createTextRange();
r.moveToElementText(e);
r.select();
}
}
</script>
2. Open bbcode_code:
find:
PHP Code:
$vbphrase
Code:
:
Add below:
PHP Code:
<a href="#" onclick="selectCode(this); return false;"><input type="button" value="Select All" /></a>
3. Open bbcode_html:
find:
PHP Code:
$vbphrase[html_code]:
Add below:
PHP Code:
<a href="#" onclick="selectCode(this); return false;"><input type="button" value="Select All" /></a>
4. Open bbcode_php:
find:
PHP Code:
$vbphrase[php_code]:
Add below:
PHP Code:
<a href="#" onclick="selectCode(this); return false;"><input type="button" value="Select All" /></a>
Next find:
PHP Code:
$code
Replace with:
PHP Code:
<pre>$code</pre>
That´s all.
Hope u like!
Download Now