Image Code Share Box

Discussion in 'PHP' started by DamDanger, May 8, 2008.

  1. #1
    I am looking for the code that will autograb the image and put in the code for people to post in their blogs or myspace etc.

    I am specifically looking for the code for Wordpress just like the box that gives you the html on http://icanhascheezburger.com/

    I need help badly, i dont know the specific name for what the textarea/code display is.. Please let me know.
     
    DamDanger, May 8, 2008 IP
  2. PowerExtreme

    PowerExtreme Banned

    Messages:
    2,118
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    0
    #2
    do u want auto copy or auto select all
     
    PowerExtreme, May 8, 2008 IP
  3. DamDanger

    DamDanger Peon

    Messages:
    129
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    An auto copy, i basically just want the box to auto read an image and put out the html for people to post it on their site etc
     
    DamDanger, May 8, 2008 IP
  4. decepti0n

    decepti0n Peon

    Messages:
    519
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #4
    <input type="text" value="whateveryouwanthere"/>?
     
    decepti0n, May 8, 2008 IP
  5. PowerExtreme

    PowerExtreme Banned

    Messages:
    2,118
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    0
    #5
    He doesnt want this ... He wants the code to get auto copied
     
    PowerExtreme, May 8, 2008 IP
  6. decepti0n

    decepti0n Peon

    Messages:
    519
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I don't really understand the autocopy part I guess... if you want it auto selected, you can use javascript, if you want the textbox copied to the clipboard, you'd have to use flash
     
    decepti0n, May 9, 2008 IP
  7. DamDanger

    DamDanger Peon

    Messages:
    129
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    It can be done, i have all of the script except for the tiny piece of code to call on the file or url in the post. Here is where i am at

    <textarea onClick=”this.select();” style=”width:350px;height:100px;font-family:tahoma;font-size:12px;” readonly>
    <a href=”<?php the_permalink(); ?>” title=”<?php the_title(); ?>“>
    <img <?php echo $src ?>" alt="<?php the_title(); ?>" /></a></textarea>
    PHP:
    The only part of the code that i cant get to work is the
    <?php echo $src ?>
    I need the proper code to call upon the image or url inside of the post on Wordpress
     
    DamDanger, May 9, 2008 IP
  8. DamDanger

    DamDanger Peon

    Messages:
    129
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Anyone else willing to try and help:)
     
    DamDanger, May 10, 2008 IP