Mimin ma momod permisi...
ane mw sedikit saran buat nambahin Selected kode, supaya gk cape, keriting tangannya gra gara ngeblock script yg panjang...
Scrinsutnya sperti ini [kyak di rmrk.ne] :
[img]https://2img.net/h/i351.photobucket.com/albums/q450/baseandco/selectcontentbutton2.png [/img]
Langkah Pertama : Masuk ke Admin Panel [Mimin Only] > Masuk ke Modules > Geser ke paling bawah, masuk ke Javascript codes management > Klik Creates a new javascript...
Titlenya terserah mimin aja...
Placement, pilih In All Pages
Javascript code, masukin ini [untuk phpbb2] :
[spoiler]
function selectCode(a)
{
// Get ID of code block
var e = jQuery(a).closest('tr').next().find('.cont_code')[0];
// Not IE
if (window.getSelection)
{
var s = window.getSelection();
// Safari
if (s.setBaseAndExtent)
{
s.setBaseAndExtent(e, 0, e, e.innerText.length - 1);
}
// Firefox and Opera
else
{
// workaround for bug # 42885
if (window.opera && e.innerHTML.substring(e.innerHTML.length - 4) == '<BR>')
{
e.innerHTML = e.innerHTML + ' ';
}
var r = document.createRange();
r.selectNodeContents(e);
s.removeAllRanges();
s.addRange(r);
}
}
// Some older browsers
else if (document.getSelection)
{
var s = document.getSelection();
var r = document.createRange();
r.selectNodeContents(e);
s.removeAllRanges();
s.addRange(r);
}
// IE
else if (document.selection)
{
var r = document.body.createTextRange();
r.moveToElementText(e);
r.select();
}
}
jQuery(function(){
jQuery('div.postbody td.code').parent().prev().find('b').html('Code:
<a href="javascript:void()" onClick="selectCode(this)"><font
face="verdana" color="red"></font> Ambil Script </a>');
});
[/spoiler]
klik Submit
dan jangan lupa pada bag. ini "Enable Javascript code management :" pilih "Ya" dan Klik Kirim
NB : Saran ini mungkin gk berguna, hehehe...
klo ada bug, bisa komen disini...