1.8.x

Post Goals

Submitted by Nasyr, , Thread ID: 24206

Thread Closed

RE: Post Goals

This post was last modified: 25-11-2016, 12:47 PM by linkzy
#11
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]

25-11-2016, 06:00 AM
KingNeo Wrote:
I already have this plugin and this doesn't have a goal bar unlike what you said. :/

Check what i have posted. Modify the code/style according to your will.
| A | v4hl| Addicted | Senpai | Sui | Sensei | H | fdigl |



Users browsing this thread: 6 Guest(s)