1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

WordPress plugin code

Discussion in 'Web Design & Development' started by NegativeKelvin, Jan 28, 2013.

Thread Status:
Not open for further replies.
Advertisement
  1. NegativeKelvin

    NegativeKelvin Thread Starter

    Joined:
    Apr 11, 2012
    Messages:
    298
    I'm currently working on a WordPress plugin, I have most of the code, but the part I'm having
    problems with is this:

    Code:
    <iframe onload="var url = document.getElementById("picbox_upload").contentDocument.body();" id="picbox_upload">
    I'm trying to get it to insert the URL variable into the post by pressing a button, so when you press something such as "Insert", it will add <img src="url"> into the post. If anyone could help, I'd appreciate it :)

    I'm also looking for the WordPress hook for adding a button to the posting menu.
     
  2. JiminSA

    JiminSA

    Joined:
    Dec 15, 2011
    Messages:
    3,323
    First Name:
    Jim
    Hi there BC. I know nothing of WP plugins, but your url needs a file type doesn't it?;)
     
  3. NegativeKelvin

    NegativeKelvin Thread Starter

    Joined:
    Apr 11, 2012
    Messages:
    298
    It's not a url, it's grabbing information from the iframe'd URL http://picbox.us/iframe_mini.php?mini=2 . This really isn't anything wordpress, this is just javascript for it.
    I'm terrible at programming javascript :p


    Edit: I've started a new quest on a different approach to this issue.
     
  4. JiminSA

    JiminSA

    Joined:
    Dec 15, 2011
    Messages:
    3,323
    First Name:
    Jim
    OK - sorry I couldn't help...
     
  5. NegativeKelvin

    NegativeKelvin Thread Starter

    Joined:
    Apr 11, 2012
    Messages:
    298
  6. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1087276

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice