Results 1 to 9 of 9

Thread: how to;

  1. #1
    Join Date
    Sep 2006
    Location
    Turn around.
    Posts
    954
    Tokens
    0

    Default how to;

    make a javascript page so you can drag pictures onto a bg then people can save it onto there computer?

  2. #2
    Join Date
    Aug 2004
    Location
    bristol
    Posts
    3,799
    Tokens
    0

    Latest Awards:

    Default

    The background of what?
    kinda quit.

  3. #3
    Join Date
    Sep 2006
    Location
    Turn around.
    Posts
    954
    Tokens
    0

    Default

    like, if i have like a custom sig, theres renders, they can add pictures, then save then add there own text, etc.

    so you can drag a pic onto a custom bg.

  4. #4
    Join Date
    Aug 2004
    Location
    bristol
    Posts
    3,799
    Tokens
    0

    Latest Awards:

    Default

    Is the picture something the user uploads? Or do you have various images/backgrounds which they can choose from?
    kinda quit.

  5. #5
    Join Date
    Sep 2006
    Location
    Turn around.
    Posts
    954
    Tokens
    0

    Default

    they can't upload, theres just one image and you can drag the images on the side onto the sig. pic/w.e

  6. #6
    Join Date
    Aug 2004
    Location
    bristol
    Posts
    3,799
    Tokens
    0

    Latest Awards:

    Default

    signature_creator.php:

    PHP Code:
    <?php

      $images
    [one] = 'imageOne.gif';
      
    $images[two] = 'imageTwo.gif';
      
    $images[three] = 'imageThree.gif';

      if(
    $_SERVER['PATH_INFO']=='/download') {
        if(!
    is_numeric($_POST[position_y]) || !is_numeric($_POST[position_x])) die('ERROR LOL!');
        if(!
    $im imagecreatefromgif($images[$_POST[image]])) die('ERROR LOL!');
        
    $bg imagecreatefromgif('signature.gif');
        list(
    $imw$imh) = getimagesize($images[$_POST[image]]);
        
    imagecopymerge($bg$im$_POST[position_x], $_POST[position_y], 00$imw$imh100);
        
    header('Content-Type: image/gif');
        
    header ("Content-Disposition: attachment; filename=sig.gif");
        
    imagegif($bg);
        exit;
      }

    ?>
    <html>
    <head>

      <title>Signature Editor</title>

    </head>
    <body style="text-align: center;">

      <form method="POST" action="signature_creator.php/download">

        Select your image: <br />
        <input name="image" value="one" type="radio" /> <img src="imageOne.gif" /> <br />
        <input name="image" value="two" type="radio" /> <img src="imageTwo.gif" /> <br />
        <input name="image" value="three" type="radio" /> <img src="imageThree.gif" /> <br />

        <hr /><br />

        Click to position image & download signature: <br />
        <input type="image" name="position" src="signature.gif" >

      </form>

    </body>
    </html>
    I haven't tested it, and I'm not sure how secure it is.
    Last edited by nets; 27-09-2006 at 11:58 PM.
    kinda quit.

  7. #7
    Join Date
    Sep 2006
    Location
    Turn around.
    Posts
    954
    Tokens
    0

    Default

    cheers dude, i'll test it later today.

  8. #8
    Join Date
    Sep 2006
    Location
    Manchester -
    Posts
    194
    Tokens
    0

    Default

    Make a .swf?

  9. #9
    Join Date
    Sep 2006
    Location
    Turn around.
    Posts
    954
    Tokens
    0

    Default

    i would have to actionscript, i'm not very good with actionscripting, i need a easyier way.

Posting Permissions

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