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.
Attachment Extension 1.4
This discussion has been closed.
Comments
var fileLoadingImage = "/vanilla/extensions/Attachments/lightbox/images/loading.gif"; var fileBottomNavCloseImage = "/vanilla/extensions/Attachments/lightbox/images/closelabel.gif";
If your forum is in a folder called say "forum" rather than a "vanilla" you'll have to change the image path in lightbox.js to fit. If anyone can get a relative path to work - it just didn't want to when I tried.
Good info on BBINsertBar: don't know exactly what conflicts, but if it can be achieved using the functions provided by prototype, then it could be made conflict free.
ok. one problem is solved
$Head->AddScript('blah.js?root=' . urlencode($this->Context->Configuration['WEB_ROOT']))
and then use some simple code such as this to read the querystring from inside the JS.
When i post a new comment the browser loads and loads and loads... and nothing happens... the original file is uploaded to uploads/ but the thumbs file isn't created... I've tried it with gif and png...
I will look, but I think the gd function is enabled...
yes it's enabled and it's version: 2.1.7
support for gif, png and jpg is also enabled
Some time ago I created a project to split a pdf file to single pages and create a jpg out of the first pdf page, but I don't remember how it worked,... but I can look. Maybe it's simple to include
edit: no, it can not be the cause of this error... hm...
When I try to upload a png or gif file i get the following error:
______________________
An error occurred while attempting to copy the source image "/www/htdocs/w006363a/vanilla/uploads/25.Logo.gif". Your version of php (4.4.1) may not have jpeg support.
______________________
only with jpg it works.
And when I upload an png or gif i get this error and the topic /comment is also created with the big image, and if the big image is for example 1600x1200px it destroys the complete layout...
another idea: why are there for example gif and GIF in the array, why don't use the strtolower function before checking to right filetypes...
if i enable the bbinsertbar the thickbox won't work. I try to find the error...
You can download the new BBInsertBar 0.1.4 from the add-ons directory.
It was the
$Context->BodyAttributes .= " onload=\"formatselectchanged()\"";
now i removed and replaced it and the thickbox works, don't know why...