(03-29-2011 10:11 AM)ZiNgA BuRgA Wrote: Here's a bit more of a technical explanation.
xthreads_attach.php was somewhat designed to handle two extreme cases which the MyBB attachments.php doesn't do well (as well as a number of other things, but that's irrelevant here):
- very large (i.e. multi-gigabyte) downloads
- many requests (i.e. an image gallery displaying a lot of thumbnails on a page)....
....
For the latter case, imagine a gallery 18 thumbnails per page. Loading the core effectively means that a user visiting forumdisplay will cause the MyBB core to be loaded 19 times, instead of just once. Quite a bit more load obviously, but if your host isn't complaining, then this shouldn't be much of an issue. If you're not using something like this, then you don't need to worry either.
Indeed, and that of course is why I like XThreads so much - I DO have those kinds of galleries - and my site is not exactly a speeding bullet as is, so I would be reluctant to slow it further.
(03-29-2011 10:11 AM)ZiNgA BuRgA Wrote: There may be a fix for this issue on XThreads' end by directly linking thumbnails rather than serving through xthreads_attach.php - I don't know why I didn't think of it a long time ago. It might be a bit too late to change now (breaks template edits) though there may be a bit of a workaround.
that would be very neat, but yes, there are a lot of users out there and it would blow up the templates for sure - and I think that not many MYBB forums are that image intensive, so it would be a lot of trouble for those XThrteads users with not a great deal of gain.
(03-29-2011 10:11 AM)ZiNgA BuRgA Wrote: But there's another thing you could do - just simply conditionally define LOAD_SESSION based on whether the user is trying to view a thumbnail or not. May require a fair bit of editing though.
I think that would be seriously beyond my programming skills at the moment.
But, thanks for the explanation - I did not realise that the Core MYBB loaded like that.