MyBB Hacks

Full Version: XThreads
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Zinga Burqa,
I'm building up a download system thanks to XThreads awesomeness. I really like the URL fetching system you've implemented, but I'd suggest you to provide a fallback for bigger files which fail being uploaded.

For example: I want to insert a download link to a iOS firmware which is about 700MB. cURL can't handle such big files, so it ends up with a "timed out" error. It would be extremely nice if you would stop fetching the file and provide the plain link instead when the file is bigger than a certain value. I thought about firstly fetch the file size and compare it with a cache-defined variable: if bigger than X MB, then just insert it into the database as-is and display it as normal.

Thank you!
(07-27-2013 04:10 AM)Shade Wrote: [ -> ]For example: I want to insert a download link to a iOS firmware which is about 700MB. cURL can't handle such big files, so it ends up with a "timed out" error. It would be extremely nice if you would stop fetching the file and provide the plain link instead when the file is bigger than a certain value. I thought about firstly fetch the file size and compare it with a cache-defined variable: if bigger than X MB, then just insert it into the database as-is and display it as normal.
The File field type does actually require a file on the local disk to work.
I suggest one of two options:
- either fetch the file using some other means (eg wget) and use the admindrop feature (obviously only admins can do this)
- use text field instead instead of a file field; if necessary, you could potentially use both
Thank you for your kind and fast response: I didn't think about adding a plain textarea, I will add it! Smile
Hi,

I don't know can XThread did this or not. I have a file (name example.php). I don't know if possible to use custom thread field in the template of that file. Which hook I need call to use it ? (The custom thread fields defined in a forum with fid is 1)
attachment is not uploaded through remote upload.
Error attaching file for "Thread Image"; The file upload failed. Please choose a valid file and try again. Error details: PHP returned: Failed to write the file to disk. Please contact your forum administrator with this error.

this error for thread image, screenshot and url uploads.
Found a bug when save / update / delete with File type (with the thumbnail generator).

PHP Warning: Invalid agrument supplied for foreach() with PHP 5.3.27

Solution: Find /inc/xthreads/xt_admin. Go to the line 641th

Replace:

PHP Code:
if(issets($tf['fileimgthumbs'])) {


with:

PHP Code:
if(is_array($tf['fileimgthumbs'])) {

^ Are you using an older version of XThreads?
I recall that being fixed...
hi! just installed this plugin coz of the sticky first post... problem is on the 2nd & succeeding pages, all posts are numbered 2-19 like the first page... how do you fix this? thanks in advance!

using ver 1.63 btw...
Install XThreads on a clean board and see if you can replicate the issue.
It is an awesome tool but is it safe to use? Can hackers use it to hack mybb forum?
Thanks
Reference URL's