vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: Expand Quick Reply - View Topic
Topic Rating: *****
Printable View
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Expand Quick Reply (29th Apr 08 at 6:50pm UTC)
This code will add a link under the quick reply message box that says 'expand' to allow your members to expand the quick reply message box's height.

edit part in red to alter how much it expands.

<script>
/*Expand Quick Reply
Created By Wrighty
Do Not: Rip, Repost or Claim*/

var e = {
    x: 5,
    m: get('message','name')[0],
    check: function(){
        if(get('quick_reply_ubbc','id')){
            this.do();
        }
    },
    do: function(){
        var a = document.createElement('a');
        a.href='javascript: e.xpand();';
        a.appendChild(document.createTextNode('Expand'));
        this.m.parentNode.appendChild(a);
        this.m.parentNode.nextSibling.vAlign = 'top';
    },
    xpand: function(){
        this.m.rows = parseInt(this.m.rows + this.x);
    }
};
e.check();
</script>


Global Footer
 Printable View

All times are GMT+0 :: The current time is 6:37pm
Page generated in 0.0727 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums