 |
|
 |
Main Menu |
|
 |
Forums |
|
 |
Programming Contest |
|
 |
Documentation
|
|
 |
Partner
Sites |
|
 |
Sponsors |
|
 |
|
|
Register •
FAQ
• Search • Login
|
|
Page 1 of 1
|
[ 2 posts ] |
|
Help me with code; I am new here
Author |
Message |
PRAYINGMANTIS155
Junior Member
Joined: Sat Feb 05, 2005 7:17 pm Posts: 1
|
I want to know this to use on another forum. How can I make a picture that says how many posts until a rank up and it changes everytime I post? Can anybody tell me the code?
|
Sat Feb 05, 2005 7:39 pm |
|
 |
humakt
Junior Member
Joined: Wed Feb 16, 2005 10:34 pm Posts: 5
|
You can use PHP function imagecreate but I dont recommend you to do that. The problem is if you have many accesses. This kind of "creation on the spot" can ask a lot from your computer... Also, you must have PHP with GD support...
The simplest thing you can do is making a small picture of each numbers from 0 to 9. After that, use something like that (I will assume that the number of post is $nbrPost)
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"; echo "<tr>"; for ($i=0; $i<strlen($nbrPost); $i++){ $number=substr($nbrPost,$i,1); echo "<td><img border=\"0\" src=\"/images/".$number.".gif\"></td>"; } echo "</tr>"; echo "</table>";
|
Fri Feb 18, 2005 6:40 am |
|
 |
|
|
Page 1 of 1
|
[ 2 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 0 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|
|
|