vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: 2 Requests - View Topic
Topic Rating: *****
Printable View
Vanquish
Junior Member
**

[Avatar]

Posts: 64
Status: Offline
Gender: Male
Location: Northern Ireland
Age: 32
Joined:  
Reputation: 10%  


pmvForum
2 Requests (8th Aug 10 at 11:25am UTC)
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.

Image
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: 2 Requests (9th Aug 10 at 12:24pm UTC)
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}
Vanquish
Junior Member
**

[Avatar]

Posts: 64
Status: Offline
Gender: Male
Location: Northern Ireland
Age: 32
Joined:  
Reputation: 10%  


pmvForum
Re: 2 Requests (9th Aug 10 at 5:04pm UTC)
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.

Image
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: 2 Requests (10th Aug 10 at 8:44am UTC)
I'll look at making a code that does this everywhere sometime after work tonight! {Smile}
 Printable View

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