Comments by n!co on scripts

3 comments

Comment on:
Pagerization

Mar 9, 2008

Thank for this great script.

Here the french translation in UTF8

[ fr ]
standing: Prêt
loading: Chargement
terminate: Chargé
supported: Supporté
update: Mise à jour
updateEnd: Mise à jour Ok
error: Erreur
originImage: Image d'origine
originPage: Page d'origine

Comment on:
Physics Forums - reply

Dec 30, 2007

Other proposal, adapt it to newthread.php
// let Title: be longer. Set size to same as maxlength which is 85.
var x= document.evaluate ("//input[@name='title']", panel, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
if( x == null )
x= document.evaluate ("//input[@name='subject']", panel, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;

x.setAttribute ("size", "85");

Comment on:
Physics Forums - reply

Dec 30, 2007

Hi, proposal patch to move smiles pane below the textarea

// Move below the "smiles" panel.
var smiles= document.getElementById ("vB_Editor_001_smiliebox");
if (smiles) {
// transform smiles panel
var tr_s = smiles.getElementsByTagName("TR")[0]; // the unique TR
for( var i = 1; smiles.getElementsByTagName("TR").length != 1 ; ) {
var tr_si = smiles.getElementsByTagName("TR")[i]; // other TR
for( var j = 0; j < tr_si.getElementsByTagName("TD").length; j++ ) {
var td_sj = tr_si.getElementsByTagName("TD")[j]; // each TD
tr_s.appendChild(td_sj.cloneNode(true)); // clone it and add it to unique TR
}
smiles.getElementsByTagName("TBODY")[0].removeChild(tr_si); // remove other TR
}

smiles= smiles.parentNode; // this is the TD that contains smiles
var TR = smiles.parentNode; // the TR that contains the editor and smiles
var nTR = TR.parentNode.insertRow(1); // new TR below the editor
nTR.appendChild(smiles); // add it the node
}