3
Contributors
3
Replies
5
Views
8 Years
Discussion Span
Last Post by diafol
0

It is simple, just like a grading system you assign each member/user a category base on his ranking and then print the appropriate image for his category. e.g if you are a newbie then the image that will be printed has one green start etc etc.

0

It is simple, just like a grading system you assign each member/user a category base on his ranking and then print the appropriate image for his category. e.g if you are a newbie then the image that will be printed has one green start etc etc.

if u have any sample code ....plz send me

0

I suggest using css rules referenced via classname for this, e.g.

<p class="user star_<?php echo $no_stars;?>"><?php echo $username;?></p>

Then in your css - this is a very rough example, just to give you an idea:

.user{
   padding-left: 20px;
   background-repeat: none;
}
.star_1{
 background-image: url(images/star1.gif);
}
.star_2{
 background-image: url(images/star2.gif);
}

etc etc

If you need to know how to extract personal data from the user's record in a db - see some tutorials.

Edited by diafol: dropped an 'n'

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.