![]() |
Quote:
|
Hi,
This is slightly unrelated but i'm having some CSS issues on the template: Link to the page For some reason my footer is half may up the page, rather than normal position on bottom. Here is my template code: Code:
<div id="view-test" class="<vb:if condition="$selected_tab == 'test'">selected_view_section<vb:else />view_section</vb:if><vb:if condition="$userinfo['userid'] != $bbuserinfo['userid']"> vm_other_prof</vb:if>"> |
I'm not really an html/css person, but I looked at the page and your new tab doesn't look like it's any different than the other tabs, so I don't think the problem is in the template for the new tab. I see that the .footerBanner css has absolute positioning for that 'free gift' image, so that's why that's in the middle of eveyrthing. There's also that red line, but I don't know exactly why that's happening.
|
That red line goes with the footer-main section, making the advertisement absolute doesn't fix the issue, this is getting me confused, because the only pages effected are the ones on the member profile... could it be anything in the PHP code?
|
Does it still happen if you disable the new plugin?
|
Sorry don't worry i've figured it out, was missing just one </div> element.. lol hate when it's that simple right in front of your face.
|
Glad you figured it out. I should just not reply at all when people ask html questions.
|
Hi,
Was wondering if you know how to do math equations in html template just simple things like times, divide, etc ? |
There is a {vb:math expression} tag that lets you do some simple math, but I don't think it's used much, and if I remember correctly there's some limitation so that it's not very useful. It may be that you can't use variables in the expressions or something like that.
In general I think you'll probably have to do you calculations in the plugin. |
So i was able to use vb:math to do what i wanted but i can't control the number of decimals displayed. So how would i do the maths in the plugin? and then call the equation in the template? I was trying to measure BMI based off height and weight but need to do
this is in my template and is right answer, with heaps of decimals: Code:
{vb:math {vb:math {vb:raw userinfo.field7}/2.2} / {vb:math ({vb:raw userinfo.field8}/100)*2}} |
All times are GMT. The time now is 09:08 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|