1.8.x

Post Goals

Submitted by Nasyr, , Thread ID: 24206

Thread Closed

RE: Post Goals

#14
25-11-2016, 12:45 PM
linkzy Wrote:
For getting a progress bar, follow this -
after line 85. add
PHP Code:
<tr>
  <
td class="trow1" colspan=2>
   <
div style="background:grey; background-color: #cccccc; border: 1px solid black; width:100%; margin-top: 2px;">
     <
div style="background:green;background-color: #008040; color: white; font-weight:bold; max-width:100%; width:{$widthpercent}%; height:18px;">
      {
$fetch}/{$postgoal}
     </
div>
   </
div>
    
  </
td>
  
</
tr

then in line 133 -
add
PHP Code:
//Percentage count for progress bar
 
$widthpercent = ($fetch $postgoal) * 100


The result -
[Image: ca1d69c09b9a4dbd9043fad79c604326.png]


Check what i have posted. Modify the code/style according to your will.

Damn bro! Thank you so much!

Users browsing this thread: 3 Guest(s)