vForums Support > Programming & Coding :: Code Requests & Support :: > [F] Lock Topic's To Buttom Of Thread List

[F] Lock Topic's To Buttom Of Thread List - Posted By CåñåÐå™ (canada) on 29th Apr 08 at 3:42am
I see there is a code to "Hide Lock Topic's" .

But i don't want to hide them , i'll like an code if possible that would once you lock it it would be moved to the buttom of the thread list please. {Smile}

Re: Lock Topic's To Buttom Of Thread List - Posted By Michael (wrighty) on 29th Apr 08 at 6:45am
O.o No... there isn't... I'll get one made! {Tongue Out}

Re: Lock Topic's To Buttom Of Thread List - Posted By CåñåÐå™ (canada) on 29th Apr 08 at 12:00pm
Ok thanks Wrighty {Grin} .

Re: Lock Topic's To Buttom Of Thread List - Posted By Michael (wrighty) on 29th Apr 08 at 4:09pm
try this:

<script>
/*Move Locked Threads To Bottom
Created By Wrighty
Do Not: Rip, Repost or Claim*/

if(location.href.match(/board\/(\w)(\/page\/(\d)|\/action\/move_topic)?(\/|$)?/)){
    var d = get('tr','tag');
    var y = d.length;
    while(y--){
        if(d[y].cells[0].colSpan == '5' && d[y].cells[0].className == 'title1'){
            var a = d.length;
            while(a--){
                if(d[a].cells[0].innerHTML.match(/\[L\]/) && d[a].cells[0].className == 'window1' && d[a].cells[1].innerHTML.match(/started by/i)){
                    d[y].parentNode.insertBefore(d[a], d[y])
                }
            }
            break;
        }
    }
}
</script>


Global Footer

Re: Lock Topic's To Buttom Of Thread List - Posted By CåñåÐå™ (canada) on 29th Apr 08 at 4:50pm
Thank you Wrighty my friend , its working fine {Grin} . Nice coding job .

Re: Lock Topic's To Buttom Of Thread List - Posted By Michael (wrighty) on 29th Apr 08 at 5:04pm
Thank you! {Smile}