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.
I started off not really liking General Sarath Fonseka, him being part of the aggressive war effort. I didn’t support the war (largely cause I thought it would fail), and I thought Gotabhaya Rajapaksa and Fonseka were gleefully stomping everything. Fonseka even came out and said “I strongly believe that this country belongs to the Sinhalese but there are minority communities and we treat them like our people,” in 2008 (
General Sarath Fonseka was arrested on a bunch of trumped up charges, but mainly for daring to threaten Mahinda in a Presidential election. Despite his poor health, Fonseka was arrested in February 2010 and sentence to three years. Word on the street now, however, is that he’ll be released soon. Like any day now. President Mahinda Rajapaksa has told
I’ve been testing a lot of apps. A very interesting one is iPlayboy, from Playboy magazine. It’s bad porn but a good magazine, especially since you can read issues from its cultural heyday – the Mad Men era of the 60s.
I’m going to get back to blogging. I buy a shitload of stuff on my iPad. Not that I like spending money, and the exchange rate terrifies me, but it’s just so easy, and so good. For example, I’ve been reading comics again. Spiderman, and 
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?