View unanswered posts | View active topics It is currently Thu Dec 14, 2017 12:22 pm



Reply to topic  [ 2 posts ] 
 Help me with code; I am new here 
Author Message
Junior Member

Joined: Sat Feb 05, 2005 7:17 pm
Posts: 1
Post 
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
Report this post
Profile
Junior Member

Joined: Wed Feb 16, 2005 10:34 pm
Posts: 5
Post 
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
Report this post
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 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

Search for:
Jump to:  
cron
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.