vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: Separate Flagged Messages From Normal - 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
Separate Flagged Messages From Normal (4th Apr 08 at 11:39pm UTC)
This code will add a bar separating the flagged messages from those that aren't flagged! {Smile}

<script>
/*Separate Flagged Messages From Normal.
Coded By Wrighty
No: Ripping, Reposting or Claiming*/

if(/action\/pm/.test(location.href)){
    var d = get('tr','tag');
    for(i=0;i<d.length;i++){
        if(d[i].cells[0].className.match(/window(1|2)/) && d[i].cells[0].width == '2%' && d[i].cells[1].className.match(/window(1|2)/) && d[i].cells[1].firstChild.firstChild && d[i].cells[1].firstChild.firstChild.alt == '!' && d[i+1].cells[0].className.match(/window(1|2)/) && d[i+1].cells[1].className.match(/window(1|2)/) && !d[i+1].cells[1].innerHTML.match(/\!/)){
            var r = document.createElement('tr');
            var x = document.createElement('td');
            x.colSpan = '5';
            x.className = 'title1';
            r.appendChild(x);
            d[i+1].parentNode.insertBefore(r, d[i+1]);
            break;
        }
    }
}
</script>


Main Footer
 Printable View

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