WordPress plugin code

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

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.
 

JiminSA

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

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.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

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 807,865 other people just like you!

Latest posts

Staff online

Members online

Top