1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Calling XenPorta2 $woptions

Discussion in 'XenForo Questions and Support' started by 3v1LD34D, Aug 5, 2015.

Tags:
Thread Status:
Not open for further replies.
  1. 3v1LD34D

    3v1LD34D Member

    Hi,

    I know the basics for a few languages but I'm by no means an expert.

    In a nutshell what I want to do is call a variable in a specific SwOption spin box from some html contained in a content box of the same widget. I want to use this number to represent the percent in a progress bar.

    <div class="p-bar category-1234" data-category_id="1234" data-category_title="progressbar1234">
    <div class='p-bar-completed' style='width: <VAR>%;'></div>
    <div class='p-bar-cap' style='left: 100%; display: none;'></div>
    <div class='p-bar-shadow' style='left: 100%; display: none;'></div>
    <div class='p-bar-shadow2' style='left: 100%; display: none;'></div>
    <div class='p-bar-end'></div>
    <div class='p-bar-end-black'></div>
    <div class='done'></div>
    </div>


    So essentially when the spinbox is changed the bars will change also.
    Help for a beginner?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

Thread Status:
Not open for further replies.

Share This Page