Advertisement:

Author Topic: Play Media Attachments  (Read 11510 times)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,032
    • Arantor on GitHub
Re: Play Media Attachments
« Reply #100 on: September 18, 2017, 06:04:22 AM »
Because this stuff is actually *hard* to get right.

SMF attachments never provide content-range out of the box, not 100% sure if this mod does it, because it's also hard to get right as ranged headers in general are the devils work. (For more information, take a look at LevGal which has a lot of code that might be useful to you)
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,421
    • XPtsp.com Community
Re: Play Media Attachments
« Reply #101 on: September 18, 2017, 10:31:30 AM »
OH MY GOD!!!   SERIOUSLY??!?!?!?   ARGHHH!!!

Okay, now that I got that out of my system, I can try to fix the mod using this new information.  I was completely unaware that I was missing anything in this regard.  Thanks, Juanchoartes and Arantor for providing the clues I needed to get this right.



@Arantor:  Nope, this mod does not provide content-range or content-length as a part of it's standard response.  SMF 2.0.x provides content-length, but only if either we're doing compressed output or the file size is greater than 4M....

EDIT:  Looks like SMF 2.1 Beta 3 is pretty similar to SMF 2.0.x in this regard.

@Juanchoartes:  I'll try to implement a fix for this issue.
NOTICE:  My website is back up!

My Free Simple Machines mods on XPtsp.com and Simple Machines Customization Site!
My mods are being uploaded and are available at GitHub as well!

Offline Steve

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 3,927
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Play Media Attachments
« Reply #102 on: September 18, 2017, 10:48:07 AM »
And the error I'm getting?
Please do not PM me for support.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,421
    • XPtsp.com Community
Re: Play Media Attachments
« Reply #103 on: September 18, 2017, 11:09:22 AM »
And the error I'm getting?
Whoops!  Sorry I missed that message!  I've fixed it for the next version.
NOTICE:  My website is back up!

My Free Simple Machines mods on XPtsp.com and Simple Machines Customization Site!
My mods are being uploaded and are available at GitHub as well!

Offline Juanchoartes

  • Semi-Newbie
  • *
  • Posts: 13
Re: Play Media Attachments
« Reply #104 on: September 18, 2017, 11:34:09 AM »
Thank you very much @dougiefresh!

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,421
    • XPtsp.com Community
Re: Play Media Attachments
« Reply #105 on: September 22, 2017, 10:49:18 PM »
UPDATE:  I've been trying to integrate code into the attachment download function in order to do ranged downloads and it is screwing up my test install (where it concerns media files)....  It is being a complete b#tch... 

Also, Levertine Gallery (which I assume is LevGal) is still live, but registering on the forum is disabled, purchasing is disabled (as if I had the money!), plus the ability to downloading it is non-existent....  So I'm at a loss on how to look at that project to see how it was done....  Frankly, from what little is available on their forum, that project might be dead and buried....

I've found a few more minor bugs and have fixed them for the next version.  I'll release the fixed version probably tomorrow, as I'm going to sleep now.
NOTICE:  My website is back up!

My Free Simple Machines mods on XPtsp.com and Simple Machines Customization Site!
My mods are being uploaded and are available at GitHub as well!

Offline lurkalot

  • Sr. Member
  • ****
  • Posts: 978
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: Play Media Attachments
« Reply #106 on: September 23, 2017, 04:06:51 AM »

Also, Levertine Gallery (which I assume is LevGal) is still live, but registering on the forum is disabled, purchasing is disabled (as if I had the money!), plus the ability to downloading it is non-existent....  So I'm at a loss on how to look at that project to see how it was done....  Frankly, from what little is available on their forum, that project might be dead and buried....


You will find a very generous post by Arantor right here, where you can pick up a copy of Levgal https://www.simplemachines.org/community/index.php?topic=525210.msg3921971#msg3921971

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,421
    • XPtsp.com Community
Re: Play Media Attachments
« Reply #107 on: September 23, 2017, 09:59:18 AM »
Holy sheep!  I missed that (although not suprised, since attachments don't show up on Yahoo search....)  Thanks a bunch, lurkalot!
NOTICE:  My website is back up!

My Free Simple Machines mods on XPtsp.com and Simple Machines Customization Site!
My mods are being uploaded and are available at GitHub as well!

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,421
    • XPtsp.com Community
Re: Play Media Attachments
« Reply #108 on: December 08, 2017, 10:51:46 PM »
Uploaded v2.2 - December 8th, 2017
o Fixed several undefined element/variable errors in the mod.
NOTICE:  My website is back up!

My Free Simple Machines mods on XPtsp.com and Simple Machines Customization Site!
My mods are being uploaded and are available at GitHub as well!

Offline Steve

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 3,927
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Play Media Attachments
« Reply #109 on: Yesterday at 04:11:45 PM »
Why when uninstalling the previous version do I get a test failed with 'ignore errors' in parenthesis? (see attachment)
Please do not PM me for support.