Re: Attachments (pun_attachment)
I've commented them, but still not effective. Do I need to refresh hooks?
You are not logged in. Please login or register.
PunBB Forums → Supported extensions → Attachments (pun_attachment)
I've commented them, but still not effective. Do I need to refresh hooks?
Why have you commented that line?
So what do I do to remove them?
Sorry, I haven't read what do you want. But... what do you want? What do you want leave?
Remove everything about the picture when attached and make it look like it was embedded. Please scroll to the bottom of page 4 to understand very well.
Attachments is broken in 1.4.2. It won't install.
No, it SHOULD work. What doesn't work? What error is displayed?
Hi,
I install "pun_attachment" successful, but when i upload image files (jpeg, png,...), do not work. no any preview and can't download the images.
Other files work excellent.
what is wrong? what should i do?
you can see this problem here: http://ask.daskhat.ir/misc.php?action=p … mp;preview
thank you.
Check the web server logs.
unfortunately i can't find server logs in Cpanel!!
where is it? how can i check it?
i use share host with Cpanel.
thank you.
Hi,
I have a problem with images and zip files now!!!!
images don't display, and zip files download as a corrupted file!
and when i once download a file, the download counter count it 4 time.(i test it for zip files)
i don't know where is the problem?!
you can see this problem at: http://ask.daskhat.ir/topic/47/view/
Thank for any help, and sorry for my English.
I try to install pun_attachment v1.0.5, but I got the message : This extension is not compatible with your PunBB version.
Where could I got the right extension for my 1.4.2 version?
I try to install pun_attachment v1.0.5, but I got the message : This extension is not compatible with your PunBB version.
Where could I got the right extension for my 1.4.2 version?
Here is a list of extensions for download latest version : http://punbb.informer.com/extensions/
Hi ! I am trying to translate to French, but have no idea what salt keywords is about.
"Some more salt keywords, change if you want to", says the lang file.
Can anyone explain to me ? (I know about keywords, but "salt" ???)
Thanks in advance
I met an issue with the time zone.
Error message above the post with attachment
Strict Standards: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. ...
So, I added
date_default_timezone_set('Europe/Paris');
on line 6 of attach_func.php
No more error message and the date displays correctly.
I do not understand why the extension does not take into account the time-zone setting entered in the general configuration of the forum.
What attracts you pun_attachment? He is no longer supported.
Well, it's an official extension, on an official list of extensions for PunBB 1.4x, on the official PunBB forum. And it can run correctly. I did not notice it was not supported any more. It's not written anywhere. For someone like me new to PunBB, the present forum should be the first place to get information. Even if I browsed your PunBB International forum with a great interest.
Thank your for all the advices you provide. You are very helpful.
Good luck to you.
Error when the actual attachment doesn't exist.
Got error 'PHP message: PHP Warning: getimagesize(./extensions/pun_attachment/attachments/94fd47...626d/3e57...838.attach): failed to open stream: No such file or directory in /home/XXX/forum/extensions/pun_attachment/include/attach_func.php on line 297'
I assume the error comes when the getimagesize function cannot find the actual file.
How to fix it?
Do we need to add a check if the file exists?
Edit:
My quick fix is to check if file_exists in the functions show_attachments and show_attachments_post
$show_image = false;
if (in_array($attach['file_ext'], array('png', 'jpg', 'gif', 'tiff')) && $forum_config['attach_disp_small'] == '1')
{
$attach_file_path = FORUM_ROOT.$forum_config['attach_basefolder'].$attach['file_path'];
if ( file_exists($attach_file_path) ) {
list($width, $height,,) = getimagesize($attach_file_path);
$attach['img_width' ] = $width;
$attach['img_height'] = $height;
$show_image = ($attach['img_height'] <= $forum_config['attach_small_height']) &&
($attach['img_width' ] <= $forum_config['attach_small_width' ]);
}
}
PunBB Forums → Supported extensions → Attachments (pun_attachment)
Powered by PunBB, supported by Informer Technologies, Inc.