Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19
  1. #11
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Text colour and stroke you mean.

  2. #12
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    Ahhh, if you do mean stroke then I am not sure how to do it or even if it is posible.

    Quote Originally Posted by Dunko View Post
    Text colour and stroke you mean.

  3. #13
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    I get:
    Code:
    <br />
    <b>Fatal error</b>: Call to undefined function: imagettftext() in <b>/home/revision/public_html/generator/gen.php</b> on line <b>20</b><br />
    www.revisionarea.info/generator is the link...

    And ahh ok NVM about the stroke Ill try the colour bits when I get this working...

    Index.php:
    PHP Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <
    html xmlns="http://www.w3.org/1999/xhtml">
    <
    head>
    <
    meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <
    title>Untitled Document</title>
    <
    style type="text/css">
    <!--
    .
    style1 {
     
    font-familyVerdanaArialHelveticasans-serif;
     
    font-size10px;
     
    font-weightbold;
    }
    .
    style2 {font-size10pxfont-familyVerdanaArialHelveticasans-serif;}
    input font-familyVerdanaArialHelveticasans-seriffont-size10px; }
    select font-familyVerdanaArialHelveticasans-seriffont-size10px; }
    -->
    </
    style>
    </
    head>
    <
    body>
    <
    p><span class="style1">Text Generator using fonts!
      <
    br>
    </
    span><span class="style2">Coded by <strong>***********.co.uk</strong></span><span class="style2"><br>
      <
    br>
    </
    span></p>
     <
    form method="post" action="gen.php">
      <
    div align="center" style="border: dashed 1px; background-color: #F7F7F7">
      <
    p><span class="style1">Text:</span><br>
          <
    input type="text" name="text">
          <
    br />
          <
    br />
          <
    span class="style1">Font:</span><br>
          <
    select name="font">
          <
    option value="habbo" selected="selected">Habbo Original Font</option>
          </
    select>
          <
    br />
          <
    br />
          <
    input name="Submit" type="submit" class="style2" value="Submit">    </p>
     </
    form>
    <
    div align="center">
      <
    p><span class="style2">Provided by </span><span class="style1">TFN::<em>TeeGen</em></span><em class="style2"> - </em><span class="style2">Created by<strong***********.co.uk ;) </strong><strong><br />
      </
    strong></span></p>
    </
    div>
    </
    body>
    </
    html
    Gen.php
    PHP Code:
    <?php
    // Set the content-type
    header("Content-type: image/gif");
    // Create the image
    $im imagecreatetruecolor(40030);
    // Create some colors
    $white imagecolorallocate($im255255255);
    $grey imagecolorallocate($im128128128);
    $black imagecolorallocate($im000);
    imagefilledrectangle($im0039929$white);
    // The text to draw
    $text $_POST['text'];
    // Replace path by your own font path
    $font 'habbo.ttf';
    // Add some shadow to the text
    imagettftext($im2001121$grey$font$text);
    // Add the text
    imagettftext($im2001020$black$font$text);
    $rand rand(060000);
    // Using imagepng() results in clearer text compared with imagejpeg()
    imagegif($im,'$rand.gif');
    imagedestroy($im);
    ?>

    Im only just starting to learn PHP bit by bit so I am a complete noob
    Last edited by Recursion; 30-03-2007 at 08:31 PM.
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  4. #14
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Quote Originally Posted by Tomm View Post
    Ahhh, if you do mean stroke then I am not sure how to do it or even if it is posible.
    Ye, the only GD function ive come along for stroke is like a rectangle stroke

  5. #15
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    Check my above post, Just above Dunko's
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  6. #16
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    You need the GD libary installed.

    If you are on shared hosting then I SERIOUSLY recommend you move hosts as the GD libary is standard.

  7. #17
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    Ahh ok, I didn't think Speed-networks had GD -.-

    on 1and1 it just comes up with a blank page...

    On Eclipse.co.uk hosting it just comes up with
    Code:
    The Image cannot be displayed because it contains errors
    Last edited by Recursion; 30-03-2007 at 08:39 PM.
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  8. #18
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    1and1 suck to start with, they probs aint even heard of GD.

    Drop me a PM with the script and ill test it on my server (GD is fully working, check out my msn sig ^^)

  9. #19
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    1and1 do have GD, they are hosting my MSN Sig
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •