15 years on The Web
miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Official Addons and Solutions miniBB Support Forums / Official Addons and Solutions /   

File and Image Attachments

Page  Page 5 of 14:  « Previous  1  2  3  4  5  6  ...  14  Next »  
Author Paul
Lead Developer
#61 | Posted: 10 Apr 2008 02:42 
Both on our demo forum and in File Bank here PDfs are allowed to upload; but you always must follow file upload rules and disclaimer which reports the maximum allowed size. Currently, on demo forums it is allowed to upload not more than 100 Kb and here it is up to 1 Mb.

It is also important to check the file type which is reported in your exact browser. Different browsers can interpret the same file type differently. It seems 'application/pdf' type which is currently set by default in this add-on, works only in Internet Explorer/Opera... in Mozilla, it is interpreted as 'application/octet' for some reason (but this is obviously wrong). So setting this type and the proper file size you can achieve that PDFs will be uploaded (like now I've set it on miniBB demo forums); however please note this filetype maybe used also for other applications, and so files of other extensions probably could be upload as well.

Refer to how_to_add_uknown_file_type.txt file supplied with this add-on for getting the idea of how to determine the file type you upload.

Author harootun
Partaker
#62 | Posted: 12 Apr 2008 11:21 
Thanks, Paul.

Impressive work, as always. Love how the "how_to_add_unknown_file_type.txt" gives the user such control. Wow.

In Firefox on the Mac, PDF comes up as "application/download'.

Author ClusterCom
Guest
#63 | Posted: 2 May 2008 15:02 
I installed file upload add-on - it displays file upload boxes, but it would not upload files.
There are no warning or errors - post is created, its text is shown, but no attached files.

Some details:
- addon_fileupload_options.php file is unchanged and contains default settings.
- Testing as BB's Admin.
- FreeBSD + Apache22
- Files are not appearing in the shared_files/uploaded directory on the server, even though both have permissions set to 0777. Some other security/permission settings are required? Apache's httpd.conf / .htaccess?

Any suggestions where to start troubleshooting will be appreciated?

Kind Regards,
ClusterCom

Author Paul
Lead Developer
#64 | Posted: 3 May 2008 07:42 
ClusterCom
Didn't you forget to modify template specifying <form> as enctype="multipart/form-data"?

You just need to go carefully through all installation steps again. We are sure this add-on works, and if it doesn't, something is wrong on your side only.

Author isaias
Guest
#65 | Posted: 13 Jul 2008 08:24 
how do yo disable the border generation on version 2.0?
previous version didn't generate one and I like it that way. the border is messing up my layout.

in addon_fileupload_options.php there is a line to set the color:
$borderColor=array(0, 0, 0); //thumbnail's border color in RGB (if not set or disabled, border won't be generated

but I can't find how to disable it anywhere.

Author Paul
Lead Developer
#66 | Posted: 14 Jul 2008 03:31 
Disable it setting two slashes before (that way you can 'disable' any setting if it's allowed):

//$borderColor=array(0, 0, 0);

Author Guest
#67 | Posted: 15 Feb 2009 15:26 
How to turn on smaller alternative thumbnails, which could be displayed on the front forums page or in topic listings on fileupload addon?

Author Guest
#68 | Posted: 15 Feb 2009 15:54 
Maby me plugin version is old. Were i can get update?

Author Paul
Lead Developer
#69 | Posted: 16 Feb 2009 02:10 | Edited by: Paul 
Guest:
Maby me plugin version is old. Were i can get update?

We have all the recent versions under customers area. You should have the access to the customers area amongst your order information.

The code you asked for, is located under addon_fileupload_topic_thumbnails.code.txt file of the package. This is kind of hack you need to apply in bb_plugins.php. The hack will work only if $dirsTopic setting is set to TRUE, i.e. you don't run the add-on in Safe Mode. All other setup instructions are located under the aforementioned file.

Author harootun
Partaker
#70 | Posted: 18 Feb 2009 22:07 | Edited by: harootun 
I'm having two Firefox problems with the file upload add-on.

1. FIrefox 3.06 on Windows XP -- the pop-up window cannot be right-clicked on (allowing the image to be downloaded). Works fine on Firefox 3.06 on the Mac, but not on Windows. (Firefox on Windows XP misbehaves the same way on the minibb demo forum.)

2. A user on my forum who uses Firefox 3 on an openSUSE 10.3 system reports that Firefox often crashes when he clicks the pop-up window to close it.

Has anyone else experienced these problems? I'm obviously more concerned about #1, since this effects more users.

Any advice, as always, is appreciated.

Author Paul
Lead Developer
#71 | Posted: 19 Feb 2009 02:18 
1. Here is what you could try to set under addon_fileupload_options.php:

$saveAsEnable=1;
//if 0, big images in pop-ups will be placed in the background, not in the tag, which will disable simple 'Save As' operation.

2. You may try to install the latest version of the add-on, as I remember correctly, I have experienced such trouble too, and it was some way related to a long phrase appearing in tag (I suppose it should be fixed in the recent release). <br /><br />Anyway, if just one user says so, it doesn't mean the error is not on his side <em>only</em> :) We need exact steps to re-create the problem on our end, else it couldn't be even investigated, not saying fixed.</div></td></tr> </table> <br /><table class="forums"> <tr> <td rowspan="2" class="postedLeftCell"><img src="http://www.minibb.com/forums/img/s.gif" style="width:12px;height:9px;padding-top:6px" alt="Author" /></td> <td rowspan="2" class="pauthor" style="width:15%"><span class="username"><a href="http://www.minibb.com/forums/index.php?action=userinfo&user=2644" title="Forums Profile for "harootun"" rel="nofollow">harootun</a></span><span class="txtSm"><br />Partaker</span></td> <td class="txtSm" style="padding-left:3pt"><a id="msg31333" href="http://www.minibb.com/forums/msg.php?id=31333" class="txtSm" rel="nofollow">#72</a> <span class="sepr">|</span> Posted: 19 Feb 2009 07:56</td><td class="txtSm txtR"><script type="text/javascript">getQuotation('harootun', 2, 31333);</script><script type="text/javascript">getQuotation('harootun', 1, 31333);</script> </td> </tr> <tr><td class="caption1 tbCel2 postedTextCell" style="width:87%" colspan="2"><div class="postedText">Thanks, as always, for the quick response. <br /><br />Regarding #1 (Firefox 3 in Windows), I already had $saveasEnable=1; set, but it doesn't allow an image to be saved (in Firefox 3, other browsers work fine). Is $saveasEnable set to "1" on the minibb demo forum? As I mentioned, Firefox 3 on Windows won't allow downloading/saving of pictures there either.<br /><br />Regarding #2, I'll make sure I have the latest version and try to find out more information from the user.<br /><br />Thanks!!!</div></td></tr> </table> <br /><table class="forums"> <tr> <td rowspan="2" class="postedLeftCell"><img src="http://www.minibb.com/forums/img/s.gif" style="width:12px;height:9px;padding-top:6px" alt="Author" /></td> <td rowspan="2" class="pauthor" style="width:15%"><span class="username"><a href="http://www.minibb.com/forums/index.php?action=userinfo&user=9" title="Forums Profile for "Paul"" rel="nofollow">Paul</a></span><span class="txtSm"><br />Lead Developer</span></td> <td class="txtSm" style="padding-left:3pt"><a id="msg31334" href="http://www.minibb.com/forums/msg.php?id=31334" class="txtSm" rel="nofollow">#73</a> <span class="sepr">|</span> Posted: 19 Feb 2009 10:33</td><td class="txtSm txtR"><script type="text/javascript">getQuotation('Paul', 2, 31334);</script><script type="text/javascript">getQuotation('Paul', 1, 31334);</script> </td> </tr> <tr><td class="caption1 tbCel1 postedTextCell" style="width:87%" colspan="2"><div class="postedText">Try to check another option as well.<br /><br /><div class="hl">$closeByClick=0;<br />// if 1, users will close pop-ups by left mouse click (and right mouse click on some browsers).<br /></div><br /></div></td></tr> </table> <br /><table class="forums"> <tr> <td rowspan="2" class="postedLeftCell"><img src="http://www.minibb.com/forums/img/s.gif" style="width:12px;height:9px;padding-top:6px" alt="Author" /></td> <td rowspan="2" class="pauthor" style="width:15%"><span class="username"><a href="http://www.minibb.com/forums/index.php?action=userinfo&user=2644" title="Forums Profile for "harootun"" rel="nofollow">harootun</a></span><span class="txtSm"><br />Partaker</span></td> <td class="txtSm" style="padding-left:3pt"><a id="msg31341" href="http://www.minibb.com/forums/msg.php?id=31341" class="txtSm" rel="nofollow">#74</a> <span class="sepr">|</span> Posted: 20 Feb 2009 11:18 <span class="sepr">|</span> Edited by: harootun</td><td class="txtSm txtR"><script type="text/javascript">getQuotation('harootun', 2, 31341);</script><script type="text/javascript">getQuotation('harootun', 1, 31341);</script> </td> </tr> <tr><td class="caption1 tbCel2 postedTextCell" style="width:87%" colspan="2"><div class="postedText">Hmmm... I don't really want to change $closeByClick to 0 because I want to keep that feature with the pop-ups.<br /><br />After playing around with the addon_fileupload.php, I've discovered if I get rid of the {$selfClose} that gets written in the <body> tag of the pop-up window, Firefox 3 in Windows allows right-clicking and downloading of images. <br /><br />Is there any downside to not having that javascript behavior in the <body> tag? (It's still in the <img> tag.)</div></td></tr> </table> <br /><table class="forums"> <tr> <td rowspan="2" class="postedLeftCell"><img src="http://www.minibb.com/forums/img/s.gif" style="width:12px;height:9px;padding-top:6px" alt="Author" /></td> <td rowspan="2" class="pauthor" style="width:15%"><span class="username"><a href="http://www.minibb.com/forums/index.php?action=userinfo&user=3265" title="Forums Profile for "panatan"" rel="nofollow">panatan</a></span><span class="txtSm"><br />Partaker</span></td> <td class="txtSm" style="padding-left:3pt"><a id="msg31575" href="http://www.minibb.com/forums/msg.php?id=31575" class="txtSm" rel="nofollow">#75</a> <span class="sepr">|</span> Posted: 22 Apr 2009 15:04 <span class="sepr">|</span> Edited by: panatan</td><td class="txtSm txtR"><script type="text/javascript">getQuotation('panatan', 2, 31575);</script><script type="text/javascript">getQuotation('panatan', 1, 31575);</script> </td> </tr> <tr><td class="caption1 tbCel1 postedTextCell" style="width:87%" colspan="2"><div class="postedText">Hi all !<br /><br />Is it possible to display something (a little flag for example) near topic title when image (or file) is include in a post ? <br />For example, posts with a red pin contain images.<br /><a href="http://www.minibb.com/forums/storage/screenshots/post.jpg" target="_blank"> <img src="http://www.minibb.com/forums/storage/screenshots/post.jpg" alt="Image" title="Image" style="width:150px" /></a><br />Thank you</div></td></tr> </table> <br /> <table><tr><td> <input type="hidden" name="action" value="delmsg" /> <input type="hidden" name="page" value="5" /> <input type="hidden" name="forum" value="11" /> <input type="hidden" name="topic" value="2789" /> <input type="hidden" name="csrfchk" value="" /> </td></tr></table> </form> <!--pageNav--> <table class="tbTransparentmb"> <tr> <td class="tbTransparentCell txtC"><span class="txtSm"><b><img src="http://www.minibb.com/forums/img/page.gif" style="width:9px;height:10px" alt="Page" />  Page 5 of 14:  <a href="http://www.minibb.com/forums/plugins-11/file-image-attachments-2789-4.html" title="Page #4">« Previous</a>  <a style="text-decoration:none" class="navCell" href="http://www.minibb.com/forums/plugins-11/file-image-attachments-2789.html" title="Page #1">1</a>  <a style="text-decoration:none" class="navCell" href="http://www.minibb.com/forums/plugins-11/file-image-attachments-2789-2.html" title="Page #2">2</a>  <a style="text-decoration:none" class="navCell" href="http://www.minibb.com/forums/plugins-11/file-image-attachments-2789-3.html" title="Page #3">3</a>  <a style="text-decoration:none" class="navCell" href="http://www.minibb.com/forums/plugins-11/file-image-attachments-2789-4.html" title="Page #4">4</a>  <span class="navCell">5</span>  <a style="text-decoration:none" class="navCell" href="http://www.minibb.com/forums/plugins-11/file-image-attachments-2789-6.html" title="Page #6">6</a>  ...  <a style="text-decoration:none" class="navCell" href="http://www.minibb.com/forums/plugins-11/file-image-attachments-2789-14.html" title="Page #14">14</a>  <a href="http://www.minibb.com/forums/plugins-11/file-image-attachments-2789-6.html" title="Page #6">Next »</a> </b></span></td> </tr> </table> <!--/pageNav--> <table class="forums"> <tr> <td class="icon"><img src="http://www.minibb.com/forums/img/forum_icons/darkgreen.gif" style="width:16px;height:16px;vertical-align:middle" alt="Official Addons and Solutions" title="Official Addons and Solutions" /></td> <td class="caption3"><a href="http://www.minibb.com/forums/">miniBB Support Forums</a> / <a href="http://www.minibb.com/forums/plugins-11/">Official Addons and Solutions</a> / File and Image Attachments</td> <td class="caption3 txtR noWrap">↑ <span class="txtSm"><a href="#top" rel="nofollow">Top</a></span></td> </table> <script type="text/javascript"> <!-- var l_accessDenied="Sorry! You are not granted to do this."; var tlength=2; var anonPost=1; //--> </script> <form id="postMsg" action="http://www.minibb.com/forums/index.php?" method="post" class="formStyle"> <table class="tbTransparent"> <tr><td class="caption3"><a id="newreply"></a><h1 class="headingTitle">Your Reply <a href="JavaScript:getToPost();"><img src="http://www.minibb.com/forums/img/up.gif" style="width:8px;height:8px" alt="Click this icon to move up to the quoted message" title="Click this icon to move up to the quoted message" /></a></h1></td></tr> <tr> <td class="tbTransparent txtL vmiddle"> <table style="width:100%"><tr><td> <script type="text/javascript"> <!-- var enterSubject='Please, enter Subject!'; var enterMessage='Please, enter Message!'; var enterLogin='Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.'; //--> </script> <script type="text/javascript"> <!-- document.write('<a'+' h'+'re'+'f="JavaScript:paste_strinL(selektion,3,\'[b]\',\'[/b]\',\'\')" onmouseover="window.status=\'BB code for the Bold Style\'; return true" onmouseout="window.status=\'\'; return true" onmousemove="pasteSel()"><img src="http://www.minibb.com/forums/img/button_bold.gif" style="width:22px;height:22px" alt="BB code for the Bold Style" title="BB code for the Bold Style" /></'+'a'+'>  <a'+' h'+'re'+'f="JavaScript:paste_strinL(selektion,3,\'[i]\',\'[/i]\',\'\')" onmouseover="window.status=\'BB code for the Italic Style\'; return true" onmouseout="window.status=\'\'; return true" onmousemove="pasteSel()"><img src="http://www.minibb.com/forums/img/button_italic.gif" style="width:22px;height:22px" alt="BB code for the Italic Style" title="BB code for the Italic Style" /></'+'a'+'>  <a'+' h'+'re'+'f="JavaScript:paste_strinL(\'\',3,\'[imgs=\'+prompt(\'URL:\',\'http://www.minibb.com/forums\'+\'/img/p.gif\')+\']\',prompt(\'Describe%20this%20picture:\',\'\')+\'[/imgs]\',\'\')" onmouseover="window.status=\'BB Code for the Picture\';return true" onmouseout="window.status=\'\';return true"><img src="http://www.minibb.com/forums/img/button_image.gif" style="width:22px;height:22px" alt="BB Code for the Picture" title="BB Code for the Picture" /></'+'a'+'>  <a'+' h'+'re'+'f="JavaScript:paste_strinL(selektion,4,\'[url=\'+prompt(\'URL:\',\'http://www.minibb.com/forums\'+\'/\')+\']\',\'[/url]\',\'\')" onmouseover="window.status=\'BB code for the URL\'; return true" onmouseout="window.status=\'\'; return true" onmousemove="pasteSel()"><img src="http://www.minibb.com/forums/img/button_url.gif" style="width:22px;height:22px" alt="BB code for the URL" title="BB code for the URL" /></'+'a'+'>  <img src="http://www.minibb.com/forums/img/button_upload.gif" style="width:23px;height:22px" onclick="JavaScript:storagePopUp();" alt="Upload a File" title="Upload a File" />  '); //--> </script> </td> <td class="noWrap txtR"> <span class="txtSm" style="color:#9D9D98"><b>Short link for this topic:</b> <input type="text" name="relcode" id="relcode" style="width:240px;height:15px;font-size:10px;border:1px solid #DBDBDB;color:#9D9D98" onclick="javascript:document.forms['postMsg'].elements['relcode'].focus();document.forms['postMsg'].elements['relcode'].select();" readonly="readonly" value="http://www.minibb.com/forums/11_2789_5.html" /></span></td> </tr></table> </tr> <tr> <td class="tbTransparent txtL subjectPad"> <textarea name="postText" id="postText" class="textForm postingForm" tabindex="2"></textarea> <br /> </td> </tr> <tr><td class="tbTransparent txtL pformBottom"><script type="text/javascript"> <!-- function handleEnter(e) { var keynum; // IE if(window.event) keynum=e.keyCode; // Netscape/Firefox/Opera else if(e.which) keynum = e.which; if(keynum==13){ if(document.forms['login']) document.forms['login'].submit(); else if(document.forms['postMsg']) submitForm(); } return keynum; } //--> </script> <input type="text" size="18" maxlength="15" name="user_usr" value="" class="textForm" style="vertical-align:middle" tabindex="3" placeholder="Username" /> <input type="password" size="18" maxlength="32" name="user_pwd" class="textForm" style="vertical-align:middle" tabindex="4" onkeydown="JavaScript:handleEnter(event);" placeholder="Password" autocomplete="off" /> <sup class="capMenu"><a href="http://www.minibb.com/forums/index.php?action=sendpass" rel="nofollow">?</a></sup> <input type="hidden" name="mode" value="login" /> <input type="hidden" name="queryStr" value="action=vthread&forum=11&topic=2789&page=5&mdrw=on" /> <span class="txtSm"><br />You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.</span> <span class="txtSm"><br /><br /><strong>Before posting, make sure your message is compliant with our <a href="http://www.minibb.com/forums/7_843_0.html" target="_blank">forum posting rules</a>. If not, it may be locked or deleted with no explanation.</strong></span></td></tr> <tr> <td class="tbTransparent txtL"> <script type="text/javascript"> <!-- document.write('<input type="button" name="subbut" value="Sign in/Post Message" class="inputButton" tabindex="5" onclick="submitForm();" />'); //--> </script> <noscript><input type="submit" value="Sign in/Post Message" class="inputButton" tabindex="5" /></noscript> <input type="hidden" name="action" value="pthread" /> <input type="hidden" name="forum" value="11" /> <input type="hidden" name="topic" value="2789" /> <input type="hidden" name="anchor" value="" /> </td> </tr> </table> </form> <table class="tbTransparent"> <tr><td class="tbTransparentCell">  </td></tr> </table> <table class="tbTransparentmb"><tr><td class="tbTransparentCell"> <form action="http://www.minibb.com/forums/index.php?" method="get" class="formStyle"> <input type="hidden" name="action" value="vtopic" /> <select name="forum" class="selectTxt vmiddle" style="width:200pt"> <optgroup label="Main Forums"><option value="9">News & Announcements</option> <option value="7">FAQ</option> <option value="2">How To</option> <option value="3">Bugs</option> <option value="1">The Other</option> </optgroup><optgroup label="Coding Forums"><option selected="selected" value="11">Official Addons and Solutions</option> <option value="12">Custom Tutorials and Modifications</option> <option value="5">Master Class</option> </optgroup><optgroup label="Additional Forums"><option value="20">Specific</option> <option value="19">Re-cycled</option> </optgroup><optgroup label="Feedback Forums"><option value="4">Suggestions</option> <option value="8">Testimonials</option> </optgroup><optgroup label="Blogs"><option value="21">2014</option> </optgroup><optgroup label="Test Forums"><option value="6">qwerty</option> </optgroup> </select> <input type="submit" value="Switch Forum" class="inputButton vmiddle" /> </form> </td> <td class="txtR noWrap"><form action="http://www.minibb.com/forums/index.php?" method="get" class="formStyle" id="searchform" name="searchform"><input name="phrase" type="search" maxlength="50" class="textForm vmiddle" value="" style="width:170px" /> <input type="submit" value="Search" class="inputButton vmiddle" /><input type="hidden" name="action" value="search" /><input type="hidden" name="where" value="0" /><input type="hidden" name="forum" value="11" /><input type="hidden" name="topic" value="2789" /><input type="hidden" name="searchGo" value="1" /></form></td> </tr></table> <script type="text/javascript"> <!-- if(document.forms['postMsg']) document.forms['postMsg'].elements['subbut'].disabled=false; //--> </script> <table class="tbTransparent"> <tr> <td style="width:3%;padding-right:7pt"><!--miniBB Copyright link. You are not allowed to remove it if you have not purchased the Commercial License. Refer to COPYING file for more--><a href="http://www.minibb.com/" target="_blank"><img src="http://www.minibb.com/forums/img/minibb.png" alt="miniBB Support Forums Powered by Forum Software miniBB ®" title="miniBB Support Forums Powered by Forum Software miniBB ®" /></a><!--End of copyright link--></td> <td class="noWrap txtL" style="width:70%;vertical-align:top"><span class="txtSm"><a href="http://www.minibb.com/features.html" title="miniBB Forum Software Features">Features</a>  <a href="http://www.minibb.com/require.html" title="miniBB Forum Script Requirements">Requirements</a>  <a href="http://minibb.org" target="_blank" title="miniBB Forums Demo - Full Mode with Add-ons" class="specialMenu">Demo</a>  <a href="http://www.minibb.com/download.html" title="Forum Program and Plug-ins - Download for Free!">Download</a>  <a href="http://www.minibb.com/sites.html" title="miniBB Forums Worldwide Showcase">Showcase</a>  <a href="http://www.minibb.com/gallery.html" title="The Gallery of miniBB Arts and Design Layouts">Gallery of Arts</a> <br /> <a href="http://www.minibb.com/com.html" title="miniBB Compiler" class="specialMenu">Compiler</a>  <a href="http://www.minibb.com/paid_addons.html" title="Premium Extensions and Add-ons for Your miniBB Forum" class="specialMenu">Premium Extensions</a>  <a href="http://www.minibb.com/paid_support.html" title="Elite Support for Forum Administrators and Customers">Premium Support</a>  <a href="http://www.minibb.com/commercial_license.html" title="miniBB Commercial License and Attribution Link Removal">License</a>  <a href="http://www.minibb.com/contacts.html">Contacts</a></span></td> <td><table style="width:350px;height:30px;margin-right:15px"><tr><td class="txtC"><div class="txtSm" style="color:red;display:block;line-height:15px;cursor:pointer" onclick="javascript:window.location='http://www.minibb.com/captcha.html';">Check out the <a href="http://www.minibb.com/captcha.html" target="_blank" style="color:#002244">Captcha add-on</a>: protect your miniBB-forums from the automated spam and flood.</div></td><td><a href="http://www.minibb.com/captcha.html" target="_blank"><img src="http://www.minibb.com/forums/img/ads/new/captcha.png" style="width:16px;height:16px;border:0px;vertical-align:middle;" alt="Captcha Addon for miniBB" title="Captcha Addon for miniBB" /></a></td></tr></table></td> </tr> </table> <table class="tbTransparent"><tr><td></td></tr></table> </body> </html>