WordPress Hack: Upload From Post

This is a geeky thing, but I take a lot of code from the WordPress community and since I cobbled together a crappy solution I figured that I might as well share it.

Doing something as simple as adding an image is a pain in the ass. There’s an upload screen built in but, you have to leave the post to get there (or open a new window). What I did was make a pop-up link on the posting screen. When I click that it lets me upload and get back to my post. This is a read-me of sorts:

INSTALL:

1. Backup admin-header, edit-form, and edit-form-advanced,

2. Copy the 5 included files to /wp-admin

3. Done.

Changing of link layout or styles can be done in edit-form and edit-form advanced, in the Quicktag section

FILES:

1. _admin-header_: This contains the addition of Javascript to allow pop-ups of controlled size.

2. _admin-header-minimal_: this is a minimal header to keep the upload box simple

3. _edit-form_: This is where the link to the upload dialog is (in the Quicktag div)

4. _edit-form-advanced_: same as above, just for Advanced Posts

5. _upload-minimal_: This is a minimal version of upload.php to keep the upload box simple.

WordPress Post Upload Hack

RSS feed | Trackback URI

1 Comment »

2009-11-05 00:30:47

Very Recently, there has been a great deal of investigation by the
American FTC against blogs and website owners
for not stating their advertising profits, or existing
relationships with advertising agencies.

What are your personal ideas about how this could hurt
the blogging community?

 
Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.

email indi AT indi.ca.


Recent Comments


Thanamalwila (Photos) (17)

Kirigalpoththa: You could have easily said that those lights are of gods. half a dozen idiots will believe it.. Beautiful pictures.

Say What: The fact is, any moron can go by bus. I do it almost daily, because I am a moron, who isn’t that well off. And then we have a bunch of rich kids who feel just a tad guilty. I like this guy and his posh friends who think...

Development In The Hood (9)

INK: It’s not exactly borrowing from the banking system. It’s informal borrowing. Could be from a cousin or a guy at the three wheel stand who lends money at crazy interest rates, like 10% per month or so. These guys who lend money are...

indi: How are the trishaw drivers in my neighborhood borrowing money? They deffa don’t have credit cards.

Jack Point: I don’t know if what you describe is middle class, sounds more like working class. Things have definitely improved since mid 2010. The drivers have been a cut in vehicle taxes, cuts in taxes on household appliances and lower...

Yet I Still Like M.I.A. (1)

Jack Point: That’s what rappers do. Create controversy to sell albums. Its pretty hard to stand out from the crowd otherwise. I would hesitate to apply the appellation ‘great 217; to any artist of the 1990′s. Beatles, Abba,...

Jeremy Lin For The Win (2)

INK: Wow. Enjoyed that man. He’s magic! thanks for the post. Took me back to my playing days.

the way of the dodo: Wasn’t there some other tall chinese dude who came before this guy.

Maldivian Winter: After The Coup (Photo/Video) (1)

Pasan Wijesinghe: President dude is hurt. :( Poor fellow.

Nawam Maha Perahera Today (17)

N: You have to eat a whole load of beans…the n you can be gassy like Omr.

Social Media


Twitter
Facebook