vForums Support > Programming & Coding :: Code Requests & Support :: > [F] Forum Smilies IN Another Row

[F] Forum Smilies IN Another Row - Posted By dog199200 (dog199200) on 9th Jul 08 at 9:15pm
umm can i please get a code so thatr when i use the Forum Smilies feature it puts the added smilies in a row under the original smilies.

Re: Forum Smilies IN Another Row - Posted By Michael (wrighty) on 10th Jul 08 at 9:20am
try this:

<script>
/*Exrtra Smilies on New Line
Created By Wrighty
Do Not Rip,. Repost or Claim*/

var s = {
     d: get('img','tag'),
     i: function(){
          if(location.href.match(/\/(post|modify)/)){
               this.a();
          }
     },
     a: function(){
          for(i = 0; i < this.d.length; i++){
               if(this.d[i].alt == 'Laugh'){
                    this.d[i].parentNode.parentNode.removeChild(this.d[i].parentNode.nextSibling);
                    this.d[i].parentNode.parentNode.insertBefore(document.createElement('br'), this.d[i].parentNode.nextSibling)
                    this.d[i].parentNode.parentNode.insertBefore(document.createElement('br'), this.d[i].parentNode.nextSibling)
                    break;
               }
          }
     }
};
s.i();
</script>


Global Footer

Re: Forum Smilies IN Another Row - Posted By dog199200 (dog199200) on 10th Jul 08 at 7:00pm
ty it works great

Re: Forum Smilies IN Another Row - Posted By Michael (wrighty) on 10th Jul 08 at 7:11pm
{Smile}