Timeline for Add new "Insert Into Post" button with another function
Current License: CC BY-SA 2.5
22 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 4, 2011 at 20:06 | comment | added | wyrfel | @PHearst: I guess you could try that, however, i'm wondering why the check wouldn't work? | |
Mar 3, 2011 at 7:49 | comment | added | wyrfel | @PHearst: See edits. | |
Mar 3, 2011 at 7:44 | history | edited | wyrfel | CC BY-SA 2.5 |
also fix the video url
|
Feb 26, 2011 at 0:29 | comment | added | wyrfel | @PHearst: Finally. ;-) Glad it's working out for you...i might have use for it later, meself. | |
Feb 25, 2011 at 23:23 | vote | accept | PHearst | ||
Feb 25, 2011 at 14:45 | comment | added | wyrfel | @PHearst: I've added another one. Give it a shot. Also the second one should work on the 'From URL' tab...but it also had a typo that i just corrected. | |
Feb 25, 2011 at 14:44 | history | edited | wyrfel | CC BY-SA 2.5 |
added 456 characters in body
|
Feb 24, 2011 at 19:31 | history | edited | wyrfel | CC BY-SA 2.5 |
added 228 characters in body
|
Feb 24, 2011 at 19:26 | comment | added | wyrfel |
I think you're right...there's another one: apply_filters('video_send_to_editor_url', $html, $href, $title) .
|
|
Feb 24, 2011 at 14:00 | comment | added | wyrfel | @PHearst: ok, see edit, i summarized it into a complete code block. Does this work? If not, what specifically doesn't? | |
Feb 24, 2011 at 13:59 | history | edited | wyrfel | CC BY-SA 2.5 |
added 651 characters in body
|
Feb 23, 2011 at 21:26 | comment | added | wyrfel | @PHearst: No, that wasn't because of that line, it was because you hadn't fetched the attachment record before and hence your post_mime_type property was empty. | |
Feb 23, 2011 at 15:45 | comment | added | wyrfel |
@PHearst: Looks like i confused you. Change 6th line to if (substr($mime_type, 0, 5) == 'video') { .
|
|
Feb 23, 2011 at 8:18 | comment | added | wyrfel |
@PHearst: Just stack my snippets together replacing the ... with the next snippet...and in the last one with your $html = '[video src="'.$url.'"]'; line. That should do it. If you don't implement the option, remove that part from my if... clause.
|
|
Feb 22, 2011 at 16:57 | history | edited | wyrfel | CC BY-SA 2.5 |
added 9 characters in body
|
Feb 22, 2011 at 16:36 | comment | added | wyrfel | @PHearst: Also added a check for a fictive 'use_video_shorty_on_insert' option as suggested before (which should be boolean). | |
Feb 22, 2011 at 16:35 | history | edited | wyrfel | CC BY-SA 2.5 |
added 47 characters in body; deleted 3 characters in body
|
Feb 22, 2011 at 16:29 | comment | added | wyrfel | @PHearst: see new edit...you can't just reference $post without fetching it first...you were close, though, but the filter only get's the $id, which is the 'post_id' of your attachment, so once you got the complete post (i called it $attachment), you can then reference the post_mime_type property. | |
Feb 22, 2011 at 16:28 | history | edited | wyrfel | CC BY-SA 2.5 |
added 211 characters in body
|
Feb 22, 2011 at 10:34 | comment | added | wyrfel | @PHearst see edits | |
Feb 22, 2011 at 10:19 | history | edited | wyrfel | CC BY-SA 2.5 |
add; added 3 characters in body
|
Feb 19, 2011 at 15:40 | history | answered | wyrfel | CC BY-SA 2.5 |