WordPress Document Upload Plugin

upload_button_screenshot.jpg

This is the WordPress posting screen. I hacked a plugin that adds an ‘Upload’ icon at the top-right. When clicked the button pops-up a window that lets you upload papers, presentations, or images


This has nothing to do with Sri Lanka though it is intended for Sri Lankan clients. WordPress is the blogging software I use for everything. It has an elegant plugin architecture which I don’t understand. It is written in the simple PHP programming language, which I don’t know. Hence this is the worst plugin ever and it may explode the sun or give you seizures or whatever. What this lets you do is upload images, PDFs, Word Docs, whatever as you’re writing a blog post. Actually, all it really does is make a button, those features are built in. The code is stupid and you still have to copy-and-paste the link into the post manually. I took Martin Chlupac’s elegant IImage-Browser plugin and changed a few lines so that it pops up the WordPress Upload page instead. There is no other functionality, if you’re using Firefox tabs intelligently you can do the same thing. The code is stupid and you still have to copy-and-paste the link into the post manually. Please note that I haven’t really tested this, it’s active at LIRNEasia and one unlaunched site. I guess I’ll see if they break it.

*Install*:

# Download the plugin (Upload File Plugin)
# Copy the plugin and the ‘images’ folder to your Plugins folder
# Activate the plugin from the WordPress admin page

*Use*:

A document icon should appear at the top right when you write a new post. If you don’t upload the ‘images’ folder it’ll just say ‘Upload’ in text. Click it and upload your file in the pop-up window. Copy and paste the code back into your post. It doesn’t matter if you understand the HTML, it’s just a link to the file you’ve uploaded.

*Todo*

# Stop sucking
# Make the image link work for people with their blog in a subfolder. Right now the image won’t be found if you have your site in a subdirectory (like kottu.org/blog/). It degrades to text, but I’m sure it’s simple to ask WordPress for the real address using PHP [ bloginfo('wpurl) ]. I’m just, how do you say, lazy.

I can’t believe it took me two days to try stupid ideas and then end up editing like 4 lines of code. If somebody wants to AJAX it and add a sexy dialog to the Post page I’d pay for it, GPL’d (free for everybody else). Say, 40$, and it has to spit the code up into the post automatically. I basically need professional people comfortable with email to be able to upload documents easily. This plugin works, but an AJAX solution would mean they never have to look away from the Post screen. Fast and elegant, unlike this ghetto solution.

RSS feed | Trackback URI

3 Comments »

2005-06-09 05:31:34

I’m having a little problem installing the wysiwyg editor interface. I’ve uploaded everything & activated the plug in. But I’m not getting the wysiwyn editor interface in my Write panel.

I note you mention that there is an ‘image’ folder. I don’t see that in the download I got from yr. site. Is that the problem? Where would that folder be?

If not the problem, I just want to note that I placed the wysiwyg_v1 folder within my plugins folder. I didn’t first extract the files fr. wysiwyg_v1 & install them into the plugins folder. Is that an OK installation? Or should I take all files out of the wysiwyg_v1 folder & then place them in the plugins folder?

 
2005-06-09 05:32:27

Sorry, scratch that comment. I’m installing multiple plugins & got yours confused with another one. UGH!! Sorry.

 
Melissa
2006-07-01 01:25:04

I am not able to download the WordPress Document Upload Plugin. Is it no longer a viable plugin? Is there anything else out there like it? I desperately need one
Thank you

 
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