How To Profile Status Bar In Php (just Like Linkedin Status Bar)
How can I develop Profile progress bar on completing profile, which is same as linkedin, through Php. And user completes his/her profile, the status percent(% increases). Thanks in
Solution 1:
For a progress bar to work you have to specify some criteria.
For example, on SO, if you go to Careers you will have on you profile a completeness report
.
Every part of the completeness report
has certain points or a certain percentage of total amount of points you can earn.
Based on your User Profile
criteria you can make that progress bar.
For example:
$hasCompletedSkill = 10;
$hasCompletedBooks = 15;
$maximumPoints = 100;
$percentage = ($hasCompletedSkill+$hasCompletedBooks)*$maximumPoints/100;
echo "
<div style='width:100px; background-color:white; height:30px; border:1px solid #000;'>
<div style='width:".$percentage."px; background-color:red; height:30px;'></div>
</div>";
It will output:
Post a Comment for "How To Profile Status Bar In Php (just Like Linkedin Status Bar)"