Counting total post count and generating ranking stars based on it
This is something quite similiar to:
I want to count the post count of a user and based on that post count show some star or two in their profile.
So the higher their post count they more stars they have shown.
In total the max is 6 stars.
Please see this fiddle:
The things we need to make happen;
Let jquery count the post count and if its higher then x add class or remove class to one of the star boxes.
- <dd class="profile-posts"><strong>Posts:</strong>
- <a href="./search.php?author_id=2&sr=posts" class="external"> 42 </a>
- </dd>
So lets do the run down:
FIRST STAR condition
show 1 star in profile when equals 0 posts and the star is color gray;
SECOND STAR condition
show when 15 posts and total stars shown is 2
THIrD STAR condition
show when 45 posts and total stars shown is 3
Fourth STAR condition
show when 75 posts and total stars shown is 4
Fifth STAR condition
show when 100 posts and total stars shown is 5
Sixth STAR condition
show when 150 posts and total stars shown is 6