vForums Support Banner


Visit Base Classics - Gaming Chairs

 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: Sticky Splitter - 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
Sticky Splitter (16th Mar 08 at 1:21pm UTC)
This will separate the stickies from the announcements in any board, by a simple bar.

<script>
/*Sticky Splitter
Coded By Wrighty
No Ripping, Reposting or Claiming*/

var sticky = {
    splitter: function(){
        for(a=0;a<get('table','tag').length;a++){
            if(get('table','tag')[a].cellSpacing=='1' && get('table','tag')[a].cellPadding=='3'){
                var t=get('table','tag')[a].getElementsByTagName('tr');
                for(i=0;i<t.length;i++){
                    if(t[i].innerHTML.match(/Announcement:/i) && t[i+1] && t[i+1].cells[0].getElementsByTagName('img')[0].alt.match(/(\[s\]|\[sl\])/i)){
                        var lin=get('table','tag')[a].insertRow(i-1);
                        var box=lin.insertCell(0);
                        with(box){
                            colSpan="5";
                            height="10px";
                            className = 'title2'
                        }
                    }
                }
            }
        }
    }
}
if(location.href.match(/\/board\/(\w)/)){
    sticky.splitter();
}
</script>


Global Footer
[.tR] ookie1
Full Member
***

[Avatar]
Is it choccy?

Posts: 167
Status: Offline
Joined:  
Reputation: 3%  


pm
Re: Sticky Splitter (23rd Apr 08 at 6:52am UTC)
Doesn't vForums have this built in?




Image

Hallelujah! 'tis done; I believe on the Son; I am saved by the blood of the Crucified One!
dog199200
Guest
Re: Sticky Splitter (23rd Apr 08 at 1:42pm UTC)
no vforums seperates the Stickies and Announcements from normals thread, and what this code does is seperates the Stickies from the Announcements.
ajay
Guest
Re: Sticky Splitter (23rd Apr 08 at 1:56pm UTC)
Posted By dog199200 on 23rd Apr 08 at 1:42pm
 
no vforums seperates the Stickies and Announcements from normals thread, and what this code does is seperates the Stickies from the Announcements.




It does? That's really cool. Wrighty great job on the code. I am using it on my test board {Wink} .
 Printable View

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