vForums Support > Programming & Coding :: Database of Codes/Hacks/Mods :: > Posting Remodel
Posting Remodel - Posted By Michael (wrighty) on 30th Apr 08 at 6:46pm
This code merges the subject & description row. And then puts the UBBC icons to the right of those 2 input boxes. And then the smilies below all of that.
Also, expands the width of the message field.
Preview
<script>
/*Posting Mod v1
Created By Wrighty
Do Not: Rip, Repost or Claim*/
var love = {
kiss: function(){
if(get('description_field','id')){
this.hug();
}
},
hug: function(){
var lick = document.createElement('div');
var finger = lick.cloneNode(true);
var vag = finger.cloneNode(true);
with(lick){
appendChild(get('ubbc_buttons','id').firstChild);
style.cssText = 'float: right';
}
with(finger){
style.cssText = 'float: left';
appendChild(get('subject_field','id').firstChild);
appendChild(document.createElement('br'));
appendChild(get('description_field','id').firstChild);
}
with(vag){
appendChild(get('smilies_buttons','id').firstChild);
style.cssText = 'text-align: center; clear: both; padding-bottom: 10px; padding-top: 5px;';
}
with(get('subject_title','id')){
appendChild(document.createElement('br'));
appendChild(document.createElement('br'));
appendChild(get('description_title','id').firstChild);
style.cssText = 'vertical-align: top';
}
with(get('subject_field','id')){
appendChild(finger);
appendChild(lick);
appendChild(vag);
}
with(get('description_title','id').parentNode){
style.display = 'none';
nextSibling.style.display = 'none';
nextSibling.nextSibling.style.display = 'none';
}
get('message','name')[0].style.width = '99%'
}
};
love.kiss();
</script>
Global Footer