vForums Support > Programming & Coding :: Code Requests & Support :: > [F] Remove Subject/Last Post/Sub Board

[F] Remove Subject/Last Post/Sub Board - Posted By Fel!x (felix) on 6th Apr 08 at 7:21am
Well in a board, even if "Forum Name" is disabled in Forum Settings, the Subject & Last Post bar appears. I was wondering if someone could make a code which a) removes this & b) removes the similar bar which appears when you have sub-boards.


Smiley
{Grin}
like here

Re: Remove Subject/Last Post/Sub Board - Posted By Michael (wrighty) on 6th Apr 08 at 9:14am
try this:

<script>
/*Hide some random bars*/
var t = get('td','tag');
for(i=0;i<t.length;i++){
    if(t[i].width=='100%' && t[i].colSpan == '5' && t[i].className == 'title2' && t[i].innerHTML.match(/>Last Post</)){
        t[i].style.display = 'none';
    }
    if(t[i].width=='100%' && t[i].colSpan == '3' && t[i].className == 'title1' && t[i].innerHTML.match(/>Sub-Board Name</)){
        t[i].style.display = 'none';
    }
}
</script>


Global Footer

Re: Remove Subject/Last Post/Sub Board - Posted By Fel!x (felix) on 7th Apr 08 at 5:58am
It works great, thanks Wrighty! =]

Re: Remove Subject/Last Post/Sub Board - Posted By Michael (wrighty) on 7th Apr 08 at 8:54am
{Grin}