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


Sarath Fonseka And The Mahavamsa (1)

sack: “bloodthi rsty and unscrupulous would win” More cunning guy would win. Usually having blood thirst and being unscrupulous are not a guaranty for wining. A truly cunning cold blooded guy would do things which are blood thirsty and...

Why Does India Suck At The Olympics? (11)

the way of the dodo: That’s bollocks. Indian has produced at least a dozen fast bowlers over 140 in the past decade. The problem they have is thier bowlers breaking down with injuries and loosing pace. And what the fuck does consistent skin...

the way of the dodo: You can’t pull off stuff like that in places other than china because it’s raises a lot of human rights & child welfare issues.

Rohan: The answer is very simple: Very poor genes resulting in mixing of different races over 1000s of years has produced a nation of weak mongrels. Indians have no consistent skin color, height, build or physical appearance. Indians although have...

Unequal Marriage In Sri Lanka (The Foreign Kind) (18)

DK: My thanks to everyone – well, perhaps not Acro – who has contributed to this. I’ve learned a lot. As I’ve said in a previous string I’m Sri Lankan-born, lost SL citizenship because of prevailing laws at the time I...

New New Kottu (7)

Chavie: Thanks bro. :)

Chavie: Yeps, any combination of language/popula rity that you use to view a page can be used to obtain a feed. Let’s say you’re looking at Sinhala posts popular today: http://kottu.or g/si/today You can get the feed for that...

D: Can we get separate RSS feeds based on the language?

General Sarath Fonseka Out Soon? (12)

David Blacker: Nothing wrong with the Sinhalese being divided by politics rather than united by ethnicity. And yes, of course SL must cooperate with an international investigation if one is initiated. We can’t afford not to. The idea is to...

You’re Nobody Till (45)

Regewaypere2: Asortyment uzupe?nia Outcast przestrzenna uciecha przygodowa i klisza Setnie Speedway. Nu?e na godzin? poprzednio wschodem s?o?ca nieruchomosci odby? wspomnian? z wykorzystaniem Benwolia przechadzk? w gaju sykomorowym mamy w...

Sarath Fonseka And The Mahavamsa

The Mahavamsa (a history of Sri Lanka) is full of conflicts between generals and kings. Usually, the more bloodthirsty and unscrupulous would win. Our current (elected) ruler Mahinda Rajapaksa has had his own general conflicts, namely with one Sarath Fonseka. In the old days Fonseka would have staged a coup, as in literally try to cut of Mahinda’s head, and Mahinda would – if that failed – tie him to four elephants and split his parts asunder. Can’t do that shit anymore. Instead Fonseka ran for office and lost and Mahinda tossed him in jail.

Why Does India Suck At The Olympics?

Today on the morning show we talked about the Olympics, namely China’s emerging dominance. For me the bigger question is India. Why does India suck so much? In 2008 the US won 110 medals, China won 100 and India won… 3. India has over a billion people, some economic clout and is by all counts an emerging superpower, but they suck at the Olympics. Why?

New New Kottu

Janith has updated Kottu with rims and shit. Seriously, it looks pretty good. You could say the desktop look is cosmetic, but check out the mobile. Kottu now looks like an app with settings and menus and such. The biggest problem with K2 is me, ie, it now takes me up to a month to respond to emails. OMG I’m scared of my email. But Janith’s done this code and design update all by himself and it looks pretty good. Check it out. There was one bug with the previous page link. Lettuce know if there’s any more.

Miss Travel. Alternately, Mistravel

This is highly dubious. Miss Travel is a travel/social networking site that connects ‘Generous’ and ‘Attractive’ travelers. To, like, travel together, I guess. It all seems a bit like arranged prostitution and trafficking. This is part of a broader online trend to connect rich men to younger, attractive women. Sites like seekingarrangement.com connects women to ‘sugar daddies’ already. I guess Miss Travel is just taking that trend international. Wait, I checked, it’s the same guy doing both.