Videos from Facebook or YouTube

This is the right place to report general bugs, make suggestions or ask for help.
User avatar
Arvid
FlatPress Coder
Posts: 92
Joined: Sat Jan 26, 2019 7:40 pm
Contact:

Re: Videos from Facebook or YouTube

Post by Arvid » Mon Jun 01, 2020 5:33 pm

"attachs" is indeed the folder files uploaded in the admin area are stored in. Do you upload them manually instead?
(The path to uploaded files in BBCode tags always starts at your fp-content folder, e.g. in the img tag:

Code: Select all

[img=images/bla.jpg]
"images" is a subfolder of fp-content.)

Oh, and the Audio and video player plugin really does use simply standard HTML5 elements, no browser plugins needed :)
Helpful FlatPress links: Project blog πŸ“ - FlatPress wiki πŸ“– - FlatPress@Twitter 🐦
Stay up to date with our feeds: Forum RSS feed πŸ“œ - Project blog RSS feed πŸ“œ


πŸ‡©πŸ‡ͺ Habe aktuell fΓΌr meinen Arbeitgeber hier im Ruhrgebiet eine Stelle zu besetzen! πŸ‡©πŸ‡ͺ
- Softwareentwickler (Webanwendungen) - unbefristet, sofort

Tongara
Posts: 26
Joined: Wed Jan 22, 2020 11:09 am
Location: Birmingham, UK
Contact:

Re: Videos from Facebook or YouTube

Post by Tongara » Mon Jun 01, 2020 5:42 pm

Arvid wrote: ↑
Mon Jun 01, 2020 5:33 pm
"attachs" is indeed the folder files uploaded in the admin area are stored in. Do you upload them manually instead?
(The path to uploaded files in BBCode tags always starts at your fp-content folder, e.g. in the img tag:

Code: Select all

[img=images/bla.jpg]
"images" is a subfolder of fp-content.)

Oh, and the Audio and video player plugin really does use simply standard HTML5 elements, no browser plugins needed :)
I keep my audio files (and even image files) in a seperate part of my server to the Flatpress install itself, so being able to link to any file is a need for me. I was just going to use this plugin for convenience. At that stage I might as well just use a standard HTML5 player code, like so:

Code: Select all

<audio controls style="width: 100px;">
<source src="https://files.site.com/audio.mp3" type="audio/mpeg">
</audio>
And yes, I know that it's just the standard HTML5 player, again, it was just for convenience. This plugin is useful for people who want their audio and video files in their flatpress directory, of course.

User avatar
Arvid
FlatPress Coder
Posts: 92
Joined: Sat Jan 26, 2019 7:40 pm
Contact:

Re: Videos from Facebook or YouTube

Post by Arvid » Mon Jun 01, 2020 5:49 pm

Tongara wrote: ↑
Mon Jun 01, 2020 5:42 pm
I keep my audio files (and even image files) in a seperate part of my server to the Flatpress install itself, so being able to link to any file is a need for me.
Ah, I see. Then you will need to use a custom solution, since the plugin isn't allowed to "break out" of the fp-content folder.
In your case, I'd simply add a custom BBCode element which is prepared to refer to your "external" media folder. Doing so, you wouldn't have to insert the <audio> elements manually in every blog entry.
Helpful FlatPress links: Project blog πŸ“ - FlatPress wiki πŸ“– - FlatPress@Twitter 🐦
Stay up to date with our feeds: Forum RSS feed πŸ“œ - Project blog RSS feed πŸ“œ


πŸ‡©πŸ‡ͺ Habe aktuell fΓΌr meinen Arbeitgeber hier im Ruhrgebiet eine Stelle zu besetzen! πŸ‡©πŸ‡ͺ
- Softwareentwickler (Webanwendungen) - unbefristet, sofort

Tongara
Posts: 26
Joined: Wed Jan 22, 2020 11:09 am
Location: Birmingham, UK
Contact:

Re: Videos from Facebook or YouTube

Post by Tongara » Mon Jun 01, 2020 8:26 pm

Arvid wrote: ↑
Mon Jun 01, 2020 5:49 pm
Tongara wrote: ↑
Mon Jun 01, 2020 5:42 pm
I keep my audio files (and even image files) in a seperate part of my server to the Flatpress install itself, so being able to link to any file is a need for me.
Ah, I see. Then you will need to use a custom solution, since the plugin isn't allowed to "break out" of the fp-content folder.
In your case, I'd simply add a custom BBCode element which is prepared to refer to your "external" media folder. Doing so, you wouldn't have to insert the <audio> elements manually in every blog entry.
Eh, I made a plugin using that before, but I can't be bothered in this case. I can easily copy and paste the code I just put above ad it's the same thing, really. I edit each file through my FTP and not the WYSIWYG editor, anyway, so I'm comfortable just writing code.

Like I said, it's a great plugin for others, just not for me.

User avatar
Arvid
FlatPress Coder
Posts: 92
Joined: Sat Jan 26, 2019 7:40 pm
Contact:

Re: Videos from Facebook or YouTube

Post by Arvid » Fri Jun 05, 2020 5:13 pm

Glad it works good for you either way :)
Helpful FlatPress links: Project blog πŸ“ - FlatPress wiki πŸ“– - FlatPress@Twitter 🐦
Stay up to date with our feeds: Forum RSS feed πŸ“œ - Project blog RSS feed πŸ“œ


πŸ‡©πŸ‡ͺ Habe aktuell fΓΌr meinen Arbeitgeber hier im Ruhrgebiet eine Stelle zu besetzen! πŸ‡©πŸ‡ͺ
- Softwareentwickler (Webanwendungen) - unbefristet, sofort

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests