- Posts: 6
COMMUNITY FORUM
Found a way to add .mp3 files!
- hleen
- Topic Author
- Offline
- New Member
Less
More
14 years 10 months ago #75091
by hleen
Found a way to add .mp3 files! was created by hleen
Hi all,
When the allVideos plugin is installed, you can add mp3 support to K2 (version 2.1) by changing a single file:
In
administrator\components\com_k2\models\items.php
change line 380
to
if ($videotype == 'flv' || $videotype == 'swf' || $videotype == 'wmv' || $videotype == 'mov' || $videotype == 'mp4' || $videotype == '3gp' || $videotype == 'divx' || $videotype == 'mp3') {
Be aware that you have to set the video path in AllVideos to the path of K2:
media/k2/videos
Success!
When the allVideos plugin is installed, you can add mp3 support to K2 (version 2.1) by changing a single file:
In
administrator\components\com_k2\models\items.php
change line 380
to
if ($videotype == 'flv' || $videotype == 'swf' || $videotype == 'wmv' || $videotype == 'mov' || $videotype == 'mp4' || $videotype == '3gp' || $videotype == 'divx' || $videotype == 'mp3') {
Be aware that you have to set the video path in AllVideos to the path of K2:
media/k2/videos
Success!
Please Log in or Create an account to join the conversation.
- Alyanna Allah
- Offline
- New Member
Less
More
- Posts: 2
14 years 10 months ago #75092
by Alyanna Allah
Replied by Alyanna Allah on topic Found a way to add .mp3 files!
Thank you so much for this information! Very helpful!
Please Log in or Create an account to join the conversation.
- Shea Dawson
- Offline
- New Member
Less
More
- Posts: 12
14 years 9 months ago #75093
by Shea Dawson
Replied by Shea Dawson on topic Found a way to add .mp3 files!
Fantastic. This is a great alternative to attaching mp3 files with the attachments option of the k2 item... which seems to upload any file but mp3s. bug?
Thanks!
Thanks!
Please Log in or Create an account to join the conversation.
- FeSys
- Offline
- Elite Member
Less
More
- Posts: 262
14 years 9 months ago #75094
by FeSys
Replied by FeSys on topic Found a way to add .mp3 files!
WAWO..
I love you "hleen"
I am asking for this method long time ago Here.. Thank you so much.
I love you "hleen"
I am asking for this method long time ago Here.. Thank you so much.
Please Log in or Create an account to join the conversation.
- FeSys
- Offline
- Elite Member
Less
More
- Posts: 262
14 years 9 months ago #75095
by FeSys
Replied by FeSys on topic Found a way to add .mp3 files!
Just one more thing "hleen"
Have you tied to make the same above hack work for downloads too
I did play the mp3 files remotely and via upload too using your method above.
Thanks again.
Have you tied to make the same above hack work for downloads too
I did play the mp3 files remotely and via upload too using your method above.
Thanks again.
Please Log in or Create an account to join the conversation.
- hleen
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
14 years 9 months ago #75096
by hleen
Replied by hleen on topic Found a way to add .mp3 files!
Hi Followeyes,
I do not see a problem with upload/download. I can upload an mp3 as attachment, it is the shown in the item and I can download it. Of course, as attachment you do not get the mp3 player in the item. Could you explain what you mean?
hleen
Followeyes said:Just one more thing "hleen" Have you tied to make the same above hack work for downloads too
I did play the mp3 files remotely and via upload too using your method above.
Thanks again.
I do not see a problem with upload/download. I can upload an mp3 as attachment, it is the shown in the item and I can download it. Of course, as attachment you do not get the mp3 player in the item. Could you explain what you mean?
hleen
Followeyes said:Just one more thing "hleen" Have you tied to make the same above hack work for downloads too
I did play the mp3 files remotely and via upload too using your method above.
Thanks again.
Please Log in or Create an account to join the conversation.
- Manny Santos
- Offline
- Senior Member
Less
More
- Posts: 49
14 years 9 months ago #75097
by Manny Santos
Replied by Manny Santos on topic Found a way to add .mp3 files!
Edited the file but still got errors " Not a valid video file" when choosing the "Upload video" method on the video tab.
I guess some other file.php which deals with uploading probably has to changed to allow mp3 files as a valid upload.
I guess some other file.php which deals with uploading probably has to changed to allow mp3 files as a valid upload.
Please Log in or Create an account to join the conversation.
- FeSys
- Offline
- Elite Member
Less
More
- Posts: 262
14 years 9 months ago #75098
by FeSys
Replied by FeSys on topic Found a way to add .mp3 files!
Thank you "hleen" for your reply..
I mean that, you make it easy with your nice hack above to put any mp3 file to work remotely too (not only as uploaded method).. hence, would be nice to add little hack(s) to allow those remotely attached mp3 files to be downloaded as play at the same time. This will create a super multimedia for video/Audio with downloading features too.
Thanks
I mean that, you make it easy with your nice hack above to put any mp3 file to work remotely too (not only as uploaded method).. hence, would be nice to add little hack(s) to allow those remotely attached mp3 files to be downloaded as play at the same time. This will create a super multimedia for video/Audio with downloading features too.
Thanks
Please Log in or Create an account to join the conversation.
- hleen
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
14 years 9 months ago #75099
by hleen
Replied by hleen on topic Found a way to add .mp3 files!
Hi Manukat,
you might need to add the following settings to your global site config:
Legal Extensions (File Types) - add ,mp3,MP3
Legal Image Extensions (File Types) - add ,mp3 (just to be sure :-)
Check MIME Types; set to No (just to be sure)
Legal MIME Types: add ,audio/mp3
Have luck!
Manukat said:Edited the file but still got errors " Not a valid video file" when choosing the "Upload video" method on the video tab. I guess some other file.php which deals with uploading probably has to changed to allow mp3 files as a valid upload.
you might need to add the following settings to your global site config:
Legal Extensions (File Types) - add ,mp3,MP3
Legal Image Extensions (File Types) - add ,mp3 (just to be sure :-)
Check MIME Types; set to No (just to be sure)
Legal MIME Types: add ,audio/mp3
Have luck!
Manukat said:Edited the file but still got errors " Not a valid video file" when choosing the "Upload video" method on the video tab. I guess some other file.php which deals with uploading probably has to changed to allow mp3 files as a valid upload.
Please Log in or Create an account to join the conversation.
- Stéphane Herby
- Offline
- New Member
Less
More
- Posts: 12
14 years 7 months ago #75100
by Stéphane Herby
Replied by Stéphane Herby on topic Found a way to add .mp3 files!
hi hleen,
I have made all modification you have mentionned.
Except the fact that in K2 2.2, there's two lines to change (400 AND 604) - I have also change configuration as mentionned above, but I still have this "Invalid video file" when I try to upload a MP3 file. Any suggestion about that ?
Joomla 1.5.15
K2 2.2
AllVideo 3.1
I have made all modification you have mentionned.
Except the fact that in K2 2.2, there's two lines to change (400 AND 604) - I have also change configuration as mentionned above, but I still have this "Invalid video file" when I try to upload a MP3 file. Any suggestion about that ?
Joomla 1.5.15
K2 2.2
AllVideo 3.1
Please Log in or Create an account to join the conversation.