I need attachments for 2.0... heh... most of us do. Who can do it... and what's your bid? Online or offline offers will be considered.
It would be even cooler if it could handle "link attachments" (read: embeds) as well (raw flickr URLs, youtube and vimeo URLs => embeds, etc)
Somewhere, one of the devs mentioned that most of the necessary code for image attachments is *already written* in the v2.0 avatar handler.
Edited to add: Check out the
UploadFile addon by
@Tim here: http://vanillaforums.org/addon/607/file-upload
1 • •
Comments
http://pastebin.com/qxFtj2Xt
Just add this to the js/global.js
This thing is gonna add a button next to the Save Draft.
And if the image is too big, i just use this:
http://pastebin.com/ryesw1fU
This gonna resize the image, and put a Full screen link after the image
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •But, your js is cool for image embeds... and one could easily add some regexp to strip the actual media from flickr / youtube / vimeo using js like yours as a basis (the "magic" plugin sort of does this for youtube videos). I'll mess with it and see what I can do.
...maybe (does vanilla core include jQuery?) something like the WP YoxView plugin, or the (http://jqueryui.com/demos/dialog/) jquery ui to give us a nice little "add stuff to this post" widget that can eventually include the attachments plugin.
- Spam
- Abuse
- Troll
1 • Off Topic Insightful Awesome LOL •^^Here is the Code Bounty
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •it has a nice popup window looking, and it has validation:)
http://pastebin.com/05d9FJx3
just add this code at the end of the js/global.js file, before the });
- Spam
- Abuse
- Troll
3 • Off Topic Insightful Awesome LOL •I'll owe the devs something as well when the "attachments" code gets done.
btw: is it just me, or do all comment permalinks link somewhere beyond the event horizon? I had to click the above link then google the title to find the thread so I could read the comment. o_0?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •confirm?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Install:
1. add this js script to the bottom of the js/global.js, before the });
http://pastebin.com/qrSLXNHj
2. add this js script to the very bottom of the js/global.js:
http://laboratorium.0xab.cd/jquery/fieldselection/0.2.3-test/jquery-fieldselection.pack.js
Its works great with selected text also
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •To Do:
1) The json call for the flickr image takes a second or two, and there should be a "waiting" image on the dialog box.
2) The error .append also does not work(?!) (really should use the jquery dialog ui http://jqueryui.com/demos/dialog/ .. maybe I'll get around to doing that)
But, all in all, pretty sweet...
http://pastebin.com/QvXuMHi9
@passatgt: thanks for the inspiration. See it in action / test it out.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •paste this after the api_key variable:
$(".copy").append('<span class="TinyProgress');and paste this after the error append:
$('.TinyProgress').remove();i dont try it out, but is should work
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •var commentTabshtml = '<div class="MessageForm" style="border:0px;margin:0px;"><div class="Tabs CommentTabs"><ul></ul></div></div>';
$("form#Form_Discussion .Category").after(commentTabshtml);
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Vanilla Forums Senior Developer [GitHub, Twitter, About.me]
- Spam
- Abuse
- Troll
1 • Off Topic Insightful Awesome LOL •The last piece of my V1->V2 puzzle is getting my V1 attachments images loaded into V2. Help!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •http://vanillaforums.org/discussion/12782/fileupload-1.1-released
...and, right... making an import script would be another issue altogether.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •