<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — Attachments (pun_attachment)]]></title>
		<link>https://punbb.informer.com/forums/topic/21898/attachments-punattachment/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/21898/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Attachments (pun_attachment).]]></description>
		<lastBuildDate>Tue, 28 Feb 2023 08:48:29 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Attachments (pun_attachment)]]></title>
			<link>https://punbb.informer.com/forums/post/159129/#p159129</link>
			<description><![CDATA[<p>Error when the actual attachment doesn&#039;t exist.</p><div class="quotebox"><blockquote><p>Got error &#039;PHP message: PHP Warning:&nbsp; 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&#039;</p></blockquote></div><p>I assume the error comes when the <strong>getimagesize</strong> function cannot find the actual file.</p><p>How to fix it?</p><p>Do we need to add a check if the file exists?</p><p><strong>Edit:</strong></p><p>My quick fix is to check if <strong>file_exists</strong> in the functions <strong>show_attachments</strong> and <strong>show_attachments_post</strong></p><div class="codebox"><pre><code>$show_image = false;
if (in_array($attach[&#039;file_ext&#039;], array(&#039;png&#039;, &#039;jpg&#039;, &#039;gif&#039;, &#039;tiff&#039;)) &amp;&amp; $forum_config[&#039;attach_disp_small&#039;] == &#039;1&#039;)
{
    $attach_file_path = FORUM_ROOT.$forum_config[&#039;attach_basefolder&#039;].$attach[&#039;file_path&#039;];
    if ( file_exists($attach_file_path) ) {
        list($width, $height,,) = getimagesize($attach_file_path);
        $attach[&#039;img_width&#039; ] = $width;
        $attach[&#039;img_height&#039;] = $height;
        $show_image = ($attach[&#039;img_height&#039;] &lt;= $forum_config[&#039;attach_small_height&#039;]) &amp;&amp;
                      ($attach[&#039;img_width&#039; ] &lt;= $forum_config[&#039;attach_small_width&#039; ]);
    }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Tue, 28 Feb 2023 08:48:29 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/159129/#p159129</guid>
		</item>
		<item>
			<title><![CDATA[Re: Attachments (pun_attachment)]]></title>
			<link>https://punbb.informer.com/forums/post/156024/#p156024</link>
			<description><![CDATA[<p>Good luck to you.</p>]]></description>
			<author><![CDATA[null@example.com (PanBB.Ru)]]></author>
			<pubDate>Wed, 22 Jun 2016 05:24:54 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/156024/#p156024</guid>
		</item>
		<item>
			<title><![CDATA[Re: Attachments (pun_attachment)]]></title>
			<link>https://punbb.informer.com/forums/post/156023/#p156023</link>
			<description><![CDATA[<p>Well, it&#039;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&#039;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.<br />Thank your for all the advices you provide. You are very helpful.</p>]]></description>
			<author><![CDATA[null@example.com (MaraKat)]]></author>
			<pubDate>Tue, 21 Jun 2016 20:10:37 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/156023/#p156023</guid>
		</item>
		<item>
			<title><![CDATA[Re: Attachments (pun_attachment)]]></title>
			<link>https://punbb.informer.com/forums/post/156022/#p156022</link>
			<description><![CDATA[<p>What attracts you pun_attachment? He is no longer supported.</p>]]></description>
			<author><![CDATA[null@example.com (PanBB.Ru)]]></author>
			<pubDate>Tue, 21 Jun 2016 19:44:23 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/156022/#p156022</guid>
		</item>
		<item>
			<title><![CDATA[Re: Attachments (pun_attachment)]]></title>
			<link>https://punbb.informer.com/forums/post/156021/#p156021</link>
			<description><![CDATA[<p>I met an issue with the time zone.<br />Error message above the post with attachment</p><div class="quotebox"><blockquote><p>Strict Standards: date(): It is not safe to rely on the system&#039;s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. ...</p></blockquote></div><p>So, I added </p><div class="codebox"><pre><code>date_default_timezone_set(&#039;Europe/Paris&#039;);</code></pre></div><p>on line 6 of attach_func.php</p><p>No more error message and the date displays correctly.</p><p>I do not understand why the extension does not take into account the time-zone setting entered in the general configuration of the forum.</p>]]></description>
			<author><![CDATA[null@example.com (MaraKat)]]></author>
			<pubDate>Tue, 21 Jun 2016 18:08:53 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/156021/#p156021</guid>
		</item>
		<item>
			<title><![CDATA[Re: Attachments (pun_attachment)]]></title>
			<link>https://punbb.informer.com/forums/post/156020/#p156020</link>
			<description><![CDATA[<p>Hi ! I am trying to translate to French, but have no idea what <span class="bbu">salt keywords</span> is about.<br />&quot;Some more salt keywords, change if you want to&quot;, says the lang file.<br />Can anyone explain to me ? (I know about keywords, but &quot;salt&quot; ???)<br />Thanks in advance</p>]]></description>
			<author><![CDATA[null@example.com (MaraKat)]]></author>
			<pubDate>Tue, 21 Jun 2016 14:46:56 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/156020/#p156020</guid>
		</item>
		<item>
			<title><![CDATA[Re: Attachments (pun_attachment)]]></title>
			<link>https://punbb.informer.com/forums/post/151113/#p151113</link>
			<description><![CDATA[<div class="quotebox"><cite>carolle wrote:</cite><blockquote><p>I try to install pun_attachment v1.0.5, but I got the message : This extension is not compatible with your PunBB version.</p><p>Where could I got the right extension for my 1.4.2 version?</p></blockquote></div><p>Here is a list of extensions for download latest version : <a href="http://punbb.informer.com/extensions/">http://punbb.informer.com/extensions/</a></p>]]></description>
			<author><![CDATA[null@example.com (arshen)]]></author>
			<pubDate>Wed, 19 Feb 2014 12:50:56 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/151113/#p151113</guid>
		</item>
		<item>
			<title><![CDATA[Re: Attachments (pun_attachment)]]></title>
			<link>https://punbb.informer.com/forums/post/151111/#p151111</link>
			<description><![CDATA[<p>I try to install pun_attachment v1.0.5, but I got the message : This extension is not compatible with your PunBB version.</p><p>Where could I got the right extension for my 1.4.2 version?</p>]]></description>
			<author><![CDATA[null@example.com (carolle)]]></author>
			<pubDate>Tue, 18 Feb 2014 19:45:17 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/151111/#p151111</guid>
		</item>
		<item>
			<title><![CDATA[Re: Attachments (pun_attachment)]]></title>
			<link>https://punbb.informer.com/forums/post/151092/#p151092</link>
			<description><![CDATA[<p>Hi, <br />I have a problem with images and zip files now!!!!<br />images don&#039;t display, and zip files download as a corrupted file!<br />and when i once download a file, the download counter count it 4 time.(i test it for zip files)<br />i don&#039;t know where is the problem?!<br />you can see this problem at: <a href="http://ask.daskhat.ir/topic/47/view/">http://ask.daskhat.ir/topic/47/view/</a> </p><p>Thank for any help, and sorry for my English.</p>]]></description>
			<author><![CDATA[null@example.com (arshen)]]></author>
			<pubDate>Sun, 16 Feb 2014 14:19:00 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/151092/#p151092</guid>
		</item>
		<item>
			<title><![CDATA[Re: Attachments (pun_attachment)]]></title>
			<link>https://punbb.informer.com/forums/post/150997/#p150997</link>
			<description><![CDATA[<p>unfortunately i can&#039;t find server logs in Cpanel!!<br />where is it? how can i check it?<br />i use share host with Cpanel.</p><p>thank you.</p>]]></description>
			<author><![CDATA[null@example.com (arshen)]]></author>
			<pubDate>Sun, 26 Jan 2014 11:45:25 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/150997/#p150997</guid>
		</item>
		<item>
			<title><![CDATA[Re: Attachments (pun_attachment)]]></title>
			<link>https://punbb.informer.com/forums/post/150996/#p150996</link>
			<description><![CDATA[<p>Check the web server logs.</p>]]></description>
			<author><![CDATA[null@example.com (dimkalinux)]]></author>
			<pubDate>Sun, 26 Jan 2014 11:27:04 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/150996/#p150996</guid>
		</item>
		<item>
			<title><![CDATA[Re: Attachments (pun_attachment)]]></title>
			<link>https://punbb.informer.com/forums/post/150995/#p150995</link>
			<description><![CDATA[<p>Hi, <br />I install &quot;pun_attachment&quot; successful, but when i upload image files (jpeg, png,...), do not work. no any preview and can&#039;t download the images.<br />Other files work excellent.<br />what is wrong? what should i do?<br />you can see this problem here: <a href="http://ask.daskhat.ir/misc.php?action=pun_attachment&amp;item=9&amp;preview">http://ask.daskhat.ir/misc.php?action=p … mp;preview</a><br />thank you.</p>]]></description>
			<author><![CDATA[null@example.com (arshen)]]></author>
			<pubDate>Sun, 26 Jan 2014 11:16:06 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/150995/#p150995</guid>
		</item>
		<item>
			<title><![CDATA[Re: Attachments (pun_attachment)]]></title>
			<link>https://punbb.informer.com/forums/post/150016/#p150016</link>
			<description><![CDATA[<p>No, it SHOULD work. What doesn&#039;t work? What error is displayed?</p>]]></description>
			<author><![CDATA[null@example.com (Trace)]]></author>
			<pubDate>Thu, 08 Aug 2013 18:58:28 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/150016/#p150016</guid>
		</item>
		<item>
			<title><![CDATA[Re: Attachments (pun_attachment)]]></title>
			<link>https://punbb.informer.com/forums/post/150012/#p150012</link>
			<description><![CDATA[<p>Attachments is broken in 1.4.2. It won&#039;t install.</p>]]></description>
			<author><![CDATA[null@example.com (strange_cathect)]]></author>
			<pubDate>Thu, 08 Aug 2013 12:58:35 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/150012/#p150012</guid>
		</item>
		<item>
			<title><![CDATA[Re: Attachments (pun_attachment)]]></title>
			<link>https://punbb.informer.com/forums/post/149538/#p149538</link>
			<description><![CDATA[<p>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.</p>]]></description>
			<author><![CDATA[null@example.com (Rolex)]]></author>
			<pubDate>Mon, 03 Jun 2013 19:52:48 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/149538/#p149538</guid>
		</item>
	</channel>
</rss>
