vForums Support > Programming & Coding :: Code Requests & Support :: > [F] Quick Reply [Wrighty]

[F] Quick Reply [Wrighty] - Posted By Nick (nickb) on 9th Jun 08 at 2:01am
I know there is a code some were for what I want as Wrighty made me it; I do have the code.

Code:
 
  1. <script>
  2. /*UBBC in QR on new line
  3. Wrighty
  4. No Repost, rip, or claiming!*/
  5.  
  6. if(get('quick_reply','id')){
  7.     var tab = get('quick_reply','id').getElementsByTagName('table')[0];
  8.     var a = tab.insertRow(0).insertCell(0);
  9.     tab.rows[1].cells[1].innerHTML = tab.rows[1].cells[1].innerHTML.replace(/<br\s?\/?>/g,'');
  10.     a.appendChild(tab.rows[1].cells[1]);
  11.     tab.rows[1].cells[0].width = '100%';
  12.     document.quick_reply_form.message.style.width = '99%';
  13. }
  14. </script>
 


But it has not been added to the Database yet.

I need an additional part into this, I want it also to put the UBBC and Smilies in the QR of PM's above the QR box.

Thanks,
Darkmage

Re: Quick Reply - Posted By Nick (nickb) on 11th Jun 08 at 3:01am
Please Wrighty

Re: Quick Reply [Wrighty] - Posted By Michael (wrighty) on 11th Jun 08 at 7:25am
I'm in the middle of exams. Friday evening is probably the earliest that I can get to you... Though I'll take a quick (2 minutes) look tonight to see if it's just a simple name change!)

Re: Quick Reply [Wrighty] - Posted By Nick (nickb) on 11th Jun 08 at 8:55am
ok thanks, I just need it to center the UBBC and Smilies on new line in the QR PM, as well.

Re: Quick Reply [Wrighty] - Posted By Michael (wrighty) on 18th Jun 08 at 8:20pm
<script>
/*UBBC in QR on new line
Including PM Send
Wrighty
No Repost, rip, or claiming!*/

if(get('pm_quick_reply','id') || get('quick_reply','id')){
    if(location.href.match(/pm/)){
        var tab = get('pm_quick_reply','id').getElementsByTagName('table')[0];
    }else{
        var tab = get('quick_reply','id').getElementsByTagName('table')[0];
    }
    var a = tab.insertRow(0).insertCell(0);
    tab.rows[1].cells[1].innerHTML = tab.rows[1].cells[1].innerHTML.replace(/<br\s?\/?>/g,'');
    a.appendChild(tab.rows[1].cells[1]);
    tab.rows[1].cells[0].width = '100%';
    document.getElementsByName('message')[0].style.width = '99%';
}
</script>


Try that instead! {Smile}