Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Thumbnail
Hey,
Is there an addon, or a way to allow the user to upload an image, the have the image displayed by the discussion listing? I've downloaded the attachment extension, but I'm so new to Vanilla, I had no idea how to mod it to show the thumbnail on the discussion(grid I think its called) page.
Any help would be much appreciated. Thanks. :)
0
This discussion has been closed.
Comments
You should move this into the "Addon Requests" category, because it will require a bit more than a little tweak to accomplish this. (It needs to be its own addon)
Here's the documentation on creating addons. If you do get this figured out and working; be sure to upload it to the addon repository
You also may find that it conflicts with multi file upload (if you go the attachments addon route), so you may consider not using the attachments addon (do what works) but you should take a look at its code for ideas. (such as making it an admin option as to where the files are uploaded to; and storing the path to the thumbnails in the db; etc.)
Also, since you're new to Vanilla, you probably don't know much about dictionary definitions and languages. Look at the documentation for info on that, and also look at some of the other (preferably the more recent ones) addons for examples.
you could look at what AccountPictures does to resize images when they're uploaded. (why do you need to keep the original full-size image?)
I think it does something with javascript. (may I suggest using mootools and the mootools addon instead of replicating the js [account pictures doesn't do this, but if you need to use any javascript in your addon, I would recommend doing it with one of the js library addons (mootools or jQuery), so that the same code isn't replicated in multiple addons])
I'll put this in a separate addon request.
EDIT: here it is.