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
There's also an alternative script that might be worth looking at as an alternative to thickbox, though I've not looked at it in any detail: ibox.
// Initialize settings if (!array_key_exists('ATTACHMENT_SETUP', $Configuration)) { // ... lot of lines here looking like AddConfigurationSetting($Context, "blabla", "blabla") }
from condition statement if (in_array($Context->SelfUrl, array("comments.php", "post.php"))), so it'll looking like
$Context->Dictionary['ErrSaveThumb'] = 'An error occurred while saving the thumbnail //1 to the filesystem. Are you sure that PHP has been configured with both read and write access on this folder?'; // Initialize settings if (!array_key_exists('ATTACHMENT_SETUP', $Configuration)) { // ... lot of lines here looking like AddConfigurationSetting($Context, "blabla", "blabla") } if (in_array($Context->SelfUrl, array("comments.php", "post.php"))) { $Configuration['ATTACHMENT_ALLOWED_FILETYPES'] = array ( // bla-bla...
Also notice that string on line 95
if( !array_key_exists('ATTACHMENT_DISPLAY_IMAGE_PROCESSING', $Configuration)) { $Configuration['ATTACHMENT_DISPLAY_IMAGE_PROCESSING'] = 'None'; }
could be deleted (because of existing initialization on line 90).
Thinks that Jazzman makes this changes in next version of extension. At this time you must after enabling extension visit any discussion or making a post (in technical detailing you must load page 'comments.php' or 'post.php') for initializing extension settings and solving this problem.
AddConfigurationSetting($Context, 'ATTACHMENT_CHMOD', '');
must be like
AddConfigurationSetting($Context, 'ATTACHMENT_CHMOD', '0644');
(there must be no empty quotes because of Vanilla doesn't adding configuration setting in conf/settings.php if parameter of setting is empty).