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 |


RE: Post Goals

#12
Thanks bro.
But no need of to put ?php as per given your code.

RE: Post Goals

#13
i need this thank you

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!

RE: Post Goals

#15
26-11-2016, 07:38 AM
KingNeo Wrote:
Damn bro! Thank you so much!

Np. if you need anything else. Post in help section
| A | v4hl| Addicted | Senpai | Sui | Sensei | H | fdigl |


RE: Post Goals

#16
Nice need that plugin! :D
The crown makes you bigger, but not more powerful.

RE: Post Goals

#17
Wow ! exactly what i'm looking for Smile

thank you Wink

RE: Post Goals

#18
Thanks, I'll check it out.

RE: Post Goals

#19
Where it says Status: Not Reached... How can i add the color red to that text and for Reached Green?

RE: Post Goals

#20
needed this, thanks Smile

Users browsing this thread: 10 Guest(s)