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.
Add-On Request: DiscussionImage
This discussion has been closed.
Comments
U enter an image tag like this
<img src="http://localhost/vanilla/extensions/InlineImages/image.php?AttachmentID=2" />
If u want the ability to choose which image becomes the discussion image, then u will have to specify an id="DiscussionImage". that will make it hard for the users to add. no one likes to add ids or classes, nor do they know how. PLus can bbcode add ids or classes.
the way i have right now is that it picks the very first image. drawback being that the image might be a smiley or other none important image.
Look for an image size. if isn't a tiny smiley then make it the discussion image, if it is then find the next one in line. this will make things slower.
WYSIWYG have the ability to add ids and classes so they are on the clear.
restricting which category will have display image will make things after
Now i'm seeing the logic behind Wanderer mockup. now it makes sense to do it the way wanderer suggested.
I can always add the display image in the database, which will make things lot faster. right now It pulls the images from the first comment on the fly, which can get slow if u have lot of images in the first comment
there is a text filed where u add the url of the image. click save and ur done. you can have any number of pictures in ur comments, just pick the best one and enter it below
Now since they do not even have a website how will they be uploading these images.
plus as an extension I have to make it for general audience as well. people who want bit more flexibility.
u should make it a two step process
1) Upload images of your pet. You can upload as many as you feel like
attachment with inline images
2) Pick the best picture and enter its ID below. This image will appear on the front page
Discussion image extension
will ur users be using a wysiwyg or no. I need to know, cause FCKeditor has uploading capabilities as well, then u won't need attacchment and inline images for ur project.
Plus u should simplify ur discussions list perhaps make it a two column grid layout.
this is turning into Zenphoto. :S
eventually i will end up with the interface by Wanderer.
Posted: Saturday, 14 April 2007 at 1:22PM
I was looking for exactly this kind of extension.
A small image/icon (same size as the user icon) would definietely look best. Acctually I would like it exactly same as the Category Icon Addon. Just a small icon on the left side of the title (exatly same as the user icon is left to the username). This icon should appear on the discussions overview page and on the discussion page. Ofcourse it would be great if the user who opens the discussion could upload the icon straight to the server and this icon would get scaled to the correct icon size (same way the Account Pictures Addon does it.
But I'm sure this would mean a lot of work ...
Posted: Wednesday, 27 June 2007 at 7:41AM
Other wise,
- Would like the image to be before the topic title (make the extension insert the image before the title tag?), could be a php edit option for this? (look at http://forums.cgsociety.org/forumdisplay.php?f=133)
- Ability for the extension to work with Discussion Overview extension.
Apart from that great extension! Haven't encounter any problems yet.
I will be changing it from what you see above. the Discussion page won't have a discussion layout but rather a gallery layout.
Looking at gallery demo sites to see how galleries are presented.