Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
(03-12-2016 08:01 AM)ZiNgA BuRgA Wrote: [ -> ]newXTImg() must be followed by either ->blank or ->loadimage
But your chain doesn't make a lot of sense - I'm not sure what you're trying to do there.
I simply copied the original chain from the OP:
Quote:88x66|160x120|320x240=scale_max(320,240)->copy(newXTImg()->loadimage('images/mylogo.png')->scale(120,90),-2,-2)
And removed the:
Quote:loadimage('images/mylogo.png')->
Since I don't need it. I assume it's some kind of watermark feature?
If you don't need watermarking, use
(03-14-2016 05:44 PM)ZiNgA BuRgA Wrote: [ -> ]If you don't need watermarking, use
Yeah I figured it all out in the end, thanks for your help.
How exactly does the /uploads/xthreads_ul/ directory work? Am I right in thinking it creates a new folder based on the local PC hostname of the client which is uploading (or linking via URL) the image? I noticed that there was a subdirectory called 'ts_1457' which doesn't sound familiar (although the ts_ prefix reminds me of Windows RDP hostname schema so maybe that's it... I do all my work over RDP).
So even though I used the URL method rather than direct file upload it seems to have cURL'ed the remote image directly onto my server and generated extra thumbnail files - does this mean that if the original image is deleted from Wikipedia's server then it isn't going to affect my form and the image will continue to display due to it now being stored and referred to locally?
Code:
https://example.com/xthreads_attach.php?file=3_1457915326_5158f901/bac6c070b0ca6b2bf34b67944bdeebda/Notpopularcover.jpg/thumb320x240
|
The folder is split by timestamp, similar to how MyBB does it.
The attachments are always served locally, so supplying an URL will cause it to be copied over. Yes, as it is a copy, whatever happens to the original URL won't affect your copy.
(03-15-2016 09:56 AM)ZiNgA BuRgA Wrote: [ -> ]The folder is split by timestamp, similar to how MyBB does it.
The attachments are always served locally, so supplying an URL will cause it to be copied over. Yes, as it is a copy, whatever happens to the original URL won't affect your copy.
That's interesting, thanks for explaining.
Despite using MyBB for around 5 years now this is my first time with the XThreads plugin, no idea how I didn't know about this before.
Shame you're not part of the MyBB team anymore.
I need this plugin. Where do I go down, link donwload?
Hello I have a problem creating product review.
I get the error message when uploading the product image:
Quote:Fatal error: Uncaught Error: Call to a member function scale() on boolean in /homepages/8/d707489081/htdocs/cache/xthreads_evalcache.php:68 Stack trace: #0 /homepages/8/d707489081/htdocs/inc/xthreads/xt_upload.php(351): xthreads_imgthumb_pfpic('320x240', Object(XTImageTransform)) #1 /homepages/8/d707489081/htdocs/inc/xthreads/xt_upload.php(296): xthreads_build_thumbnail(Array, 6, 'pfpic', './uploads/xthre...', './uploads/xthre...', 'ts_1520/', Array) #2 /homepages/8/d707489081/htdocs/inc/xthreads/xt_upload.php(9): do_upload_xtattachment(Array, Array, 0, 213) #3 /homepages/8/d707489081/htdocs/inc/xthreads/xt_updatehooks.php(1021): upload_xtattachment(Array, Array, 1, 0, '213') #4 /homepages/8/d707489081/htdocs/inc/xthreads/xt_updatehooks.php(848): xthreads_upload_attachments() #5 /homepages/8/d707489081/htdocs/inc/plugins/xthreads.php(457): xthreads_upload_attachments_global() #6 /homepages/8/d707489081/htdocs/inc/class_plugins.php(142): xthreads_handle_uploads('') #7 /homepages/8/d707489081/htdocs/global.php(1138): plugin in /homepages/8/d707489081/htdocs/cache/xthreads_evalcache.php on line 68
There is no error uploading Additional Product Images.
Can someone help me there
What's the full Image Thumbnail Generation code you put in?
If you're referring to images/mylogo.png, does that file exist?
My Thumbnail Code is
Code:
88x66|160x120|320x240=scale_max(320,240)->copy(newXTImg()->loadimage('images/mylogo.png')->scale(120,90),-2,-2)
|
and the mylogo.png does not exist by me.
The file needed as watermark.
You can use your own file by modifying the path of the image: images/mylogo.png
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16