Thread Rating:
  • 2 Votes - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Product Review
Marisa Offline
Junior Member
**
Posts: 6
Joined: May 2015
Post: #141
RE: Product Review
(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?
03-13-2016 09:49 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,338
Joined: Jan 2008
Post: #142
RE: Product Review
If you don't need watermarking, use

Code:
88x66|160x120|320x240


My Blog
03-14-2016 05:44 PM
Find all posts by this user Quote this message in a reply
Marisa Offline
Junior Member
**
Posts: 6
Joined: May 2015
Post: #143
RE: Product Review
(03-14-2016 05:44 PM)ZiNgA BuRgA Wrote:  If you don't need watermarking, use

Code:
88x66|160x120|320x240


Yeah I figured it all out in the end, thanks for your help. Tongue

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).

[Image: lbHs48B.png]

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

(This post was last modified: 03-14-2016 08:07 PM by Marisa.)
03-14-2016 07:53 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,338
Joined: Jan 2008
Post: #144
RE: Product Review
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.

My Blog
03-15-2016 09:56 AM
Find all posts by this user Quote this message in a reply
Marisa Offline
Junior Member
**
Posts: 6
Joined: May 2015
Post: #145
RE: Product Review
(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. Wink2

Shame you're not part of the MyBB team anymore. Erf
03-15-2016 10:14 PM
Find all posts by this user Quote this message in a reply
nolie Offline
Junior Member
**
Posts: 2
Joined: Dec 2016
Post: #146
RE: Product Review
I need this plugin. Where do I go down, link donwload?
(This post was last modified: 12-31-2016 11:21 PM by nolie.)
12-31-2016 11:19 PM
Find all posts by this user Quote this message in a reply
crow Offline
Junior Member
**
Posts: 3
Joined: Mar 2018
Post: #147
RE: Product Review
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
03-06-2018 07:28 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,338
Joined: Jan 2008
Post: #148
RE: Product Review
What's the full Image Thumbnail Generation code you put in?
If you're referring to images/mylogo.png, does that file exist?

My Blog
03-06-2018 10:05 AM
Find all posts by this user Quote this message in a reply
crow Offline
Junior Member
**
Posts: 3
Joined: Mar 2018
Post: #149
RE: Product Review
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.

03-06-2018 10:40 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,327
Joined: Mar 2010
Post: #150
RE: Product Review
The file needed as watermark.
You can use your own file by modifying the path of the image: images/mylogo.png

03-06-2018 10:20 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: