vForums Support > Programming & Coding :: Code Requests & Support :: > 2 Requests

2 Requests - Posted By Vanquish (scott1707) on 8th Aug 10 at 11:25am
Ok, this is the issue I am having:

I am using the move category name to head image code.

The only problem is that the category text is vertically centered, and I would like to lower it a few pixels.

Problem:
Wrong

What I want:
Correct

Was also wondering if it was possible to move 'Board Stats' and 'Sub Boards' into the head image aswell.

Re: 2 Requests - Posted By Michael (wrighty) on 9th Aug 10 at 12:24pm
Where abouts is the board stats text? Can you link to the page? I can't remember :X
--

<script>
/*Category Name in Head Image
by Wrighty
No Repost, Rip or Claiming*/

var row = 1; //Are you showing the 'Board Name' row? 1 = yes, 0 = no.

var r = get('tr','tag');
for(i=0;i<r.length;i++){
    if(r[i].cells[0].className == 'title2 categorytitle' && r[i].cells[0].innerHTML.match(/\/category\//)){
        var x = (row==1)? 1 : -1;
        var num = parseInt(2 + x);
        var a = r[i-num].insertCell(1);
        with(a){
            width="100%";
            align="center";
            className="titleHead";
        }
        a.appendChild(r[i].cells[0].firstChild);
        r[i].style.display = 'none';
    }
}
</script>

Then use the css class "titleHead" to manipulate it! {Smile}

Re: 2 Requests - Posted By Vanquish (scott1707) on 9th Aug 10 at 5:04pm
http://vanquishskins.vforums.co.uk/

It seems to have messed up the category name.
Also, meant just the Information Center text. Would probably be more useful if it applied to every head image.

So 'Sub Boards' in head image, 'Sticky Threads' and 'Normal Threads' in head images too.

Appreciate the help Michael.

Re: 2 Requests - Posted By Michael (wrighty) on 10th Aug 10 at 8:44am
I'll look at making a code that does this everywhere sometime after work tonight! {Smile}