The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
|||
|
|||
Oh...oops, yeah, I wasn't using your template, I was using the one from the how-to page. I guess that turned out to be your problem? Oh well, the rest should be easy.
|
#22
|
||||
|
||||
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>"> <div class="blocksubhead subsectionhead userprof_headers userprof_headers_border"> <h4 class="subsectionhead-understate">Body Measurements</h4> </div> <div class="body_measurements"> <div class="current_bm"> <vb:if condition="$userinfo['field8']"> <span class="label">Height:</span> <div><b id="body_data">{vb:raw userinfo.field8}</b><span class="lbs_font">cm</span></div> <vb:else /> <span class="label">Height:</span> <div><b id="body_data">--</b><span class="lbs_font">cm</span></div> </vb:if> </div> <div class="current_bm"> <vb:if condition="$userinfo['field7']"> <span class="label">Weight:</span> <div><b id="body_data">{vb:raw userinfo.field7}</b><span class="lbs_font"> Lbs</span></div> <vb:else /> <span class="label">Weight:</span> <div><b id="body_data">--</b><span class="lbs_font"> Lbs</span></div> </vb:if> </div> <div class="current_bm"> <vb:if condition="$userinfo['field15']"> <span class="label">Body Fat %:</span> <div><b id="body_data">{vb:raw userinfo.field15}</b><span class="lbs_font"> %</span></div> <vb:else /> <span class="label">Body Fat %:</span> <div><b id="body_data">--</b><span class="lbs_font"> %</span></div> </vb:if> </div> </div> |
#23
|
|||
|
|||
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.
|
#24
|
||||
|
||||
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?
|
#25
|
|||
|
|||
Does it still happen if you disable the new plugin?
|
#27
|
|||
|
|||
Glad you figured it out. I should just not reply at all when people ask html questions.
|
#28
|
||||
|
||||
Hi,
Was wondering if you know how to do math equations in html template just simple things like times, divide, etc ? |
#29
|
|||
|
|||
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. |
#30
|
||||
|
||||
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}} |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|