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.
Attachments 2.0 and Inline Images 1.1
This discussion has been closed.
Comments
No images appear in the comment.. only .zip file.
View source:
... <li class="Attachment "><a href=""></a></li> <li class="Attachment "><a href=""></a></li> <li class="Attachment zip"><a href="http://localhost/vanilla/?PostBackAction=Download&AttachmentID=3">32.zip</a></li> ...
Tested running both PHP4 & PHP5... doesn't work!
Errors (PHP5):
Notice: Trying to get property of non-object in n:\home\localhost\www\vanilla\extensions\InlineImages\default.php on line 40 Notice: Trying to get property of non-object in n:\home\localhost\www\vanilla\extensions\Attachments\default.php on line 333 Notice: Trying to get property of non-object in n:\home\localhost\www\vanilla\extensions\Attachments\default.php on line 333 Notice: Trying to get property of non-object in n:\home\localhost\www\vanilla\extensions\Attachments\default.php on line 333
I'm runnig Attachments 2.0 and Inline Image 1.1 on Vanilla 1.0.3. Works fine, but one thing: Since I enabled Friendly URLs i get an error 404 when I try to add second attachment via edit message.
Bye
Tiggr
Just in case anyone else wants to do this, all you need to do is change line 34 from:
$ImageTag = '[Image_'.$Attachment->AttachmentID .']';
to:$ImageTag = '[image_'.$Attachment->AttachmentID .']';
Although I'd also recommend changing line 21 from:
$Context->Dictionary['InlineImagesNotes'] = 'These settings are specific to inline images. With inline images you can display image attachments directly into your comments by using [Image_%AttachmentID%]. If an image width exceeds the maximum width it will be automatically resized.';
to:$Context->Dictionary['InlineImagesNotes'] = 'These settings are specific to inline images. With inline images you can display image attachments directly into your comments by using [image_%AttachmentID%]. If an image width exceeds the maximum width it will be automatically resized.';
Both of these extremely minor changes just change the capital to a lower case
I'm using Vanilla 1.0.3 + Attachments 2.0 + Inline Image 1.1
Attachments 2.0 works fine but Inline Image doesn't for me :-( all I see is the alternative text with the name of the image... the response I get from /community/extensions/InlineImages/image.php?AttachmentID=## has content-length=0
UPDATE: well I think I've just found the error: the new constant IN_VANILLA is defined in appg/settings.php but the test
if (!defined('IN_VANILLA')) exit();
in image.php is before the include of settings.php so IN_VANILLA is never defined and the script always exits.Just move the test after
include('../../appg/settings.php');
and everything works fine
boagworld, Oct 1st 2006
I have the exact same problem! The problem shows when I activate Attachments 2.0... Pls help!I am getting a very strange problem with the attachment 2.0 plugin. It works perfectly on my local environment but I am having problems on the live server. In firefox is behaves itself, adds the attachment and submits the comment. However in IE 6 it adds the attachment and the comment BUT then throws an error post.php saying that the page cannot be found. Has anybody else encountered this? Files are identical (apart from settings) between local and remote. I dont get why it wont work in IE but will in firefox. Maybe a javascript problem? HELP!
http://lussumo.com/community/discussion/4502/-vanilla-103-released-/#Item_47