![]() |
Raw Block Data? Responding variable to width change?
Hey there, everyone!
So I've been playing around with the vBExperience plugin, and I've hit a bit of a hard spot. I'm adjust the width of the progression bars, but unfortunately the part that would "fill in" to match the appropriate percentage isn't keeping up. Image: http://i.imgur.com/g6iInau.png I've taken a look into the code, and it seems the green part is responsible; Code:
<dt class="aboutme_left"> Thank you in advance! |
Without knowing vBExperience, one can hardly tell you more than: In a plugin. You need to find the plugin that registers that variable for the postbit (I assume) template.
Such questions are really better asked in the thread for that specific addon. |
Quote:
|
You know you can do math in templates? You may not even have to tamper with the PHP side of things at all.
If you want examples, just search your templates for {vb:math in AdminCP. Perhaps this will work for you? Code:
{vb:math {vb:raw block_data.xperience_levelp} * 1.3 - 2} |
Quote:
Edit: It doesn't seem to have worked. Thanks anyways! |
What did not work? What's the result of the equation (should be visible in the page source)?
|
The equation itself doesn't seem to pan out. I'd amended all necessary instances of the above line to match yours and the width still pulls to 1% = 1px.
I can PM you the forum link if that would help! |
Try this:
Replace Code:
width="{vb:raw block_data.xperience_levelp}" Code:
style="width: {vb:raw block_data.xperience_levelp}%;" |
All times are GMT. The time now is 01:14 PM. |
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:
|