crazy idea but sure its possible

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    crazy idea but sure its possible

    hi guys .am sure this is possible but i have no idea what to look for to do it.

    lets say i want to add a large image with lets say how many registered users i have or how many online there is .instead of it being in text format.

    how would i go about it.

    cheers
    Wapchat4u


    Topsites4u

    #2
    look at the id card in ravingwap script, that showed how many posts a user had and what rank they were
    don't see why it can't be modded to show online users and what not

    Comment


      #3
      amy ave found some code but am getting errors using it
      Code:
      // load the image from the file specified:
      $im = imagecreatefromgif("../images/block.gif");
      // if there's an error, stop processing the page:
      if(!$im)
      {
      die("");
      }
      
      // define some colours to use with the image
      $yellow = imagecolorallocate($im, 255, 255, 0);
      $black = imagecolorallocate($im, 0, 0, 0);
      
      // get the width and the height of the image
      $width = imagesx($im);
      $height = imagesy($im);
      
      // draw a black rectangle across the bottom, say, 20 pixels of the image:
      imagefilledrectangle($im, 0, ($height-20) , $width, $height, $black);
      
      // now we want to write in the centre of the rectangle:
      $font = 4; // store the int ID of the system font we're using in $font
      
      $text = "wapchat4u.com"; // store the text we're going to write in $text
      
      // calculate the left position of the text:
      $leftTextPos = ( $width - imagefontwidth($font)*strlen($text) )/2;
      // finally, write the string:
      imagestring($im, $font, $leftTextPos, $height-18, $text, $yellow);
      
      // output the image
      // tell the browser what we're sending it
      Header('Content-type: image/gif');
      // output the image as a png
      imagegif($im);
      
      // tidy up
      imagedestroy($im);
      Wapchat4u


      Topsites4u

      Comment


        #4
        find water mark script with GD its on Coding talk search a bit
        then watermark ur registered or online users on any image
        bt u wil have to code something so it can dynamically watermark on image

        Comment


          #5
          this is the error i get . infact the error is in the image as i cant copy the text .

          The image http://wapchat4u.com/myfile.php cannot be displayed as it has errors.

          thats what it says but as i say that is a image in itself ??

          confused
          Last edited by nclemale36; 16.08.11, 21:36. Reason: cos
          Wapchat4u


          Topsites4u

          Comment

          Working...
          X